Changeset 331 for experimental/distortionNG/main.cpp
- Timestamp:
- Mar 11, 2012, 9:45:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/main.cpp
r329 r331 41 41 // construct the viewer. 42 42 extViewer viewer(arguments); 43 viewer.setUpViewForManualDistortion();44 //viewer.setUpViewFor3DSphericalDisplay();45 43 46 // set up the camera manipulators. 44 osg::Image* intMap = osgDB::readImageFile("intensitymap.png"); 45 if (!intMap) 46 { 47 osg::notify(osg::WARN) << "Couldn't find intensity map, quiting." << std::endl; 48 return -1; 49 } 50 51 viewer.setUpViewForManualDistortion(0, intMap); 52 //viewer.setUpViewForPanoramicSphericalDisplay(1, 0, 0, intMap); 53 54 // set up the camera manipulators. 47 55 { 48 56 osg::ref_ptr<osgGA::KeySwitchMatrixManipulator> keyswitchManipulator = new osgGA::KeySwitchMatrixManipulator;
Note: See TracChangeset
for help on using the changeset viewer.