Hi Alex, Your changes looks sensible and is now checked into svn/trunk.
Last week I fixed another bug in handling of VBO's in Geometry& serializers, the problem related to vertex arrays, but is closely related. I think this illustrates that we need to tidy up the handling of VBO & EBO's better. I'm thinking about having something like a Geometry::assignBufferObjects() method. When I come up with a solution I'll make sure that the changes you've made are revised a little to use the new scheme as well, but for now you fix is useful in it's own right so is now merged. Cheers, Robert. On Fri, Oct 8, 2010 at 2:17 PM, Alexander Irion <[email protected]> wrote: > When a osg::Geometry node is loaded from a ".osgb" file, there is no element > buffer object created for the primitives element indices, although > _useVertexBufferObjects is enabled. This bug decreases the rendering > performance. > Please find my attached proposal for fixing this issue. > > --Alex > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32562#32562 > > > > > Attachments: > http://forum.openscenegraph.org//files/fix_for_no_element_buffers_used_277.zip > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
