.OBJ Animation

I’m able to run the sample from the Xith3D .obj loader, but I’m not sure how to animate a .obj model. Is it possible?

errr animation embedded in the obj file?? You can modify rotations/translations etc of transformgroups real time

Are there any code examples of that - or could you show me how? Thanks!

http://xith.org/demo/org.xith3d.gsg.php

Look at the ase transformgroup and asetest code… It’s a pretty simple example, but it explains the basic of transformgroups

Thanks for the help guys, I understand transform groups… but I’m still a little confused. How do I import the .OBJ file into a transform group like the models shown in the ASE example?

And are there any other importable model types that include animation in the file?

Thanks so much!

you convert it to ASE?

Will.

I can’t find a converter for it.

MD2 contains animation. 3DS can contain animation but support isn’t very good as far as I’ve seen.

What type of animation do you want to do? Is it simple rotations of parts or is it “key frame” in that you want to iterate through a series of models for each frame? If so, you might find loading up a series of OBJ models and sticking them in a Switch node will do basically what you want.

Kev

I’m gonna need to have a basketball player running, shooting, blocking, etc. I can’t export to md2 or ASE,3DS, but I can do .obj and .ac3d. Which format would be best for this, and how do I group together all of the .obj models if that’s the best choice?

Thanks again!

Anybody? Please?

Have a look at the “Switch” node in Xith3D. Load each OBJ as a add the BranchGroup returned into switch. The switch allows you to (surprise) switch between the different children. So then you can just cycle through your switch displaying each frame in turn.

Kev

use MD2 save yourself alot of hassle.

I wish I could, but I can’t find an exporter for blender :(. I’ll try what kevglass suggested and get back to you. Thanks everybody!

Hem… have you just visited the blender official site ?
You can find exporters for (almost) all formats here : http://blender3d.org/cms/Import___Export.5.0.html