Problem using plsm

Leron

27-02-2009 17:21:38

i get exception in file OgrePagingLandScapeOctreeSceneManager.cpp in function:

void PagingLandScapeOctreeSceneManager::registerCamera (PagingLandScapeOctreeCamera *c)
{
mPagingLandScapeOctree->traversal(RegisterCameraTraversal(c), 0);
}

with debug build. In release my application crashes on any of my maps, but it loads Terrain_Scene_Manager_Terrain and European_Alpes with no errors.

I don't understand where is problem, last line in Ogre.log is Initialising resource group PLSM2...

DragonM

06-03-2009 05:22:10

On Windows, at least, the project file does not build the PagingLandScapeOctreeSceneManager by default. However, down in the depths, the code assumes it will be built and attempts to use it. You'll notice, in the exception you're seeing, that mPagingLandScapeOctree is null.

The easiest way to work around the problem is to have the PLSM octree scene manager built. In the Plugin_PagingLandScapeSceneManager2 project Properties, add _PLSM_OCTREE to the C/C++ Preprocessor definitions, in both debug and release builds. Rebuild, and the exception will go away.

DM

Leron

07-03-2009 17:32:20

I rebuild plsm and that exception gone, but now i get another one in file OgrePagingLandScapeTextureManager.cpp line 321:


const String &modeName = mTextureTypeMap[i]->getName ();
if (modeName == mTextureFormat)
{
if (!mTextureTypeMap[i]->isMaterialSupported()) // here
{
mTextureFormat = getNextTextureFormat();


Here are my maps config files:

mymap.gen.cfg

GroupName=PLSM2
LandScapeExtension=jpg
TextureExtension=jpg
LandScapeFileName=qqq_height
PageSize=257
OutDirectory=LandScapeFileName
ColorMapName=qqq_texture.jpg
ColorMapSplit=yes
HeightMap=yes


mymap.cfg


GroupName=PLSM2
LandScapeFileName=qqq_height
FileSystem=LandScapeFileName

Width=4
Height=4

ScaleX=610
ScaleY=110
ScaleZ=610

PageSize=257
TileSize=129

TextureFormat=Image
ImageFilename=qqq_texture

qq18052887

15-09-2009 18:08:29

I rebuild plsm and that exception gone, but now i get another one in file OgrePagingLandScapeTextureManager.cpp line 321:


const String &modeName = mTextureTypeMap[i]->getName ();
if (modeName == mTextureFormat)
{
if (!mTextureTypeMap[i]->isMaterialSupported()) // here
{
mTextureFormat = getNextTextureFormat();


Here are my maps config files:

mymap.gen.cfg

GroupName=PLSM2
LandScapeExtension=jpg
TextureExtension=jpg
LandScapeFileName=qqq_height
PageSize=257
OutDirectory=LandScapeFileName
ColorMapName=qqq_texture.jpg
ColorMapSplit=yes
HeightMap=yes


mymap.cfg


GroupName=PLSM2
LandScapeFileName=qqq_height
FileSystem=LandScapeFileName

Width=4
Height=4

ScaleX=610
ScaleY=110
ScaleZ=610

PageSize=257
TileSize=129

TextureFormat=Image
ImageFilename=qqq_texture

oh,I have the same problem!!!!!! the first Exception (_PLSM_OCTREE)go away,but there is another one in file OgrePagingLandScapeTextureManager.cpp
VS2008 + OGRE1.62 , the demo not work, should I use OGRE1.61?