- Timestamp:
- 05/31/06 18:25:39 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj
r956 r999 73 73 <Tool 74 74 Name="VCCLCompilerTool" 75 AdditionalIncludeDirectories=""$(OGRE_PATH)\Dependencies\include";"$(OGRE_PATH)\OgreMain\include";"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\Dependencies\include\CEGUI";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\include";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include";..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include "75 AdditionalIncludeDirectories=""$(OGRE_PATH)\Dependencies\include";"$(OGRE_PATH)\OgreMain\include";"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\Dependencies\include\CEGUI";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\include";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include";..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;"$(LIBXML_HOME)\include"" 76 76 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 77 77 RuntimeLibrary="2" -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r973 r999 10 10 #include "TerrainFrameListener.h" 11 11 12 // #include "OgreColladaPrerequisites.h" 13 #include "OgreColladaDocument.h" 14 #include "OgreColladaScene.h" 15 16 12 17 #include "IVReader.h" 13 18 … … 20 25 21 26 22 /****************************************************** /23 /* EntityState implementation*/24 /****************************************************** /27 /*************************************************************/ 28 /* EntityState implementation */ 29 /*************************************************************/ 25 30 26 31 … … 328 333 const int index) 329 334 { 335 // Collada 336 #if 1 337 ColladaDocument *daeDoc = new ColladaDocument(mSceneMgr); 338 339 String daeName = strCmdLine; 340 if (daeName.empty()) 341 daeName = "cube.dae"; 342 343 // default directory 344 daeName.insert(0, "../../media/models/collada/"); 345 LogManager::getSingleton().logMessage("ColladaDocument - import started"); 346 347 // full import 348 if (daeDoc->doImport(daeName)) 349 { 350 LogManager::getSingleton().logMessage("yuppi"); 351 /** 352 * build up scene 353 * if you only want a specific part of the scene graph, you must fetch a scene node 354 * by its unique node name and give it as parameter 355 * e.g. 356 * ColladaSceneNode *box = mScene->getNode("Box2"); 357 * if (box != NULL) box->createOgreInstance(NULL); 358 */ 359 daeDoc->getScene()->createOgreInstance(NULL); 360 } 361 362 LogManager::getSingleton().logMessage("ColladaDocument - import finished"); 363 // everything is loaded, we do not need the collada document anymore 364 delete daeDoc; 365 #else 366 367 330 368 mIVReader = new IVReader(); 331 369 … … 366 404 return true; 367 405 } 368 406 #endif 369 407 370 408 return false; … … 602 640 //mSceneMgr = mRoot->createSceneManager("TerrainSceneManager"); 603 641 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 642 //mSceneMgr = mRoot->createSceneManager("KdTreeSceneManager"); 643 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 604 644 } 605 645 else … … 607 647 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 608 648 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 649 //mSceneMgr = mRoot->createSceneManager("KdTreeSceneManager"); 650 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 609 651 } 610 652
Note: See TracChangeset
for help on using the changeset viewer.