Changeset 378


Ignore:
Timestamp:
Jun 14, 2012, 5:36:49 PM (7 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp

    r377 r378  
    1717*/
    1818
     19#include <osg/Vec3d>
     20#include <osg/ImageUtils>
    1921#include <osgDB/ReadFile>
    20 #include <osg/Vec3d>
    2122#include <osgDB/fstream>
    2223
     
    287288                        intensityMap->scaleImage(width, height, intensityMap->r());
    288289
    289                 distortionSet->setIntensityMap(intensityMap);
    290 
     290                // Copy image data and flag as dirty to update texture.
     291                osg::copyImage(intensityMap, 0, 0, 0, intensityMap->s(), intensityMap->t(), intensityMap->r(), distortionSet->getIntensityMap(), 0, 0, 0, true);
     292                distortionSet->getIntensityMap()->dirty();
     293
     294                return;
    291295                // ******************************* //
    292296                // *** Frustum and View Offset *** //
Note: See TracChangeset for help on using the changeset viewer.