Implemented duplicate removal code into TriStripVisitor and added an

extra pass to doing tri stripping in the osgUtil::Optimzer.

Added validity checks into osg::TexEnvCombine to catch eronous enumarant values.

Improved the efficient of CullingSet's handling of new transforms.

Added a copy shared subgraphs and subdivision code into osgUtil::Optimizer.
This commit is contained in:
Robert Osfield
2003-12-03 21:45:32 +00:00
parent cdb6f9a1df
commit db66abd6d6
14 changed files with 985 additions and 112 deletions

View File

@@ -138,19 +138,19 @@ make1DSineTexture( int texSize )
///////////////////////////////////////////////////////////////////////////
static osg::Node* createGlobe()
{
osg::Geode* geode = new osg::Geode();
osg::StateSet* stateset = geode->getOrCreateStateSet();
osg::Texture2D* texture = new osg::Texture2D;
texture->setImage( osgDB::readImageFile("Images/land_shallow_topo_2048.jpg") );
stateset->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON);
geode->addDrawable(new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0,0,0), 2.0f)));
return geode;
}
// static osg::Node* createGlobe()
// {
// osg::Geode* geode = new osg::Geode();
// osg::StateSet* stateset = geode->getOrCreateStateSet();
//
// osg::Texture2D* texture = new osg::Texture2D;
// texture->setImage( osgDB::readImageFile("Images/land_shallow_topo_2048.jpg") );
// stateset->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON);
//
// geode->addDrawable(new osg::ShapeDrawable(new osg::Sphere(osg::Vec3(0,0,0), 2.0f)));
//
// return geode;
// }
///////////////////////////////////////////////////////////////////////////
// OpenGL Shading Language source code for the "microshader" example,