Changeset 1644
- Timestamp:
- 10/19/06 12:24:18 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreRenderingRun.h
r1425 r1644 46 46 */ 47 47 std::map<Renderable*, String> visibleObjects; 48 String terrainMaterial; 48 49 /** 49 50 @brief fulls screen quad plane used in full screen quad rendering -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/scripts/OgreIllumModule.vcproj
r1425 r1644 21 21 Optimization="0" 22 22 ImproveFloatingPointConsistency="TRUE" 23 AdditionalIncludeDirectories=""$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\include;..\include\RenderingRuns;..\include\RenderTechniques;..\..\IllumModule\include;..\..\IllumModule\include\RenderingRuns;..\..\IllumModule\include\RenderTechniques "23 AdditionalIncludeDirectories=""$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\include;..\include\RenderingRuns;..\include\RenderTechniques;..\..\IllumModule\include;..\..\IllumModule\include\RenderingRuns;..\..\IllumModule\include\RenderTechniques;"$(OGRE_PATH)\PlugIns\OctreeSceneManager\include\"" 24 24 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 25 25 MinimalRebuild="TRUE" … … 37 37 Name="VCLibrarianTool" 38 38 AdditionalDependencies="IllumModule.lib OgreMain_d.lib" 39 AdditionalLibraryDirectories="..\..\IllumModule\bin\Debug;"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)" "/>39 AdditionalLibraryDirectories="..\..\IllumModule\bin\Debug;"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)""/> 40 40 <Tool 41 41 Name="VCMIDLTool"/> … … 75 75 OptimizeForProcessor="2" 76 76 OptimizeForWindowsApplication="TRUE" 77 AdditionalIncludeDirectories=""$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\include;..\include\RenderingRuns;..\include\RenderTechniques;..\..\IllumModule\include;..\..\IllumModule\include\RenderingRuns;..\..\IllumModule\include\RenderTechniques "77 AdditionalIncludeDirectories=""$(OGRE_PATH)\Samples\Common\include";"$(OGRE_PATH)\OgreMain\include";..\include;..\include\RenderingRuns;..\include\RenderTechniques;..\..\IllumModule\include;..\..\IllumModule\include\RenderingRuns;..\..\IllumModule\include\RenderTechniques;"$(OGRE_PATH)\PlugIns\OctreeSceneManager\include\"" 78 78 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 79 79 StringPooling="TRUE" … … 92 92 Name="VCLibrarianTool" 93 93 AdditionalDependencies="IllumModule.lib OgreMain.lib" 94 AdditionalLibraryDirectories="..\..\IllumModule\bin\Release;"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)" "/>94 AdditionalLibraryDirectories="..\..\IllumModule\bin\Release;"$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)""/> 95 95 <Tool 96 96 Name="VCMIDLTool"/> -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp
r1592 r1644 1 1 #include "OgreRenderingrun.h" 2 2 #include "OgreIlluminationManager.h" 3 #include "OgreTerrainSceneManager.h" 3 4 4 5 MovablePlane* OgreRenderingRun::fullScreenQuad = NULL; … … 121 122 void OgreRenderingRun::setMaterialForRenderables(String& materialName, RenderQueue* rq, bool solidsonly) 122 123 { 124 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 125 if(sm->getTypeName()==TerrainSceneManagerFactory::FACTORY_TYPE_NAME) 126 { 127 terrainMaterial = ((TerrainSceneManager*)sm)->getTerrainMaterial()->getName(); 128 ((TerrainSceneManager*)sm)->setCustomMaterial(materialName); 129 } 130 123 131 RenderQueue::QueueGroupIterator queueIt = rq->_getQueueGroupIterator(); 124 132 … … 153 161 } 154 162 155 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager();156 163 sm->setFindVisibleObjects(false); 157 164 } … … 178 185 void OgreRenderingRun::restoreMaterials() 179 186 { 187 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 188 if(sm->getTypeName()==TerrainSceneManagerFactory::FACTORY_TYPE_NAME) 189 ((TerrainSceneManager*)sm)->setCustomMaterial(terrainMaterial); 190 191 180 192 std::map<Renderable*, String>::iterator it = visibleObjects.begin(); 181 193 std::map<Renderable*, String>::iterator itend = visibleObjects.end(); … … 189 201 visibleObjects.clear(); 190 202 191 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager();192 203 sm->setFindVisibleObjects(true); 193 204 }
Note: See TracChangeset
for help on using the changeset viewer.