Sign in to follow this  
try_catch_this

Dynamic VBO's

Recommended Posts

I have an array of verticies and texture coordinates which change every few seconds. It would the data is static except that I have to delete some of the triangles every few frames or so. I only know how to use static vbo's though. Can anyone help with the steps I need to use a dynamic/streaming vbo? I would also like to beable to use glDrawRangeElements() if possible instead of glDrawArrays. On the On the irc I also heard about indexed triangle lists but am not quite sure what they are. thanks for any help

Share this post


Link to post
Share on other sites
Look here for information on how to use VBOs.

If your geometry is changing every few seconds, and not every frame, I don't think it should be necessary to use a dynamic VBO.

When you want to update the VBO you can either map the buffer with glMapBuffer, and overwrite the data, or you can just use the glBufferSubData function.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this