Ignore:
Timestamp:
Nov 24, 2010, 8:58:47 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/osgterrain.cpp

    r162 r163  
    213213    terrain->setVerticalScale(verticalScale);
    214214    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);
    219220        if(tile)
    220221        {
    221222                tile->setTerrainTechnique( myT );
    222         }
     223        }*/
    223224
    224225    // register our custom handler for adjust Terrain settings
Note: See TracChangeset for help on using the changeset viewer.