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:
@@ -393,8 +393,6 @@ public:
|
||||
while (arguments.read("--dl")) { modifyDrawableSettings = true; useDisplayLists = true; }
|
||||
|
||||
while (arguments.read("-s", simplificatioRatio)) {}
|
||||
while (arguments.read("--tristripper")) { useTriStripVisitor=true; }
|
||||
while (arguments.read("--no-tristripper")) { useTriStripVisitor=false; }
|
||||
while (arguments.read("--smoother")) { useSmoothingVisitor=true; }
|
||||
while (arguments.read("--no-smoother")) { useSmoothingVisitor=false; }
|
||||
|
||||
@@ -426,7 +424,6 @@ public:
|
||||
OSG_NOTICE<<"Running simplifier with simplification ratio="<<simplificatioRatio<<std::endl;
|
||||
float maxError = 4.0f;
|
||||
osgUtil::Simplifier simplifier(simplificatioRatio, maxError);
|
||||
simplifier.setDoTriStrip(useTriStripVisitor);
|
||||
simplifier.setSmoothing(useSmoothingVisitor);
|
||||
node->accept(simplifier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user