[Solved] Material and or Texture problem

PatrickB3

16-06-2006 23:12:20

OK after a couple ( at least ) days of fighting with the different versions all over the place this is where I am...

1.2.1 of Ogre
Latest from CVS OgreAddons

MapSplitter works fine. ( Thank you very very very much whomever did the Wiki pages, sorry I forgot who you are )
MapEditor - So @&&#ed not worth bothering with.
Plugin - builds fine
Demo - asserts on the default map but choosing ignore means it doesn't crash just a little ugly

Now putting it in my program:
Was a terrain scene manager app

Now I call:


mSceneMgr = mRoot->createSceneManager("PagingLandScapeSceneManager", "PagingLandScapeDemo" );
mSceneMgr->setWorldGeometry( "paginglandscape2.cfg" );


Instead of the terrian scene magager calls.

I'm trying the default map from the demo though my own map does almost exactly the same thing.

That thing is an assert in OgrePagingLandScapeTexture.cpp at around line 361. I added the error to the Ogre Log just so I can see it and what I get is:
14:39:32: InstantBaseTextureShadowed Must exists in thePLSM2group

In my own map the same thing happens except it says Image must exist...

I'm pretty sure I copied over all the materials, scripts, and such.

Any one have a clue to why this is happening? BTW unlike the Demo asserts which says something about stretch modes. This error cannot be ignored.

jacmoe

17-06-2006 02:58:46

MapEditor - So @&&#ed not worth bothering with.
You're right!
It is GOOF'ed.
@&&#ed is another word for pre-alpha. :wink:

14:39:32: InstantBaseTextureShadowed Must exists in thePLSM2group
...
This error cannot be ignored.

Well, PLSM2 is highly unstable at the moment.
Tuan and Falagard is busy fixing things.
Unless InstantBaseTextureShadowed is part of the media, which I assume you've installed properly according to the instructions in the Wiki. :wink:

PatrickB3

17-06-2006 03:12:23

At first that's what I thought but it the PLSM2 demo works fine and it is built from the same code. It opens the maps fine but my app does not.

tuan kuranes

17-06-2006 12:55:52

InstantBaseTextureShadowed is no more. Now it's InstantBaseShadowed.
(more generally remove "Texture" in plsm2 material names.)

Do you use a terrain config and material from CVS ?
If yes, which one is faulty ?

PatrickB3

17-06-2006 19:00:55

Ah thanks so very much. No way to know which .cfg files I was using I have like 20 copies of PLSM2 on this machine. Grabbed the ones out of CVS and the default map now works. Though it still asserts about texture stretching but so does the demo app so no biggie. The assert BTW is:

mImages[channel].getHeight()/(mParent->getOptions()->PageSize-1) == mParent->getOptions()->TextureStretchFactor && String("(texture size / (pagesize-1)) and texture stretch factor defined in terrai...

Changing my map from using Image to ImagePaging fixes mine. Still haven't gotten as far as being able to see the terrain but I think that problem is on my side. If not I'll let you know.

tuan kuranes

19-06-2006 11:05:15

texture stretch factor defined in terrai...
It checks if the map generated by mapsplitter does respect the texturestretch factor specified in the terrain cfg file.

it has to be specified now in config files.

PatrickB3

19-06-2006 20:03:27

BTW the terrian not actually appearing was on my side as I expected. There was still some work to do converting from TSM to PLSM once finished all was happy.