Changeset 352 for experimental/distortionNG/main.cpp
- Timestamp:
- Apr 21, 2012, 5:28:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/main.cpp
r350 r352 35 35 #include <osgGA/AnimationPathManipulator> 36 36 #include <osgGA/TerrainManipulator> 37 38 #include "DistortionManipulator.h" 39 37 40 int main(int argc, char** argv) 38 41 { … … 48 51 return -1; 49 52 } 50 51 viewer.setUpViewForManualDistortion(0, intMap); 52 53 // Create DistortionSet 54 osg::ref_ptr<osgViewer::DistortionSet> _distortionSet = new osgViewer::DistortionSet(); 55 _distortionSet->setIntensityMap( intMap ); 56 _distortionSet->setDistortionMeshRows( 20 ); 57 _distortionSet->setDistortionMeshColumns( 20 ); 58 59 viewer.setUpViewForManualDistortion(_distortionSet, 0); 60 61 62 53 63 // set up the camera manipulators. 54 64 { … … 77 87 } 78 88 89 // Add the distortion manipulator 90 osgViewer::DistortionManipulator* distManip = new osgViewer::DistortionManipulator(); 91 distManip->setDistortionSet(_distortionSet); 92 viewer.addEventHandler(distManip); 79 93 80 94 // add the state manipulator
Note: See TracChangeset
for help on using the changeset viewer.