Changeset 255 for experimental/TerrainTest
- Timestamp:
- Feb 21, 2011, 8:26:43 PM (14 years ago)
- Location:
- experimental/TerrainTest
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/ModificationVisitor.cpp
r252 r255 9 9 { 10 10 //OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: Node found: " << node.className() << std::endl; 11 12 if(std::string(node.className())=="TerrainTile") 13 { 14 OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: Tile found" << std::endl; 15 modifyTile(node); 16 } 17 11 18 traverse( node ); 12 19 } … … 29 36 traverse( pNode ); 30 37 } 38 39 void ModificationVisitor::modifyTile(osg::Node& node) 40 { 41 OSG_NOTIFY( osg::ALWAYS ) << "ModificationVisitor::modifyTerrain()" << std::endl; 42 43 44 45 46 47 OpenThreads::Thread::microSleep( 500000 ); 48 } -
experimental/TerrainTest/ModificationVisitor.h
r252 r255 4 4 #include <osg/NodeVisitor> 5 5 #include <osg/PagedLOD> 6 #include <osgTerrain/TerrainTile> 7 6 8 7 9 class ModificationVisitor : public osg::NodeVisitor … … 13 15 14 16 private: 17 void modifyTile(osg::Node& node); 15 18 std::string _extensionToSet; 16 19 }; -
experimental/TerrainTest/ReaderWriterTerrainMod.cpp
r254 r255 37 37 node->accept( modVisitor ); 38 38 39 // Modify loaded terrain40 ReaderWriterTerrainMod* this_unconst = const_cast < ReaderWriterTerrainMod* > (this);41 this_unconst->modifyTerrain();42 43 39 return node; 44 }45 46 void ReaderWriterTerrainMod::modifyTerrain()47 {48 OSG_NOTIFY( osg::ALWAYS ) << "ReaderWriterTerrainMod::modifyTerrain()" << std::endl;49 50 //51 OpenThreads::Thread::microSleep( 500000 );52 40 } 53 41 -
experimental/TerrainTest/ReaderWriterTerrainMod.h
r253 r255 18 18 19 19 private: 20 void modifyTerrain();21 20 std::string extensionToAdd; 22 21 }; -
experimental/TerrainTest/myTerrainTechnique.cpp
r250 r255 36 36 //img->setInternalTextureFormat( GL_RGBA ); 37 37 38 if( img->getPixelFormat() == GL_RGBA )38 /* if( img->getPixelFormat() == GL_RGBA ) 39 39 OSG_ALWAYS << "Format ist RGBA" << std::endl; 40 40 if( img->getPixelFormat() == GL_RGB ) 41 41 OSG_ALWAYS << "Format ist RGB" << std::endl; 42 42 if( img->getPixelFormat() == GL_COMPRESSED_RGB_S3TC_DXT1_EXT ) 43 OSG_ALWAYS << "Format ist GL_COMPRESSED_RGB_S3TC_DXT1_EXT" << std::endl; 43 OSG_ALWAYS << "Format ist GL_COMPRESSED_RGB_S3TC_DXT1_EXT" << std::endl;*/ 44 44 45 45
Note: See TracChangeset
for help on using the changeset viewer.