[help] Loading Maps

kungfoomasta

07-11-2006 07:45:14

:?: Can I only load maps that are listed in paginglandscape2.cfg?

I am getting an error when calling:

mSceneManager->setWorldGeometry( Ogre::String("paginglandscape2.cfg") );


paginglandscape2.cfg:

DefaultMap=none

# resource group name where to find map definition
GroupName=PLSM2

# Try forbidden textureformat combinations
TextureFormatDebug=no


Ogre.log:

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: PagingLandScapeTextureManager::load
Description: TextureMode not supplied or wrong (check case) !.
File: ..\src\OgrePagingLandScapeTextureManager.cpp
Line: 343
Stack unwinding: <<beginning of stack>>


The reason I am calling setWorldGeometry, is because my normal map loading code does not work, until after I have called this function.


std::string anyMap = "TsmTerrain.cfg";
mSceneManager->setOption("CurrentMap",&anyMap);
mSceneManager->setOption("LoadMap",&anyMap);


Thanks in advance,

KungFooMasta

tuan kuranes

29-11-2006 17:00:35

does it works using
mSceneManager->setWorldGeometry( "" );