Troubles with texturing my own Terrain

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)


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???

maxwave

05-04-2006 21:43:40

I use: VC 7.1, Ogre 1.2 RC1, latest PLSM2 source and I don't use CVS.

tuan kuranes

06-04-2006 08:26:29

it don't change Something in PLSM2
Seems something is corrupted in app, as bugs memory overflow, etc can cause this.

maxwave

06-04-2006 13:33:13

Probably you are right. But I think this problem exist in code of PLSM2. When I create new project by Wizard and create landsape, this problem don't exist. But when I simply load only Ninja mesh in my application (and nothing other), this truble occurs again :(
Also it problem occur when I inlude and use OSM (and nothing other) to load scene objects... Why???

tuan kuranes

06-04-2006 13:39:01

Perhaps it's related to bluehighway missing font... try to disable overlay and check if error is still there.
If it is, can you send me the "ninja plsm2" project so that I can test/reproduce bug.

maxwave

06-04-2006 15:39:25

I disable debugOverlay by using aaaFrameListener::showDebugOverlay (false) in constructor frameListener, but error exist. I send you my project on your mail.

tuan kuranes

06-04-2006 17:01:48

Doesn't flickers here...

I would suggest to either try Ogre CVS tag v1-2 or wait til sunday for nex ogre SDK release.

(I'll pack a new plsm2 SDK source just now, so that you can check against last plsm2 SDK)

tuan kuranes

06-04-2006 17:34:34

New plsm2 sdk released.

maxwave

06-04-2006 18:50:31

Du you try solve this problem? I compile just new plugin and situation is not changed. :(
May be It because of my videocard? I have Radeon9800 (128bit, 256mb).

tuan kuranes

07-04-2006 07:46:16

As said above, I cannot reproduce the problem, and therefore cannot help.
Just in case I release last PLSM2 SDK.
I suggested to wait next Ogre SDK (1.2rc2), probably released this WE and see if it removes the bug.

maxwave

29-04-2006 10:05:22

I have found the reason of a this bug!!! :D When I add line
VertexProgramMorph=yes in .cfg file the trouble is HIDE!!! :D
Why???

tuan kuranes

29-04-2006 17:27:18

Are you using an ATI card ?

Lshink

30-04-2006 05:54:31

He stated above that he does indeed have an ATI card:

May be It because of my videocard? I have Radeon9800 (128bit, 256mb).

:)

OvermindDL1

01-05-2006 12:50:43

ATI cards are wierd in that regard, my 9700 pro has never had an issue, but my 9200 does (don't ask, it was given to me...). Same drivers.

corefans

07-06-2006 14:51:00

I have this trouble in some days, change VertexProgramMorph to 'yes' only working with texturesplat that support VertexProgramMorph, working with other texturesplat need modify the ogrepaginlandscaperenderable.cpp:
#define DELTA_BINDING 1
#define TEXTURE_BINDING 2
to
#define DELTA_BINDING 2
#define TEXTURE_BINDING 1

tuan kuranes

08-06-2006 10:51:31

@corefans : you mean this change make lodmorphing works on ATI cards ?

corefans

08-06-2006 13:19:49

no,this modify just made texture working in right way without lodmorphing on some cards