Ignore:
Timestamp:
Mar 11, 2012, 9:45:19 AM (12 years ago)
Author:
Torben Dannhauer
Message:

Initial intensityMap support added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/main.cpp

    r329 r331  
    4141    // construct the viewer.
    4242    extViewer viewer(arguments);
    43         viewer.setUpViewForManualDistortion();
    44         //viewer.setUpViewFor3DSphericalDisplay();
    4543
    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.
    4755    {
    4856        osg::ref_ptr<osgGA::KeySwitchMatrixManipulator> keyswitchManipulator = new osgGA::KeySwitchMatrixManipulator;
Note: See TracChangeset for help on using the changeset viewer.