Changeset 1247


Ignore:
Timestamp:
08/21/06 03:36:42 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1238 r1247  
    226226 
    227227        //-- load the scene from specified file 
     228 
    228229        if (!LoadScene(mFilename)) 
    229230                LogManager::getSingleton().logMessage("error loading scene"); 
     
    255256                LogManager::getSingleton().logMessage("error: no visibility scenemanager available"); 
    256257        } 
     258 
    257259        // set camera position accordingly 
    258260        mCamNode->setPosition(v); 
     
    768770 
    769771                        // load iv files 
    770                         LoadSceneIV(fn, mSceneMgr->getRootSceneNode(), i);                       
     772                        if (!LoadSceneIV(fn, mSceneMgr->getRootSceneNode(), i)) 
     773                        { 
     774                                // terrain hack 
     775                                msShowHillyTerrain = true; 
     776                                LogManager::getSingleton().logMessage("error loading scene. loading terrain instead"); 
     777                        } 
    771778                } 
    772779                else if (strstr(filename.c_str(), ".dae")) 
Note: See TracChangeset for help on using the changeset viewer.