[bug report] new sdk seems to contain some bugs

Yellow

04-08-2006 13:08:19

I had some trouble getting the new PLSM SDK to work. It was compiled against the ogre 1.2 SDK using VC8

First I got this error:


assertion failed: !material.isNull() && String(mMaterialBaseName + " Must exists in the" + opt->groupName + "group").c_str(), file ..\src\OgrePagingLandScapeTexture.cpp, line 370


and the new shader programs gave me some errors aswell.

I found the following issues, this also fixed the above error:

- PLLightingCG.program and PLShaders.program share the same material names. I removed PLLightingCG.program since PLShaders.program contained all of those and a few extra.

- paginglandscape.0.0 material has a wrong specular setting.
I changed specular 1.0 0.0 0.0 to specular 1.0 0.0 0.0 0.0

- BaseTexture.material defines different material names (ie Base = BaseTexture)
Reverting it to BaseTexture fixed it.

- when using setOption("CurrentMap", &newMap); the new terrain wont be shown. it needs setOption("LoadMap", 0); additionally. Is this intended that way?

tuan kuranes

21-08-2006 18:23:48


- PLLightingCG.program and PLShaders.program share the same material names. I removed PLLightingCG.program since PLShaders.program contained all of those and a few extra.

- paginglandscape.0.0 material has a wrong specular setting.
I changed specular 1.0 0.0 0.0 to specular 1.0 0.0 0.0 0.0


Fixed in CVS. Thanks.

- BaseTexture.material defines different material names (ie Base = BaseTexture)
Reverting it to BaseTexture fixed it.


correct name should be Base, and I changed that in all cfg file before. In what map did you get the error ?

- when using setOption("CurrentMap", &newMap); the new terrain wont be shown. it needs setOption("LoadMap", 0); additionally. Is this intended that way?
Yes, as you might specify other option before effectively loads it.
Otherwise if you want to load a map but use a different texture mode that the one in cfg file it would load the terrain twice...