Folks,
Anyone care to comment on the best techniques for key frame OpenGL animation?
I’m at the stage where I’ve got static objects displaying and moving about with display lists and now want to move on to animated objects.
I thought I’d start with key framing as it’s easy to understand, I can generate key frame meshes from a 3D package and understand the process of interpolating between frames.
Any comments on the following:
- Should I generate all frame meshes and create them as display lists? (This sounds expensive in terms of server-side/graphics card memory)
- Should I use client-side vertex arrays resident in main memory and send the data to the graphics card for each frame. This sounds slower than option 1) but would allow me to alter the vertex data dynamically.
If option 2) is the way to go, should I interpolate each frame at render time or should I build all animation frames up front?
If you’ve any other ideas/techniques please let me know.
Cheers.