Removed Terrain.cpp and header from CVS repository.

Added support for setting the maximum visiable distance of top level
to osgTerrain::DataSet, and debugging code which insert a axes.osg
above each tile.
This commit is contained in:
Robert Osfield
2004-05-06 10:59:08 +00:00
parent eedfe44a1c
commit 1a09763515
4 changed files with 15 additions and 213 deletions

View File

@@ -2360,6 +2360,17 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
osg::MatrixTransform* mt = new osg::MatrixTransform;
mt->setMatrix(localToWorld);
mt->addChild(geode);
bool addLocalAxes = false;
if (addLocalAxes)
{
float s = geode->getBound().radius()*0.5f;
osg::MatrixTransform* scaleAxis = new osg::MatrixTransform;
scaleAxis->setMatrix(osg::Matrix::scale(s,s,s));
scaleAxis->addChild(osgDB::readNodeFile("axes.osg"));
mt->addChild(scaleAxis);
}
return mt;
}
else