Changeset 167 for experimental/TerrainTest
- Timestamp:
- Nov 25, 2010, 10:42:55 PM (14 years ago)
- Location:
- experimental/TerrainTest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/myTerrainTechnique.cpp
r166 r167 21 21 void myTerrainTechnique::update(osgUtil::UpdateVisitor* uv) 22 22 { 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 24 33 25 34 GeometryTechnique::update( uv); -
experimental/TerrainTest/myTerrainTechnique.h
r166 r167 17 17 ~myTerrainTechnique(void); 18 18 19 /** Traverse the terain subgraph.*/20 //virtual void traverse(osg::NodeVisitor& nv);21 22 19 virtual void update(osgUtil::UpdateVisitor* nv); 23 20 }; -
experimental/TerrainTest/myTileLoadedCallback.cpp
r166 r167 8 8 myTileLoadedCallback::myTileLoadedCallback(osgTerrain::Terrain* terrain) : _terrain(terrain) 9 9 { 10 10 OSG_ALWAYS << "test"; 11 11 } 12 12 … … 25 25 //OSG_ALWAYS << "Executing myTileLoadedCallback!" << std::endl; 26 26 tile->setTerrainTechnique( new osgTerrain::myTerrainTechnique() ); 27 _terrain->updateTerrainTileOnNextFrame(tile);27 //_terrain->updateTerrainTileOnNextFrame(tile); 28 28 } 29 29
Note: See TracChangeset
for help on using the changeset viewer.