how to export an animated 3d model?

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

how to export an animated 3d model?

Post by killerjacky »

:(
hi, i'm a newbie here and in 3d games
i'm now making a 3d racing game, and i hv created some animated 3d models with 3d max studio 9
the problem is, how to export the mesh with animation so that it can run in irrlicht ??
i tried to export it in both .3ds and .x format, both do not hv any animation exported, just a static mesh.
but when i import a .md2 mesh (the one from tutorial) without changing in any code, the animation works fine.
Is there any problems on my export method / mesh??
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

.x files supports animation, and i'm using them all the time for animated meshes. .3ds doesn't hold animations.

Perhaps it's your exporter.
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

jingquan wrote:.x files supports animation, and i'm using them all the time for animated meshes. .3ds doesn't hold animations.

Perhaps it's your exporter.
yes, i have tried with .x files too, but it doesnt work also :(
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

anyone can help me :(
still not fix it yet.
Is there any special sittings required, or something needed to handle when making the model?
by the way, is it that I need to make every frame as a key frame in order to get it animated in .X ? I saw that in the panda site said that the exporter can not handle tweent motion........
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

In order to get animations with .x (or .ms3d, .b3d) you need skeletal animations, not just keyframes. Only md2 and md3 do interpolated keyframe animation.
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

that's what i'm doing. I used skeleton to control the movement of my model. I turned a the skeleton to make the model's head to turn in a few keyframes. But it doesn't work when i put that into my game
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Did you try to load it with the meshviewer (from Irrlicht) and MView from the DX SDK? At least the latter should show the animation, otherwise soemthing went completely wrong. If *only* the latter show the animation you should upload the mesh somewhere for us to check why it does not work as expected. Just to be sure: You're using latest Irrlicht 1.4 SDK? Because the .x loader changed pretty much compared to older releases.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Check here how I exported successfully a animated mesh from 3dsMax9 to .x:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=23705
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

i tried to load it into IrrEdit, no sign of animation :(
omg, i dont know what's wrong
maybe I will upload my mesh here later.
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

killerjacky wrote:i tried to load it into IrrEdit, no sign of animation :(
omg, i dont know what's wrong
maybe I will upload my mesh here later.
sorry I was busying other things these days...........
I still cannot make this thing move :(

the .x file:
ftp://cs_wykac@ihome.ust.hk/smallcube.X

please help :(
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Sorry, cannot be downloaded (maybe a password is needed?)
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

sorry about that
please try this one
http://rapidshare.com/files/93689653/smallcube.X.html
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The animation is simply static :lol: All the frames are exactly the same, so the animation is running, but you won't notice anything...
killerjacky
Posts: 13
Joined: Sat Jan 26, 2008 9:05 am

Post by killerjacky »

hybrid wrote:The animation is simply static :lol: All the frames are exactly the same, so the animation is running, but you won't notice anything...
oh :shock: how come, maybe I upload the .max file for you to have a look
it's not static :(

http://rapidshare.com/files/93951495/tu ... y.max.html
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You will also have to upload the max key for me :wink: Well, just play around with your exporters and double-check also with other tools. Once you're sure that you have an animated mesh which can be loaded by Irrlicht put that one up.
Post Reply