Archived

This topic is now archived and is closed to further replies.

Loading in Animation

This topic is 6278 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In direct3d is it possible to load in an animated 3ds file. i have a treasure chest in 3d studio max, and i open it up in an animation sequence. i can load in the 3ds file into my engine, but was wondering if i could laod in the "frames" of animation into a structure, and have it rendered as a function call, such as openChest(). if so, this would be very useful in my script engine, instead of having to do the math within my engine. thanks much in advance Code makes the world go round...

Share this post


Link to post
Share on other sites
Hello,

The 3DS-format supports keyframing so you can read information you need from it. But you have to interpolate the movements between those keyframes by yourself. Either by simple linear interpolation or some kinds of splines like beziér.

Share this post


Link to post
Share on other sites
I have a class for Bezier Splines on my site. It is very basic stuff, I learned it from an arcticle on gamasutra. I used the class for keyframe interpolation in camera paths, it''s not perfect but better than linear interpolation...


Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity

Share this post


Link to post
Share on other sites