Changeset 275 for experimental/TerrainTest/osgterrain.cpp
- Timestamp:
- Mar 20, 2011, 1:14:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/osgterrain.cpp
r171 r275 232 232 //terrain->setTerrainTechniquePrototype( myT ); 233 233 234 //// Manually set the terrain technque for a tile ( his example, the first found tile) works, but then the whole database has to be processed235 //osgTerrain::TerrainTile* tile = findTopMostNodeOfType<osgTerrain::TerrainTile>(rootnode);236 //if(tile)237 //{238 // tile->setTerrainTechnique( myT );239 //}240 234 241 235 // Use Tile load Callback 242 osg::ref_ptr<osgTerrain::myTileLoadedCallback> tlcb = new osgTerrain::myTileLoadedCallback( terrain);236 osg::ref_ptr<osgTerrain::myTileLoadedCallback> tlcb = new osgTerrain::myTileLoadedCallback(); 243 237 osgTerrain::TerrainTile::setTileLoadedCallback(tlcb); 244 238
Note: See TracChangeset
for help on using the changeset viewer.