Changeset 2410 for GTP/trunk/Lib
- Timestamp:
- 06/05/07 14:26:57 (17 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp
r2379 r2410 330 330 sm->setFindVisibleObjects(false); 331 331 target->update(); 332 sm->getRenderQueue()->clear(); 332 333 sm->setFindVisibleObjects(lastFindVisible); 333 334 } -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r2406 r2410 29 29 { 30 30 depthMapTexture = createCubeRenderTexture(name, light->getPosition(), resolutionX,PF_FLOAT16_RGBA,0,ColourValue::White); 31 for(int i = 0; i < 6; i++) 32 depthMapTexture->getBuffer(i, 0).getPointer()->getRenderTarget()->getViewport(0)->setSkiesEnabled(false); 33 31 34 if(OgreIlluminationManager::getSingleton().getBlurShadowMap(light->getType())) 32 35 blurredDepthMapTexture = createCubeRenderTexture(blurredname, light->getPosition(), resolutionX,PF_FLOAT16_RGBA,0,ColourValue::White); … … 88 91 if(triggeredMaterial != "")//a trigger is associated 89 92 materialToSet = triggeredMaterial; 90 } 93 94 } 95 91 96 Technique* techn = ((Material*)MaterialManager::getSingleton().getByName( materialToSet ).getPointer())->getTechnique(0); 92 97 *ppTech = techn; … … 97 102 { 98 103 refreshLight(frameNum); 99 100 RenderQueue* rq = Root::getSingleton()._getCurrentSceneManager()->getRenderQueue(); 101 rq->setRenderableListener(this); 102 104 103 105 if(light->getType() == Light::LT_POINT) 104 106 { … … 114 116 } 115 117 116 rq->setRenderableListener(0);118 117 119 } 118 120 … … 128 130 129 131 //setMaterialForVisibles(materialName, cam, true, false, triggerName); 130 132 RenderQueue* rq = Root::getSingleton()._getCurrentSceneManager()->getRenderQueue(); 133 rq->setRenderableListener(this); 134 131 135 rt->update(); 132 136 … … 134 138 135 139 //rt->writeContentsToFile("shadowmap_" + StringConverter::toString(facenum) + ".dds"); 140 141 rq->setRenderableListener(0); 136 142 137 143 if(OgreIlluminationManager::getSingleton().getBlurShadowMap(light->getType())) … … 154 160 155 161 //setMaterialForVisibles(materialName, depthMapCamera, true, false, triggerName); 156 162 RenderQueue* rq = Root::getSingleton()._getCurrentSceneManager()->getRenderQueue(); 163 rq->setRenderableListener(this); 164 157 165 rt->update(); 158 166 159 167 //restoreMaterials(); 160 168 rq->setRenderableListener(0); 169 161 170 if(OgreIlluminationManager::getSingleton().getBlurShadowMap(light->getType())) 162 171 { -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePMWeightComputeRenderingRun.cpp
r2333 r2410 92 92 Vector3 lightPos = light->getDerivedPosition(); 93 93 Vector3 lightDir = light->getDerivedDirection(); 94 lightDir.normalise(); 94 95 Radian lightAngle = light->getSpotlightOuterAngle(); 95 96
Note: See TracChangeset
for help on using the changeset viewer.