[osg-users] VBO's - lifetime.

Robert Osfield robert.osfield at gmail.com
Wed Nov 25 08:39:57 PST 2009


Hi Nico,

I've now modified the osgcamera example so that it can be used as
tested bed for repeated construction of viewers and enabling of VBO's.
 The example is now checked into svn/trunk, could you please try it
out on your system and see what errors you can pick up.  Try the
following command line:

    osgcamera -r 3 glider.osg

And:

   osgcamera -r 3 --vbo glider.osg

You can also try (which loads once and then shares the model between viewers):

   osgcamera -r 3 --vbo --shared glider.osg

Press escape each time the view comes up to close the viewer and move
on to the next one.

With the first command line I get no errors, and the glider comes up
correctly each time.  When enabling VBO's with --vbo I get the correct
model on the first frame, and on the two following viewers nothing
comes up and I get errors, the output to the console I've copied in
below.  Adding the --shared doesn't have any effect.

The good news is that I am getting GL errors which suggests that the
VBO pool isn't being cleaned up or initialized correctly for the new
contexts.  There is chance that this will result in crash on your
system, but only GL errors on mine.  Could you please test osgcamera
as above to see.

Cheers,
Robert.

+++++++++++++ New viewer ++++++++++++
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
GLBufferObjectSet::GLBufferObjectSet _profile._size=13120
GLBufferObjectSet::GLBufferObjectSet _profile._size=640
------------ Viewer ended ----------

+++++++++++++ New viewer ++++++++++++
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Warning: detected OpenGL error 'invalid value' at After Renderer::compile
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
------------ Viewer ended ----------

+++++++++++++ New viewer ++++++++++++
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Enabling VBO
Warning: detected OpenGL error 'invalid value' at After Renderer::compile
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
Warning: detected OpenGL error 'out of memory' at after RenderBin::draw(..)
------------ Viewer ended ----------


More information about the osg-users mailing list