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

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSetupStrategyProjectSyntropy.cpp

    r383 r384  
    409409                        distortionSet->setDistortionMeshColumns(distortionMeshColumns);
    410410                        distortionSet->setDistortionMeshRows(distortionMeshRows);
    411 
    412                         // apply new settings
    413                         //if((_distortionType==TEXCOORDDISTORTION) || (_distortionType==COMBINEDDISTORTION))
    414                         //{
    415                         //      distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setTexCoordArray(0,tmpMeshVec2);
    416                         //}
    417 
    418                         //if((_distortionType==VERTEXDISTORTION) || (_distortionType==COMBINEDDISTORTION))
    419                         //{
    420                         //      OSG_ALWAYS<<"New mesh ---------------------------"<<std::endl;
    421                         //      for(unsigned int i=0;i<tmpMeshVec2->size();i++)
    422                         //      {
    423                         //              // Scale vector with the screen resolution
    424                         //              osg::Vec3 tmpVec = osg::Vec3(   tmpMeshVec2->at(i).x()*width,
    425                         //                                                                              tmpMeshVec2->at(i).y()*height,
    426                         //                                                                              0.0     );
    427                         //              vertexMeshVec3->push_back( tmpVec );
    428                         //              OSG_ALWAYS<<"X:"<<tmpVec.x()<<" Y:"<<tmpVec.y()<<" Z:"<<tmpVec.z()<<std::endl;
    429                         //      }
    430                         //      OSG_ALWAYS<<"tmpMeshVec2 size:"<<tmpMeshVec2->size()<<std::endl;
    431                         //      distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setVertexArray(vertexMeshVec3);
    432                         //      distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->setTexCoordArray
    433                         //      distortionSet->getDistortionInternals()->getChild(osgViewer::DistortionSet::MESH)->asGeode()->getDrawable(0)->asGeometry()->dirtyDisplayList();
    434                         //}
    435411                }
    436412        }
Note: See TracChangeset for help on using the changeset viewer.