Ignore:
Timestamp:
Dec 6, 2010, 10:07:21 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/TerrainTest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/myTerrainTechnique.cpp

    r170 r171  
    3232        h->setHeight( 0,0, 1000);
    3333
     34         ImageLayer* il = dynamic_cast<ImageLayer*>( getTerrainTile()->getColorLayer(0) );
     35         osg::Image* img = il->getImage();
     36         img->setInternalTextureFormat( GL_RGBA );
     37
     38         osg::ref_ptr<osg::Image> img2 = new osg::Image();
     39         img2->setInternalTextureFormat( GL_RGBA );
     40         img2->alloc
     41
    3442    GeometryTechnique::init(dirtyMask, assumeMultiThreaded);
    3543}
  • experimental/TerrainTest/myTerrainTechnique.h

    r169 r171  
    22
    33#include <osgTerrain/GeometryTechnique>
     4#include <osg/Image>
    45
    56namespace osgTerrain {
  • experimental/TerrainTest/osgterrain.cpp

    r169 r171  
    215215    }
    216216
     217        //osgDB::DatabasePager::create()->setDoPreCompile(true);
     218
    217219    osgTerrain::Terrain* terrain = findTopMostNodeOfType<osgTerrain::Terrain>(rootnode);
    218220    if (!terrain)
Note: See TracChangeset for help on using the changeset viewer.