A
Alhexx
Guest
Okay, I'm currently writing a new model viewer. It already supports most basic functions for viewing a model. However, I have never programmed animation before :erm:
As far as I know, animation is rendered using a timer, which forces the engine to rerender the image a few times per second (let's say 24).
Moving objects is done using glRotate, glTranslate and glScale functions. However, I'm using these functions to move the camera.
Now let's say I wanted to make a sphere rolling along th x-axis. Using the 3 commands above would not really move the object, but it would move my camera...
And this gets more complicated when I have more than one object which is moving indepentently from the other objects (like a whole skeleton).
How do I do this?
- Alhexx
As far as I know, animation is rendered using a timer, which forces the engine to rerender the image a few times per second (let's say 24).
Moving objects is done using glRotate, glTranslate and glScale functions. However, I'm using these functions to move the camera.
Now let's say I wanted to make a sphere rolling along th x-axis. Using the 3 commands above would not really move the object, but it would move my camera...
And this gets more complicated when I have more than one object which is moving indepentently from the other objects (like a whole skeleton).
How do I do this?
- Alhexx