Ignore:
Timestamp:
Nov 25, 2010, 10:42:55 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/TerrainTest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/myTerrainTechnique.cpp

    r166 r167  
    2121void myTerrainTechnique::update(osgUtil::UpdateVisitor* uv)
    2222{
    23     OSG_ALWAYS<<className()<<"::userdefides update"<<std::endl;
     23        //HeightFieldLayer* hfl = dynamic_cast<HeightFieldLayer*>( getTerrainTile()->getElevationLayer() );
     24        //osg::HeightField* h = hfl->getHeightField();
     25
     26        //float height = h->getHeight( 0,0 );
     27        ////OSG_ALWAYS<<"retrieved height: " << height << std::endl;
     28        //height +=50000;
     29        //h->setHeight( 0,0, height);
     30        //OSG_ALWAYS<<"modified height: " << height << std::endl;
     31        ////getTerrainTile()->setDirty( true ); // Neccessary
     32
    2433
    2534        GeometryTechnique::update( uv);
  • experimental/TerrainTest/myTerrainTechnique.h

    r166 r167  
    1717        ~myTerrainTechnique(void);
    1818
    19         /** Traverse the terain subgraph.*/
    20     //virtual void traverse(osg::NodeVisitor& nv);
    21 
    2219        virtual void update(osgUtil::UpdateVisitor* nv);
    2320};
  • experimental/TerrainTest/myTileLoadedCallback.cpp

    r166 r167  
    88myTileLoadedCallback::myTileLoadedCallback(osgTerrain::Terrain* terrain) : _terrain(terrain)
    99{
    10 
     10 OSG_ALWAYS << "test";
    1111}
    1212
     
    2525        //OSG_ALWAYS << "Executing myTileLoadedCallback!" << std::endl;
    2626        tile->setTerrainTechnique( new osgTerrain::myTerrainTechnique() );
    27         _terrain->updateTerrainTileOnNextFrame(tile);
     27        //_terrain->updateTerrainTileOnNextFrame(tile);
    2828}
    2929   
Note: See TracChangeset for help on using the changeset viewer.