Removed usage of the osgUtil::TriStripVisitor is it generates osg::Geometry that perform very poorly when using VBO and VAO's vs GL DisplayLists.
With DisplayLists being deprecated in GL and VBO and VAO becoming standard it's best to standardize on using the osgUtil::MeshOptimizers instead of TripStrupVisitor
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#include <osgUtil/Simplifier>
|
||||
|
||||
#include <osgUtil/SmoothingVisitor>
|
||||
#include <osgUtil/TriStripVisitor>
|
||||
#include <osgUtil/MeshOptimizers>
|
||||
|
||||
#include <set>
|
||||
#include <list>
|
||||
@@ -1802,8 +1802,7 @@ void Simplifier::simplify(osg::Geometry& geometry, const IndexList& protectedPoi
|
||||
|
||||
if (_triStrip)
|
||||
{
|
||||
osgUtil::TriStripVisitor stripper;
|
||||
stripper.stripify(geometry);
|
||||
osgUtil::optimizeMesh(&geometry);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user