Collada Loader 003
The Collada Loader has been updated and now sits at version 003. There are a few new functions involving materials. You can check out the supplied example file for the usage. But here is the list of new stuff.
model.toggleTexture();
//toggles the texture on and off
model.toggleMaterial();
//toggles the collada material
model.setTexture(PImage);
//replaces the loaded texture with a supplied PImage
model.originalTexture();
//reloads the original texture
ColladaLibrary_003_demo.zip
ColladaLibrary_003_lib.zip
ColladaLibrary_003_src.zip
UPDATE: I'm sorry to say that with the updates to the XML library in processing, the collada loader broke. And broke hard. If anyone would like to help out in fixing this, that would be great. I'm afraid free time is just not happening for me at the moment.
Labels: collada, library, processing
4 Comments:
Unfortunetly I get an error.
FAILED IN LOAD
Exception: java.lang.NullPointerException
Would be awesome you can fix it.
Best.
Boris.
I have this problem with demo file duck and seymour gets the sama message
i use processing on linux
| Something in the dae file isn't supported by the loader. Here is the message
|
| Exception: java.lang.NullPointerException
|
| Make sure the dae file has been triangulated before export
|
I changed source code in ColldaModel.java(from google code)
temp = PApplet.splitTokens(content);
->
if (content != null) temp = PApplet.splitTokens(content);
It works now.
Is it possible to make a new release with the change posted for Processing 1.0? I'm volunteering for that, if it can help...
Post a Comment
Links to this post:
Create a Link
<< Home