Hi Eric,

You'll need to call array->dirty() on each of the osg::Array's in the
geometry for it to update.  In 2.0 this should now automatically allow
the VBO to update.  This is something I got working in a round of work
about 6 weeks before 2.0.

Robert.

On 6/29/07, E. Wing <[EMAIL PROTECTED]> wrote:
I am trying to enable Vertex Buffer Objects in my program (hoping to
see some major performance gains), but it is not working correctly for
me. I have a continuous stream of data I want to draw, but when I call
setUseVertexBufferObjects(true);
my rendered scene stops changing. It's almost like display lists were
enabled and I forgot to call dirtyDisplayLists, but I know that I
disabled displaylists (the code works with VBOs off).

Attached is a simple example program that reproduces the problem. If
you switch the following line to false, things move as expected, but
are obviously not using VBOs.
lineGeometry.get()->setUseVertexBufferObjects(true);

Thanks,
Eric

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to