Changeset 2101


Ignore:
Timestamp:
02/08/07 11:42:53 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/scripts/GameToolsRaytraceDemo.7.10.vcproj

    r2025 r2101  
    8787                                OptimizeForWindowsApplication="TRUE" 
    8888                                AdditionalIncludeDirectories="..\include;"$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns" 
    89                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 
     89                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE;GTP_VISIBILITY_MODIFIED_OGRE" 
    9090                                StringPooling="TRUE" 
    9191                                MinimalRebuild="TRUE" 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r1816 r2101  
    260260 
    261261        // init view cell parameters 
    262         mSceneMgr->setOption("UseViewCells", &mUseViewCells); 
     262        //mSceneMgr->setOption("UseViewCells", &mUseViewCells); 
    263263        mSceneMgr->setOption("UseVisibilityFilter", &mUseVisibilityFilter); 
    264264 
     
    12211221 
    12221222        // load on demand 
    1223         if (mUseViewCells && !mViewCellsLoaded) 
    1224         { 
     1223        if (mUseViewCells)// && !mViewCellsLoaded) 
     1224        { 
     1225                LogManager::getSingleton().logMessage("using view cells"); 
    12251226                mLoadingOverlay->show(); 
    12261227 
     
    12301231                 
    12311232                if (!mViewCellsLoaded) 
    1232                 { 
    1233                         std::stringstream d; 
    1234                         d << "loading view cells failed"; 
    1235                         LogManager::getSingleton().logMessage(d.str()); 
    1236                 } 
    1237  
     1233                        LogManager::getSingleton().logMessage("loading view cells failed"); 
     1234                else 
     1235                        LogManager::getSingleton().logMessage("view cells successfully loaded"); 
     1236         
    12381237                mLoadingOverlay->hide(); 
    12391238        } 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj

    r1953 r2101  
    8282                                OptimizeForWindowsApplication="TRUE" 
    8383                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 
    84                                 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 
     84                                PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
    8585                                RuntimeLibrary="2" 
    8686                                RuntimeTypeInfo="TRUE" 
     
    231231                        <Tool 
    232232                                Name="VCCLCompilerTool" 
     233                                Optimization="3" 
     234                                GlobalOptimizations="TRUE" 
     235                                InlineFunctionExpansion="2" 
     236                                EnableIntrinsicFunctions="TRUE" 
     237                                FavorSizeOrSpeed="1" 
     238                                OmitFramePointers="TRUE" 
     239                                EnableFiberSafeOptimizations="TRUE" 
     240                                OptimizeForProcessor="3" 
     241                                OptimizeForWindowsApplication="TRUE" 
    233242                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;&quot;$(LIBXML_HOME)\include&quot;;d:\work\Collada\include" 
    234243                                PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 
    235                                 RuntimeLibrary="2" 
     244                                StringPooling="TRUE" 
     245                                RuntimeLibrary="2" 
     246                                EnableEnhancedInstructionSet="2" 
    236247                                RuntimeTypeInfo="TRUE" 
    237248                                UsePrecompiledHeader="0" 
     
    246257                                OutputFile="$(OGRE_PATH)/Samples/Common/bin/Release/TestCullingTerrain.exe" 
    247258                                LinkIncremental="1" 
    248                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\Ogre\lib\$(ConfigurationName)&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib" 
     259                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\Release&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\Ogre\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib" 
    249260                                GenerateDebugInformation="TRUE" 
    250261                                SubSystem="2" 
    251262                                OptimizeReferences="2" 
    252263                                EnableCOMDATFolding="2" 
     264                                OptimizeForWindows98="1" 
    253265                                TargetMachine="1"/> 
    254266                        <Tool 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp

    r1816 r2101  
    192192        } 
    193193 
    194         val = config.getSetting("ViewCells"); 
     194/*      val = config.getSetting("ViewCells"); 
    195195 
    196196        if (!val.empty()) 
     
    218218                mInitialPosition.z = atof( val.c_str()); 
    219219 
    220  
    221         val = config.getSetting("OnlineCullingAlgorithm"); 
     220*/ 
     221/*      val = config.getSetting("OnlineCullingAlgorithm"); 
    222222 
    223223        if (!val.empty()) 
     
    248248        // setup scene 
    249249 
    250         if (!LoadScene(mFilename)) 
    251         { 
    252         LogManager::getSingleton().logMessage("error loading scene"); 
    253         } 
    254          
    255250        // set camera position accordingly 
    256251        mCamNode->setPosition(mInitialPosition); 
     252        */ 
    257253} 
    258254//----------------------------------------------------------------------- 
     
    286282        *       because then the camera is displayed correctly in the visualization 
    287283        */ 
     284        //Vector3 viewPoint(707, 5000, 528); 
     285        Vector3 viewPoint(830, 300, -540); 
     286        std::stringstream d; d << "here3: " << viewPoint; 
     287        Ogre::LogManager::getSingleton().logMessage(d.str()); 
    288288        mCamNode = mSceneMgr->getRootSceneNode()-> 
    289                 createChildSceneNode("CamNode1", Vector3(707, 5000, 528)); 
     289                createChildSceneNode("CamNode1", viewPoint); 
    290290         
    291291        mCamNode->setOrientation(Quaternion(-0.3486, 0.0122, 0.9365, 0.0329)); 
     
    457457        loadConfig("terrainCulling.cfg"); 
    458458         
     459        if (!LoadScene(mFilename)) 
     460                LogManager::getSingleton().logMessage("error loading scene"); 
     461         
     462         
    459463        ///////////////////////////////////// 
    460464 
     
    481485        mSunLight->setSpecularColour(1, 1, 1); 
    482486 
    483         // -- Fog 
     487        //-- Fog 
     488 
    484489        // NB it's VERY important to set this before calling setWorldGeometry  
    485490        // because the vertex program picked will be different 
     
    492497         
    493498        // terrain creation 
    494         if (msShowHillyTerrain) 
    495         { 
    496                 std::string terrain_cfg("terrain.cfg"); 
    497 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE 
    498                 terrain_cfg = mResourcePath + terrain_cfg; 
    499 #endif 
     499        if (1)//||msShowHillyTerrain) 
     500        { 
     501        mSceneMgr->getOption("ShowTerrain", &msShowHillyTerrain);  
     502                std::string terrain_cfg("terrainCulling.cfg"); 
    500503                mSceneMgr->setWorldGeometry(terrain_cfg); 
     504 
    501505        } 
    502506         
     
    555559void  TestCullingTerrainApplication::generateScene(int num, int objectType) 
    556560{ 
    557         float val = TerrainFrameListener::msObjectScales[objectType]; 
     561        const float val = TerrainFrameListener::msObjectScales[objectType]; 
    558562        Vector3 scale(val, val, val);  
    559563        const float maxHeight = 75; 
     
    564568        mTerrainContentGenerator->SetMaxPos(Vector3(mTerrainMaxPos.x, maxHeight, mTerrainMaxPos.z)); 
    565569         
    566         //std::stringstream d; d << "objscale: " << scale[0]; 
    567         //Ogre::LogManager::getSingleton().logMessage(d.str()); 
    568          
    569570        mTerrainContentGenerator->SetScale(scale); 
    570571        mTerrainContentGenerator->SetOffset(TerrainFrameListener::msObjectTerrainOffsets[objectType]); 
     
    576577        EntityList *entList = mTerrainContentGenerator->GetGeneratedEntities(); 
    577578 
     579        ///////////// 
    578580        //-- add animation state for new robots (located at the end of the list) 
     581         
    579582        for (int i = (int)entList->size() - num; i < (int)entList->size(); ++i) 
    580583        { 
     
    800803bool TestCullingTerrainApplication::LoadViewCells(const String &filename) 
    801804{ 
    802         LogManager::getSingleton().logMessage("loading view cells"); 
    803  
    804         //-- the actual loading happens here 
    805         return mSceneMgr->setOption("LoadViewCells", filename.c_str()); 
     805        // if not already loaded,  
     806        // the scene manager will load the view cells 
     807        return mSceneMgr->setOption("UseViewCells", filename.c_str()); 
    806808} 
    807809 
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/scripts/TestKdTree.vcproj

    r1953 r2101  
    294294                        <Tool 
    295295                                Name="VCLinkerTool" 
    296                                 AdditionalDependencies="OgreMain.lib IVReader.lib" 
     296                                AdditionalDependencies="OgreMain.lib IVReader.lib RTScene.lib RTWorld.lib" 
    297297                                OutputFile="$(OutDir)/$(ProjectName).exe" 
    298298                                LinkIncremental="1" 
Note: See TracChangeset for help on using the changeset viewer.