importing Collada models into jit.gl.model

Joseph Hyde's icon

I'm trying to find some objects to import into jit.gl.model. I have to say that I've generally had little luck with this - in the past I tried to find .obj files and often found they didn't work. I'm currently trying with Collada files (.dae extension) - the ones I've been testing are downloaded from Google's 3D warehouse. I always seem to get the error message 'jit.gl.model: Collada: /Users/johyde/Downloads/model.dae - Expected different index count in

element..'. Does anyone have any idea what the problem might be? And is there any general guidance available as to what might and might not be compatible with jit.gl.model? I did have a bit of a search around but couldn't find much. Any guidance very gratefully received!

Rob Ramirez's icon

i can confirm your experience, unfortunately there's not much to be done here. we are using the Assimp model loader library in jit.gl.model, and i've verified the problem occurs in their recommended model viewer (http://assimp.sourceforge.net/main_viewer.html), so we're stuck with this problem for now. you might have luck importing the model into a free software like blender, and re-exporting to collada from there.

i'll keep my eye on this, and hopefully a solution will emerged at some point.

Joseph Hyde's icon

Ach - that's not so good. Thanks very much for getting back to me anyway - better to know than to spend days banging my head against a brick wall! And I might try the Blender export idea - nice one.

Joseph Hyde's icon

Yeah, importing into/exporting from Blender does kind of work. I think some of the model information is getting lost (animation, materials), but then I don't really know what I'm doing as I've not used Blender before. A step in the right direction anyway - thanks Rob!

Andro's icon

Hi Joseph,

Heres a simple wiki for exporting models from blender into jit.gl.model.
Hopefully theres some useful info in there for you.

Importing models is easy in Blender you just have a loooooooot of options to try out when importing(and exporting for that matter).
Especially when your handling animation data.
If you really can't get it to work then please upload your model file zipped and max patch and I'll see if I can help you figure it out.

Joseph Hyde's icon

Hi Andro.

That looks like a gold mine - thanks. Some of it might be slightly beyond my Blender knowledge (which is zero), but I'll see if I can muddle through it. I'm just mucking about at the moment, but if I get further and hit specific problems, I might just take you up on that offer of help - much appreciated!

Andro's icon

I'm not a blender jedi but I know how to get most things from blender into max so just give a shout if your stuck.
And if you discover anything useful in the process please add it to the wiki !

johyde's icon

will do!