Changeset 194
- Timestamp:
- Jan 11, 2011, 8:51:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/core/visual_core.cpp
r192 r194 95 95 96 96 loadTerrain(arguments); 97 98 // parse Configuration file99 xmlDoc* tmpDoc;100 xmlNode* sceneryNode = util::getSceneryXMLConfig(configFilename, tmpDoc);101 parseScenery(sceneryNode);102 if(sceneryNode)103 {104 xmlFreeDoc(tmpDoc); xmlCleanupParser();105 }106 97 107 98 // All modules are initialized - now check arguments for any unused parameter. … … 283 274 std::string node_name=reinterpret_cast<const char*>(cur_node->name); 284 275 285 if(cur_node->type == XML_ELEMENT_NODE && node_name == "terrain") 286 { 287 //<terrain filename="d:\my\path\database.ive"></terrain> 288 } 289 290 if(cur_node->type == XML_ELEMENT_NODE && node_name == "animationpath") 291 { 292 //<animationpath filename="salzburgerEcke.path"></animationpath> 293 } 276 // terrain is parsend seperately 277 // animationpath is parsend seperately 294 278 295 279 if(cur_node->type == XML_ELEMENT_NODE && node_name == "models") … … 416 400 void visual_core::setupScenery() 417 401 { 402 // Parse Scenery from Configuration file 403 xmlDoc* tmpDoc; 404 xmlNode* sceneryNode = util::getSceneryXMLConfig(configFilename, tmpDoc); 405 parseScenery(sceneryNode); 406 if(sceneryNode) 407 { 408 xmlFreeDoc(tmpDoc); xmlCleanupParser(); 409 } 410 411 418 412 419 413 // Sky settings: 420 414 if(sky.valid()) 421 415 { 422 sky->setTime(15,30,00);416 //sky->setTime(15,30,00); 423 417 sky->setVisibility(50000); 424 418 sky->addWindVolume( 0.0, 15000.0, 25.0, 90.0 );
Note: See TracChangeset
for help on using the changeset viewer.