Changeset 1486 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
- Timestamp:
- 09/25/06 18:54:21 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgrePlatformHierarchyInterface.cpp
r938 r1486 75 75 { 76 76 ResetQueries(); 77 78 77 OGRE_DELETE(mSolidBoundingBox); 79 78 } … … 100 99 mRenderSystem->_setWorldMatrix(Ogre::Matrix4::IDENTITY); 101 100 mSceneManager->useRenderableViewProjModeWrapper(solidBox); 102 101 // HACK! (mySetPass should be setPass) 103 102 // set no depth write, no color, no lighting material 104 mSceneManager->setPassWrapper(solidBox->getTechnique()->getPass(0)); // HACK! (mySetPass should be setPass)105 //mSceneManager->_setPass(solidBox->getTechnique()->getPass(0)); // HACK! (mySetPass should be setPass)103 mSceneManager->setPassWrapper(solidBox->getTechnique()->getPass(0)); 104 //mSceneManager->_setPass(solidBox->getTechnique()->getPass(0)); 106 105 //SetOcclusionPass(); 107 106 … … 130 129 mOcclusionQueries.push_back(new PlatformOcclusionQuery(mRenderSystem)); 131 130 } 131 132 std::stringstream d; 133 d << "resizing queries: " << (int)mOcclusionQueries.size() << endl; 134 LogManager::getSingleton().logMessage(d.str()); 132 135 133 136 return mOcclusionQueries[mCurrentTestIdx ++]; … … 186 189 if (mTestGeometryForVisibleLeaves && (mCamera == mCullCamera) && wasVisible && IsLeaf(node)) 187 190 { 188 //LogManager::getSingleton().logMessage("render node\n");189 191 RenderNode(node); 190 192 } … … 194 196 // must be treated differently to the scene geometry during rendering 195 197 mIsBoundingBoxQuery = true; 196 197 //LogManager::getSingleton().logMessage("render box\n");198 198 RenderBoundingBox(GetBoundingBox(node)); 199 199 … … 227 227 // get next available test id 228 228 GtpVisibility::OcclusionQuery *query = GetNextOcclusionQuery(); 229 229 230 //////// 230 231 //-- the actual query test 232 231 233 query->BeginQuery(); 232 233 234 RenderGeometry(mesh); 234 235 235 query->EndQuery(); 236 236 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilityOptionsManager.cpp
r1175 r1486 16 16 { 17 17 // delete old queries (not needed for e.g., view frustum culling) 18 // note cannot be deleted because of new ogre occlusion query implementation 19 // there we cannot just delete the queries, so they would stay! 18 20 //mHierarchyInterface->ResetQueries(); 19 21 mVisibilityManager->SetCullingManager(*static_cast<const
Note: See TracChangeset
for help on using the changeset viewer.