Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: AlephPosted on 2003-04-03 at 12:36:06ID: 8264361
First of all, I would use some other file format. Especially .max is messy. Either export to something else, possibly ascii, or write your own plugin to 3D Studio and export to some format you define yourself.
Secondly, OpenGL is, as you may be aware of, rather low-level. You need to write some simple (or complicated if you like) framework to run the animations. The most simple way is probably to run a small rendering loop like this:
animationClock = cpuTimer + tickLength
do
render
if gotInput
select things to animate
end
if cpuTimer > animationClock
animationClock += tickLength
go to next frame for all animated things
end
while not done
Then your animation will run at a steady rate even if the frame rate changes.