- Timestamp:
- 10/13/06 03:56:08 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h
r1616 r1618 209 209 GtpVisibilityPreprocessor::ObjectContainer &objects) const 210 210 { 211 Ogre::LogManager().logMessage("pvs: intersecting objects");211 //Ogre::LogManager().logMessage("pvs: intersecting objects"); 212 212 const long startTime = GtpVisibilityPreprocessor::GetTime(); 213 213 … … 219 219 for (iit = iboxes.begin(); iit != iit_end; ++ iit, ++ i) 220 220 { 221 if ( (i % 1000) == 0)221 if (0 && ((i % 1000) == 0)) 222 222 { 223 223 std::stringstream d; d << "found " << i << " objects"; … … 251 251 } 252 252 253 std::stringstream d; d << "finished object intersection in " << GtpVisibilityPreprocessor::TimeDiff(startTime, GtpVisibilityPreprocessor::GetTime()) * 1e-3 << "secs";254 Ogre::LogManager().logMessage(d.str());253 //std::stringstream d; d << "finished object intersection in " << GtpVisibilityPreprocessor::TimeDiff(startTime, GtpVisibilityPreprocessor::GetTime()) * 1e-3 << "secs"; 254 //Ogre::LogManager().logMessage(d.str()); 255 255 256 256 return true; -
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.