PDA

View Full Version : About frames and timing...



endo
02-05-2002, 09:07 AM
I am a little confused about the structure of an OpenGL program. I have seen on this forum people referring to frames, which I assume to ba a frame of animation. How is this kinda thing implemented, is it with timing or is it simply referring to a pass through the main rendering function?

rIO
02-06-2002, 01:16 AM
A frame is the result of a rendering process, if you send to OGL the right commands the result will be a frame (on screen, or some other buffers).

An animation is composed of a sequence of frames.

Usually to animate an object in 3d you don't need to create every position for every frame of animation. U just create some key positions, called KEY FRAMES, and your code must interpolate between theese key frames.

The common way to interpolate between keyframes, to render an animation it's to use the TIME value.

hope it helps.

rIO.sK http://www.spinningkids.org/rio