Changeset 385 for experimental


Ignore:
Timestamp:
Jun 15, 2012, 10:12:39 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionManipulator.cpp

    r384 r385  
    540540void DistortionManipulator::updateDistortionMesh()
    541541{
    542         // Create mesh vertex array
    543 
    544         // Create textCoord array
    545 
    546         // Apply arrays
    547 
     542        // Create mesh vertex array & textCoord array
    548543        osg::Vec3Array* vertices = new osg::Vec3Array;
    549544        osg::Vec2Array* texCoords = new osg::Vec2Array;
     
    564559        }
    565560
     561        // Apply arrays
    566562        _distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setVertexArray(vertices);
    567563        _distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setTexCoordArray(0, texCoords);    // todo: 0 ist hardcoded und müsste durch getTexUnitScene() ersetzt werden
    568564        _distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->dirtyDisplayList();
    569 
    570 }
     565}
Note: See TracChangeset for help on using the changeset viewer.