Sign in to follow this  

[GL3] VAO and VBO question about dynamic/stream buffers

This topic is 1852 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

Hello, I am writing here with a question which was haunting me lately.

I want to draw some dynamic data using a VAO, but I am not pretty sure how to do it. Doing it the regular dynamic/stream VBO way it works, but when I do it with a VAO I need to bind the buffer I want to change and while using gDebugger I found out that those binds in dynamic/stream functions are pretty expensive and gDebugger doesn't recommend using those, so I want to know how should I draw a dynamic VBOs in a VAO?

Thanks in advance!

Andrew.

Share this post


Link to post
Share on other sites
This page should have all the information: [url="http://www.opengl.org/wiki/Buffer_Object_Streaming"]http://www.opengl.org/wiki/Buffer_Object_Streaming[/url]
There's no way around a glBindBuffer though.

Share this post


Link to post
Share on other sites
Thanks for an answer. I know how to stream the buffers with the bind. My question is about how to avoid the bind, or it is unavoidable. :?

Share this post


Link to post
Share on other sites
the most common way "around bind," is to put many meshes into a single VBO, and render different parts of the data using glDrawArrays ..., first_vertex, count (or elements)

Share this post


Link to post
Share on other sites

This topic is 1852 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.

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