PDA

View Full Version : How to show an animation?



jamesclarke
04-19-2004, 05:56 PM
I have a 3ds model like a helicopter and display it in OpenGL with display lists transformed by 3DExploration. Then how can I display the animation of airscrews just like VTree shows? I think it is a difficult question.

mikael_aronsson
04-19-2004, 11:33 PM
Hi !

OpenGL itself cannot do any kind of animation, that is all up to you and it all depends on you operating system and some other stuff.

If you have geometry in display lists, then you cannot do much with the geometry itself because a display list is static.

What you can do is to transform the geometry in the display lists with glScale,glRotate and glTranslate.

Then you have to use a timer or something else to update the transformation in small steps to get the animation.

Just have a peek at any opengl tutorial on animation.

Mikael

jamesclarke
04-20-2004, 06:35 AM
Thax, I think I get the idea!