[osg-users] shared VertexBufferObject question

Robert Osfield robert.osfield at gmail.com
Sat Sep 20 01:56:15 PDT 2008


Hi Alex,

The unbind is done to prevent state leakage.  One could potentially
using lazy state updating on VBO state by placing more controls into
osg::State, but this would require all Drawables to be careful about
what they assume is current state.  It's possible but it's quite a bit
of work.

Robert.

On Sat, Sep 20, 2008 at 12:42 AM, Pecoraro, Alexander N
<alexander.n.pecoraro at lmco.com> wrote:
> I want to create a VertexBufferObject that is shared by several Geometry
> nodes so that the number of calls to glBindBuffer() are decreased, but I
> noticed that on lines 1561 – 1567 of Geometry.cpp there is some code that
> automatically unbinds the vertex buffer object effectively forcing each
> Geometry node to rebind the VBO each time. Why does it do this? Isn't this
> preventing a shared VBO from being used in the most efficient way possible?
>
>
>
> Thanks.
>
>
>
> Alex
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



More information about the osg-users mailing list