maxwave
05-04-2006 21:18:06
Hello All! I create my own very simply height map and texture in photoshop and save it in png file. Also I create my own cfg files for MapSplitter and DemoViewer - it is very simply too - minimum options. After it I run Demo and View my own Terrain very well - no problems. But when I run my program I have troubles with texturing. There are screenshots, which show whch troubles I have.
So should be (window of Demo_PagingLandScape2.exe)
![](http://foto.mail.ru/mail/maxwave/1/i-11.jpg)
So is (window of my application)
![](http://foto.mail.ru/mail/maxwave/1/i-12.jpg)
This bug showing in different places on Terrain when I move Camera
There are my images(height map and texture)
![](http://foto.mail.ru/mail/maxwave/1/i-7.jpg)
![](http://foto.mail.ru/mail/maxwave/1/i-8.jpg)
For loading Terrain in my program I use only two lines in chooseSceneManeger event and after it don't change Something in PLSM2 in my program:
mSceneMgr = mRoot->createSceneManager("PagingLandScapeSceneManager", "Gen_Manager" );
mSceneMgr->setWorldGeometry( Ogre::String("paginglandscape2.cfg") );
There are my config files:
MyMap.cfg
MyMap.gen.cfg
What I do with my code of program that fix this trouble???
So should be (window of Demo_PagingLandScape2.exe)
So is (window of my application)
This bug showing in different places on Terrain when I move Camera
There are my images(height map and texture)
For loading Terrain in my program I use only two lines in chooseSceneManeger event and after it don't change Something in PLSM2 in my program:
mSceneMgr = mRoot->createSceneManager("PagingLandScapeSceneManager", "Gen_Manager" );
mSceneMgr->setWorldGeometry( Ogre::String("paginglandscape2.cfg") );
There are my config files:
MyMap.cfg
GroupName=PLSM2
LandScapeFileName=qqq
PageSize=257
OutDirectory=../../Media/paginglandscape2/terrains/LandScapeFileName
ColorMapName=qqq_texture.png
ColorMapSplit=yes
HeightMap=yes
MyMap.gen.cfg
GroupName=PLSM2
LandScapeFileName=qqq
PageSize=257
OutDirectory=../../Media/paginglandscape2/terrains/LandScapeFileName
ColorMapName=qqq_texture.png
ColorMapSplit=yes
HeightMap=yes
What I do with my code of program that fix this trouble???