- Timestamp:
- 06/07/06 13:56:08 (19 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj
r999 r1003 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;"$(LIBXML_HOME)\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";d:\work\Collada\include" 76 76 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 77 77 RuntimeLibrary="2" … … 85 85 <Tool 86 86 Name="VCLinkerTool" 87 AdditionalDependencies="OGREMain.LIB CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib Plugin_VisibilitySceneManager.lib IVReader.lib zdll.lib zziplib.lib "87 AdditionalDependencies="OGREMain.LIB CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib Plugin_VisibilitySceneManager.lib IVReader.lib zdll.lib zziplib.lib Plugin_Collada.lib" 88 88 OutputFile="$(OGRE_PATH)/Samples/Common/bin/Release/TestCullingTerrain.exe" 89 89 LinkIncremental="1" 90 AdditionalLibraryDirectories=""$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\Ogre\lib\$(ConfigurationName)";..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)" "90 AdditionalLibraryDirectories=""$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\Ogre\lib\$(ConfigurationName)";..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)";d:\work\Collada\bin\release" 91 91 GenerateDebugInformation="TRUE" 92 92 SubSystem="2" -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r999 r1003 329 329 } 330 330 //----------------------------------------------------------------------- 331 bool TestCullingTerrainApplication::LoadScene IV(const String &filename,332 SceneNode *root,333 const int index)331 bool TestCullingTerrainApplication::LoadSceneCollada(const String &filename, 332 SceneNode *root, 333 const int index) 334 334 { 335 335 // Collada 336 #if 1337 336 ColladaDocument *daeDoc = new ColladaDocument(mSceneMgr); 338 337 339 String daeName = strCmdLine;340 if (daeName.empty())341 daeName = "cube.dae";338 String daeName = filename; 339 //if (daeName.empty()) 340 // daeName = "City_1500.dae"; 342 341 343 342 // default directory 344 daeName.insert(0, "../../media/models/collada/");343 //daeName.insert(0, "../../media/models/collada/City"); 345 344 LogManager::getSingleton().logMessage("ColladaDocument - import started"); 346 345 347 346 // full import 348 347 if (daeDoc->doImport(daeName)) … … 358 357 */ 359 358 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 359 360 // everything is loaded, we do not need the collada document anymore 361 delete daeDoc; 362 363 return true; 364 } 365 else 366 { 367 LogManager::getSingleton().logMessage("ColladaDocument - import failed"); 368 return false; 369 } 370 371 return true; 372 } 373 //----------------------------------------------------------------------- 374 bool TestCullingTerrainApplication::LoadSceneIV(const String &filename, 375 SceneNode *root, 376 const int index) 377 { 378 366 379 367 380 … … 404 417 return true; 405 418 } 406 #endif407 419 408 420 return false; … … 756 768 LoadSceneIV(fn, mSceneMgr->getRootSceneNode(), i); 757 769 } 758 else if (strstr(filename.c_str(), ". collada"))770 else if (strstr(filename.c_str(), ".dae")) 759 771 { 760 772 // load collada files 761 } 762 else if (filename == "terrain") 773 // load iv files 774 LoadSceneCollada(fn, mSceneMgr->getRootSceneNode(), i); 775 } 776 else //if (filename == "terrain") 763 777 { 764 778 // terrain hack -
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.h
r973 r1003 128 128 bool LoadSceneIV(const String &filename, SceneNode *root, const int index); 129 129 130 bool LoadSceneCollada(const String &filename, SceneNode *root, const int index); 131 130 132 bool LoadScene(const String &filename); 131 133
Note: See TracChangeset
for help on using the changeset viewer.