Hi Christian, On 10 January 2013 09:46, Christian Schulte <[email protected]> wrote: > I bring up this post again to see if someone else than me has this problem. > I still have this kind of problem with the trunk of OSG, and I don't know > why this really happens... > The only actual solution is OSG_OPTIMIZER="DEFAULT ~MAKE_FAST_GEOMETRY"
I have just tried running your model on my Linux box and I get the "Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..)" when the optimizer is it's default form. Curiously if I run osgconv on the model which will run the optimizer and then write out a new file, if I load this new file it works fine - even without changing the optimizer options. This behaviour would suggest that the optimizer is creating some scene graph state that generates invalid OpenGL data when rendering but this state isn't saved and reloaded. From your investigation it'd look to be the MAKE_FAST_GEOMETRY option that is introducing this issue, however, the odd thing is the resulting .osg that osgconv generates still has the vertex indices in the scene graph. BTW, how did you generate the original model with vertex indices? vertex indices are very much a deprecated and strongly recommend not to use feature of the OSG that is only still available for backwards compatibility. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

