Changeset 253 for experimental/TerrainTest
- Timestamp:
- Feb 21, 2011, 7:17:13 PM (14 years ago)
- Location:
- experimental/TerrainTest
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/ReaderWriterTerrainMod.cpp
r252 r253 5 5 supportsExtension( "terrainmod", "Terrain modification pseudo loader"); 6 6 7 std::stringextensionToAdd = ".terrainmod";7 extensionToAdd = ".terrainmod"; 8 8 } 9 9 … … 33 33 34 34 // Traverse through loaded graph, check for PagedLOD and modify all filenames of external references 35 // This ensures ensures that higher LODs are loaded via terrainmod pseudo loader as well. 35 36 ModificationVisitor modVisitor(extensionToAdd); 36 37 node->accept( modVisitor ); 38 39 // Modify loaded terrain 40 ReaderWriterTerrainMod* this_unconst = const_cast < ReaderWriterTerrainMod* > (this); 41 this_unconst->modifyTerrain(); 37 42 38 43 return node; 39 44 } 40 45 46 void ReaderWriterTerrainMod::modifyTerrain() 47 { 48 // 49 OpenThreads::Thread::microSleep( 500000 ); 50 } 51 41 52 // Add ourself to the Registry to instantiate the reader/writer. 42 53 REGISTER_OSGPLUGIN(terrainmod, ReaderWriterTerrainMod) -
experimental/TerrainTest/ReaderWriterTerrainMod.h
r251 r253 17 17 virtual ReadResult readNode( const std::string& file, const osgDB::ReaderWriter::Options* options) const; 18 18 19 20 //virtual ~ReaderWriterTerrainMod(); 19 private: 20 void modifyTerrain(); 21 std::string extensionToAdd; 21 22 }; -
experimental/TerrainTest/TerrainTest.sln
r250 r253 1488 1488 EndProjectSection 1489 1489 EndProject 1490 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Plugins terrainmod", " ..\Plugins terrainmod\Plugins terrainmod.vcproj", "{59A20266-19E6-4ABD-A43A-6485BA7C1537}"1490 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Plugins terrainmod", "Plugins terrainmod\Plugins terrainmod.vcproj", "{59A20266-19E6-4ABD-A43A-6485BA7C1537}" 1491 1491 EndProject 1492 1492 Global
Note: See TracChangeset
for help on using the changeset viewer.