Ignore:
Timestamp:
08/19/06 13:48:51 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp

    r1221 r1232  
    11091109} 
    11101110//----------------------------------------------------------------------- 
    1111 const Pass *KdTreeSceneManager::_setPass(Pass* pass, bool evenIfSuppressed) 
     1111const Pass *KdTreeSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 
    11121112{ 
    11131113        if (mRenderMethod == KdTree::KDRM_INTERNAL) 
     
    11221122        const bool useDepthPass =  
    11231123                (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 
    1124  
    1125         Pass *usedPass = useDepthPass ? mDepthPass : pass; 
    1126  
    11271124 
    11281125        const IlluminationRenderStage savedStage = mIlluminationStage;  
     
    11581155        } 
    11591156 
     1157        const Pass *usedPass = useDepthPass ? mDepthPass : pass; 
     1158 
    11601159        // save old depth write: needed for item buffer 
    11611160        const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); 
     
    11641163        if (!mEnableDepthWrite) 
    11651164        { 
    1166                 usedPass->setDepthWriteEnabled(false); 
     1165        //      usedPass->setDepthWriteEnabled(false); 
    11671166        } 
    11681167        //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} 
     
    11761175        if (!mEnableDepthWrite) 
    11771176        { 
    1178                 usedPass->setDepthWriteEnabled(IsDepthWrite); 
     1177        //      usedPass->setDepthWriteEnabled(IsDepthWrite); 
    11791178        } 
    11801179 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r1221 r1232  
    207207} 
    208208//----------------------------------------------------------------------- 
    209 const Pass *OcclusionCullingSceneManager::_setPass(Pass* pass, bool evenIfSuppressed) 
     209const Pass *OcclusionCullingSceneManager::_setPass(const Pass* pass, bool evenIfSuppressed) 
    210210{ 
    211211        if (NORMAL_RENDER_HACK) 
     
    220220        const bool useDepthPass =  
    221221                (mIsDepthPassPhase && !mHierarchyInterface->IsBoundingBoxQuery()); 
    222  
    223         Pass *usedPass = useDepthPass ? mDepthPass : pass; 
    224                  
    225222 
    226223        const IlluminationRenderStage savedStage = mIlluminationStage;  
     
    256253        } 
    257254         
     255        const Pass *usedPass = useDepthPass ? mDepthPass : pass; 
     256 
    258257        // save old depth write: needed for item buffer 
    259258        const bool IsDepthWrite = usedPass->getDepthWriteEnabled(); 
     
    262261        if (!mEnableDepthWrite) 
    263262        { 
    264                 usedPass->setDepthWriteEnabled(false); 
     263                //usedPass->setDepthWriteEnabled(false); 
    265264        } 
    266265        //else if (mIsItemBufferPass) {usedPass = mItemBufferPass;} 
     
    274273        if (!mEnableDepthWrite) 
    275274        { 
    276                 usedPass->setDepthWriteEnabled(IsDepthWrite); 
     275                //usedPass->setDepthWriteEnabled(IsDepthWrite); 
    277276        } 
    278277 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj

    r1226 r1232  
    128128                        </File> 
    129129                        <File 
    130                                 RelativePath="..\include\QueryManager.h"> 
    131                         </File> 
    132                         <File 
    133130                                RelativePath="..\src\StopAndWaitCullingManager.cpp"> 
    134131                        </File> 
     
    175172                        </File> 
    176173                        <File 
     174                                RelativePath="..\include\QueryManager.h"> 
     175                        </File> 
     176                        <File 
    177177                                RelativePath="..\include\StopAndWaitCullingManager.h"> 
    178178                        </File> 
Note: See TracChangeset for help on using the changeset viewer.