Changeset 163 for experimental/TerrainTest/osgterrain.cpp
- Timestamp:
- Nov 24, 2010, 8:58:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/osgterrain.cpp
r162 r163 213 213 terrain->setVerticalScale(verticalScale); 214 214 terrain->setBlendingPolicy(blendingPolicy); 215 osg::ref_ptr<myTerrainTechnique> myT = new myTerrainTechnique(); 216 //terrain->setTerrainTechniquePrototype( myT ); 217 218 osgTerrain::TerrainTile* tile = findTopMostNodeOfType<osgTerrain::TerrainTile>(rootnode); 215 osg::ref_ptr<osgTerrain::TerrainTechnique> myT = new osgTerrain::myTerrainTechnique(); 216 terrain->setTerrainTechniquePrototype( myT ); 217 218 // Manually set the terrain technque for a tile ( his example, the first found tile) works, but then the whole database has to be processed 219 /*osgTerrain::TerrainTile* tile = findTopMostNodeOfType<osgTerrain::TerrainTile>(rootnode); 219 220 if(tile) 220 221 { 221 222 tile->setTerrainTechnique( myT ); 222 } 223 }*/ 223 224 224 225 // register our custom handler for adjust Terrain settings
Note: See TracChangeset
for help on using the changeset viewer.