Ignore:
Timestamp:
02/09/07 03:05:52 (17 years ago)
Author:
mattausch
Message:

loading geometry in scene manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r2106 r2108  
    235235        // the scale factor for the visualized bounding boxes 
    236236        mSceneMgr->setOption("NodeVizScale", &mVizScale); 
    237                  
     237         
     238        ///////// 
    238239        //-- set the current culling algorithm type 
    239         setAlgorithm(mApplication->mAlgorithm); 
     240        //setAlgorithm(mApplication->mAlgorithm); 
     241 
     242        bool isNormalExecution; 
     243                 
     244        mSceneMgr->getOption("NormalExecution", &isNormalExecution); 
     245        if (isNormalExecution) 
     246        { 
     247                // no algorithm 
     248                mCurrentAlgorithm =  
     249                        GtpVisibility::VisibilityEnvironment::NUM_CULLING_MANAGERS; 
     250        } 
     251        else 
     252        { 
     253                mSceneMgr->getOption("Algorithm", &mCurrentAlgorithm); 
     254        } 
     255         
     256        applyCurrentAlgorithm(); 
     257         
     258        /////////////////////////////// 
    240259 
    241260        // set scene manager options 
     
    481500                // frame start time 
    482501                mTimeFrameStarted = mTimer->getMilliseconds(); 
    483                 //Ogre::LogManager::getSingleton().logMessage("Frame started"); 
    484502        } 
    485503 
     
    517535                { 
    518536                        mApplication->Clamp2Terrain(mCamNode, 5); 
     537                        //Ogre::LogManager::getSingleton().logMessage("clamp to terrain"); 
    519538                } 
    520539                else 
    521540                { 
    522541                        mApplication->Clamp2FloorPlane(mFloorDist); 
     542                        //Ogre::LogManager::getSingleton().logMessage("clamp to floor"); 
    523543                } 
    524544 
     
    526546 
    527547        default: 
     548                Ogre::LogManager::getSingleton().logMessage("should not come here"); 
    528549                break; 
    529550        };       
Note: See TracChangeset for help on using the changeset viewer.