Ignore:
Timestamp:
09/25/06 18:54:21 (18 years ago)
Author:
mattausch
Message:

worked on guided visibility sampling

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  
    7575{ 
    7676        ResetQueries(); 
    77  
    7877        OGRE_DELETE(mSolidBoundingBox); 
    7978} 
     
    10099        mRenderSystem->_setWorldMatrix(Ogre::Matrix4::IDENTITY); 
    101100        mSceneManager->useRenderableViewProjModeWrapper(solidBox); 
    102          
     101        // HACK! (mySetPass should be setPass) 
    103102        // 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));  
    106105        //SetOcclusionPass(); 
    107106 
     
    130129                mOcclusionQueries.push_back(new PlatformOcclusionQuery(mRenderSystem)); 
    131130        } 
     131 
     132        std::stringstream d; 
     133        d << "resizing queries: " << (int)mOcclusionQueries.size() << endl; 
     134        LogManager::getSingleton().logMessage(d.str()); 
    132135         
    133136        return mOcclusionQueries[mCurrentTestIdx ++]; 
     
    186189        if (mTestGeometryForVisibleLeaves && (mCamera == mCullCamera) && wasVisible && IsLeaf(node))  
    187190        { 
    188                 //LogManager::getSingleton().logMessage("render node\n"); 
    189191                RenderNode(node); 
    190192        } 
     
    194196                // must be treated differently to the scene geometry during rendering 
    195197                mIsBoundingBoxQuery = true; 
    196  
    197                 //LogManager::getSingleton().logMessage("render box\n"); 
    198198                RenderBoundingBox(GetBoundingBox(node)); 
    199199 
     
    227227        // get next available test id 
    228228        GtpVisibility::OcclusionQuery *query = GetNextOcclusionQuery(); 
    229  
     229         
     230        //////// 
    230231        //-- the actual query test 
     232 
    231233        query->BeginQuery(); 
    232          
    233234        RenderGeometry(mesh); 
    234  
    235235        query->EndQuery(); 
    236236 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilityOptionsManager.cpp

    r1175 r1486  
    1616        { 
    1717                // 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! 
    1820                //mHierarchyInterface->ResetQueries(); 
    1921                mVisibilityManager->SetCullingManager(*static_cast<const  
Note: See TracChangeset for help on using the changeset viewer.