PDA

View Full Version : VBO/GLSL to update object position?



CelticDaddio
10-11-2006, 11:00 AM
I have an object file which specifies the initial vertex locations for an object.

I also have a dynamics file which specifies the subsequent positions of the object at various time steps.

e.g.

Time x y z yaw pitch roll
0 0 0 0 0.0 0.0 0.0
0.1 0 2 0 0.0 0.0 0.0
0.2 0 5 0 0.0 0.0 0.0
0.3 0 20 0 0.0 0.0 0.0
etc

I need to update the vertex positions as fast as possible. I don't want to download updated vertex position each time through the loop. I thought it might be possible to use a VBO to download the vertex data to the GPU, then each time through the loop update the modelview matrix and use it to transform the vertices in a vertex shader.

Any thoughts? Suggestions? Other?
CD