Changeset 1618 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Timestamp:
- 10/13/06 03:56:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1616 r1618 159 159 //----------------------------------------------------------------------- 160 160 void OcclusionCullingSceneManager::PrepareVisualization(Camera *cam) 161 { 161 {/*Ogre::LogManager::getSingleton().logMessage("here4"); 162 162 // add player camera for visualization purpose 163 163 try … … 180 180 getRenderQueue()->addRenderable(*it); 181 181 } 182 /* 182 183 183 // set old view cell geometry to invisible 184 if (mCurrentViewCell //&& mCurrentViewCell->GetMesh())184 if (mCurrentViewCell && mCurrentViewCell->GetMesh()) 185 185 { 186 186 //const bool showSingleViewCell = true; … … 272 272 } 273 273 } 274 */ 275 276 274 275 276 if (mRenderNodesForViz || mRenderNodesContentForViz) 277 277 { 278 278 // HACK: change node material so it is better suited for visualization … … 307 307 } 308 308 } 309 } 309 }*/ 310 310 } 311 311 //----------------------------------------------------------------------- … … 448 448 //-- (e.g., the visualization mode, the shadow pass) 449 449 450 if (mShowVisualization || 450 if ( 451 mShowVisualization || 451 452 (mShadowTechnique == SHADOWTYPE_TEXTURE_MODULATIVE && 452 453 mIlluminationStage == IRS_RENDER_TO_TEXTURE)) … … 1204 1205 OctreeBoundingBoxConverter bconverter(this); 1205 1206 1207 // objects are set to invisible initially 1208 SetObjectsVisible(false); 1209 1206 1210 // load the view cells assigning the found objects to the pvss 1207 1211 const bool finalizeViewCells = true; … … 1209 1213 GtpVisibilityPreprocessor::ViewCellsManager::LoadViewCells(filename, &mObjects, true, &bconverter); 1210 1214 1211 Ogre::LogManager().getSingleton().logMessage("view cells loaded");1215 //Ogre::LogManager().getSingleton().logMessage("view cells loaded"); 1212 1216 //Ogre::LogManager().getSingleton().flush(); 1213 // objects are set to invisible initially 1214 SetObjectsVisible(false); 1217 1215 1218 1216 1219 if (finalizeViewCells)
Note: See TracChangeset
for help on using the changeset viewer.