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.
[cce lang="java"]
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
[/cce]
ColladaLibrary_003_demo
ColladaLibrary_003_lib
ColladaLibrary_003_src
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.





RSS feed for comments on this post. / TrackBack URI