Jump to content
  • Advertisement
Sign in to follow this  
Bezben

Keyframing

This topic is 4607 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a keyframe model loaded into memory. I'm trying to lerp the vertices on two frames on the gpu in a vertex shader, this all works fine. My question is, what is the best way to push the vertices through? Currently I load each frame into on VBO and then use glVertexPointer/glTexCoordPointer w/ extensions for multiple texture coordinates to upload the next frame as a float3 texture coordinate. Thing is, I have 1000s of fairly small VBOs and I think this is probably not good. But I can't think of a nice way to put the whole lot into one big VBO and then reference two frames, I think that would need two sets of index buffers? Maybe VBOs are not the way to go. I'd appriciate any advice on the matter.

Share this post


Link to post
Share on other sites
Advertisement
If You want to use this type of keyframing VBOs are certainly not a good idea. Loading small data chunks into 1000 VBOs doesn't give any speed just eats memory. Try using the traditional method.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!