Added initial render to texture functionality into osgVolume::VolumeScene
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user