Added initial render to texture functionality into osgVolume::VolumeScene

This commit is contained in:
Robert Osfield
2013-11-25 17:36:17 +00:00
parent f02ed3c629
commit 4fcf8d3e86
3 changed files with 160 additions and 1 deletions

View File

@@ -49,6 +49,7 @@
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightManipulator>
#include <osgGA/KeySwitchMatrixManipulator>
#include <osgGA/StateSetManipulator>
#include <osgUtil/CullVisitor>
@@ -490,6 +491,9 @@ int main( int argc, char **argv )
// add the stats handler
viewer.addEventHandler(new osgViewer::StatsHandler);
// add stateset manipulator
viewer.addEventHandler(new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()));
viewer.getCamera()->setClearColor(osg::Vec4(0.0f,0.0f,0.0f,0.0f));
// if user request help write it out to cout.
@@ -1225,6 +1229,8 @@ int main( int argc, char **argv )
}
// set the scene to render
viewer.setSceneData(loadedModel.get());