greg2
03-13-2007, 01:25 AM
I want to render .md2 animation model.
With glVertex it's not too difficult to interpolate the position of vertices betwen each frame. But how to do it with vertex buffer ?
If i create the vertex buffer on each frame, it will be very slow.
I have an idea:
I could send to a vertex shader the vertex positions of the current frame, and add the vertex positions of the next frame as texture coordinates and compute the interpolated position of the current vertices in the shader.
But is it the best solution ?
With glVertex it's not too difficult to interpolate the position of vertices betwen each frame. But how to do it with vertex buffer ?
If i create the vertex buffer on each frame, it will be very slow.
I have an idea:
I could send to a vertex shader the vertex positions of the current frame, and add the vertex positions of the next frame as texture coordinates and compute the interpolated position of the current vertices in the shader.
But is it the best solution ?