Changeset 1312 for GTP/trunk/App/Demos


Ignore:
Timestamp:
09/01/06 13:48:15 (18 years ago)
Author:
szydlowski
Message:

per-frame-stats with internal rendering - use depth pass issue unresolved

Location:
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTree.cpp

    r1304 r1312  
    623623                mSceneMgr->setOption("RenderMethod", &mOptions.mRenderMethod); 
    624624                mSceneMgr->setOption("EnhancedVisibility", &mOptions.mEnhancedVisibility); 
    625                 mSceneMgr->setOption("DeleteRenderQueue", &mOptions.mDelRenderQueue); 
    626                 // fix 
    627                 bool depthpass = false; 
    628                 mSceneMgr->setOption("UseDepthPass", &depthpass); 
    629625        } 
    630626        // set algorithm when scene manager is OCM - numbering is different though 
     
    633629                int alg = CONV_KDT_TO_OCM_ALG(mOptions.mRenderMethod); 
    634630                mSceneMgr->setOption("Algorithm", &alg); 
    635                 mSceneMgr->setOption("DeleteRenderQueue", &mOptions.mDelRenderQueue); 
    636         } 
     631        } 
     632        bool vizcullnodes = true; 
     633        mSceneMgr->setOption("VisualizeCulledNodes", &vizcullnodes); 
     634        mSceneMgr->setOption("DeleteRenderQueue", &mOptions.mDelRenderQueue); 
     635 
     636        // fix 
     637        //bool depthpass = true; 
     638        //mSceneMgr->setOption("UseDepthPass", &depthpass); 
    637639 
    638640        // create ray query for ground intersection 
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/src/TestKdTreeAppListener.cpp

    r1304 r1312  
    432432{ 
    433433        // viewcells apply only for scenes loaded from geometry 
    434         if (mOptions.mSceneType != ST_GEOMETRY) 
     434        if (mOptions.mSceneType != ST_GEOMETRY ||  
     435                mOptions.myApp->getViewCellsFileName().empty()) 
    435436                return; 
    436437 
     
    445446                // call once to load view cell loading overlay 
    446447                mWindow->update(); 
    447                 mViewCellsLoaded = mSceneMgr->setOption("LoadViewCells", mOptions.myApp->getViewCellsFileName().c_str()); 
     448                mViewCellsLoaded = mSceneMgr->setOption("LoadViewCells",  
     449                        mOptions.myApp->getViewCellsFileName().c_str()); 
    448450 
    449451                if (!mViewCellsLoaded) 
     
    746748        { 
    747749                toggleRenderMethod(); 
     750                mTimeUntilNextToggle = 0.5; 
     751        } 
     752 
     753        if (mInputDevice->isKeyDown(KC_V) && mTimeUntilNextToggle <= 0) 
     754        { 
     755                toggleEnhancedVisibility(); 
    748756                mTimeUntilNextToggle = 0.5; 
    749757        } 
Note: See TracChangeset for help on using the changeset viewer.