Changeset 378
- Timestamp:
- Jun 14, 2012, 5:36:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp
r377 r378 17 17 */ 18 18 19 #include <osg/Vec3d> 20 #include <osg/ImageUtils> 19 21 #include <osgDB/ReadFile> 20 #include <osg/Vec3d>21 22 #include <osgDB/fstream> 22 23 … … 287 288 intensityMap->scaleImage(width, height, intensityMap->r()); 288 289 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; 291 295 // ******************************* // 292 296 // *** Frustum and View Offset *** //
Note: See TracChangeset
for help on using the changeset viewer.