Tuesday, 11 March 2008

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: , ,

4 Comments:

At 10 September 2008 04:51 , Blogger Boris said...

Unfortunetly I get an error.
FAILED IN LOAD
Exception: java.lang.NullPointerException

Would be awesome you can fix it.

Best.
Boris.

 
At 15 March 2009 00:30 , Blogger seyacat said...

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
|

 
At 3 July 2009 14:44 , Blogger jaegon said...

I changed source code in ColldaModel.java(from google code)

temp = PApplet.splitTokens(content);
->
if (content != null) temp = PApplet.splitTokens(content);

It works now.

 
At 6 January 2010 10:28 , Blogger Vincent Olivier (NBourbaki) said...

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