How to change textures dinamically?

Buckcherry

20-05-2008 20:24:07

I am trying to use the texture splatting technique with PLSM2.

I have been reading the forum and at the moment I only have got to paint the terrain with any colour, but not with a texture.

This is my code:

std::vector<Real> rgba;
unsigned int width=10, height=10;
Ogre::Real *brush = new Ogre::Real[100];
rgba.reserve(3);
rgba.resize(3);
rgba[0] =0.0f;
rgba[1] = 0.0f;
rgba[2] = 0.0f;
mSceneMgr->setOption("setPaintChannelValues", &rgba);

for (int i=0; i<100; i++)
{
brush[i]=1.0f;
}

mSceneMgr->setOption("BrushArrayHeight", &height);
mSceneMgr->setOption("BrushArrayWidth", &width);
mSceneMgr->setOption("BrushArray", brush);

mSceneMgr->setOption( "PaintCenter", &mCursorPos);


What should I have to modify to be able to use texture splatting??.

Help, please.

Buckcherry

23-05-2008 22:07:48

Any clue or working piece of code, please?

Buckcherry

26-05-2008 17:58:19

tuan kuranes, you are the expert in this. Any idea, please?.

Buckcherry

01-06-2008 09:06:17

Before calling to:

mSceneMgr->setOption("PaintCenter", &mBrushPos);

I am calling these lines:

String landscapeName = "TsmTerrain";
mSceneMgr->setOption("CurrentMap", &landscapeName);
mSceneMgr->setOption("LoadMap", 0);


But it makes an assertion and the application crashes.

What is the sequence to perform the texture splatting?.

Help, please!.

Buckcherry

01-06-2008 11:40:01

This is my cfg file for the terrain:

GroupName=PLSM2

Width=1
Height=1

Data2DFormat=HeightField
LandScapeFileName=terrain

FileSystem=TsmTerrain
TextureStretchFactor=1

NumTextureFormatSupported=9

TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=InstantBase
TextureFormatSupported3=Splatting
TextureFormatSupported4=Splatting5
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting7
TextureFormatSupported7=SplattingShader
TextureFormatSupported8=ImagePagingLight
TextureFormatSupported8=PLSplattingShaderLitDecompress

TextureFormat=ImagePagingLight
ImageFilename=terrain_texture

ScaleX=15000
ScaleY=1000
ScaleZ=15000

TextureModifiable=yes
Deformable=yes
VertexCompression=no
VertexProgramMorph=no
VertexNormals=no

NumMatHeightSplat=4
Height1=15
Height2=50
SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png

# where to put camera on load.
BaseCameraViewpoint.x=935.0f
BaseCameraViewpoint.y=24000.0f
BaseCameraViewpoint.z=-432.0f

Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f


When I press a key this is the code executed:

String textureFormat = "Splatting2";
unsigned int valor = 1;
mSceneMgr->setOption("CurrentTextureFormat", &textureFormat);
mSceneMgr->setOption("PaintChannel", &valor);
setEditMode(EditPaintAlphaTerrain);


In the frameEnded method I have this:

mSceneMgr->setOption("BrushArrayHeight", &height);
mSceneMgr->setOption("BrushArrayWidth", &width);
mSceneMgr->setOption("BrushArray", brush);

mSceneMgr->setOption("PaintCenter", &mCursorPos);


Doing this, there is not any effect on the terrain...

Adding the following line to the first lines mentioned at the beginning:

mSceneMgr->setOption("LoadMap", 0);

The whole terrain is painted with a texture in the moment I click the button.

What is wrong?

Any idea?

Buckcherry

03-06-2008 21:35:04

I don't know what else to try!.

Please, help!

Buckcherry

07-06-2008 12:07:08

Does anyone have any workable piece of code for this, please?

Maxi

07-06-2008 17:35:09

Have you tried one of the splatting shaders?

Buckcherry

07-06-2008 19:28:51

Where can I find the splatting shaders and examples for them?

Maxi

07-06-2008 19:43:10

You have to change your texture format in the cfg file; at the moment you use ImagePagingLite.
See the Wiki for a description of the texture formats.

Buckcherry

07-06-2008 19:46:07

So, what should I change here?:

TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=InstantBase
TextureFormatSupported3=Splatting
TextureFormatSupported4=Splatting5
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting7
TextureFormatSupported7=SplattingShader
TextureFormatSupported8=ImagePagingLight
TextureFormatSupported8=PLSplattingShaderLitDecompress

Maxi

08-06-2008 16:14:22

The texture format is set with
TextureFormat=ImagePagingLight
in your config file. Please consult the wiki and search the forum, since texture formats are described and discussed there in detail.

Buckcherry

08-06-2008 19:13:17

If you know what is the problem, why don't you want to tell me it?. I don't understand it...

I guess my problem is only in the cfg file.

Buckcherry

09-06-2008 20:51:24

What is the TextureFormat I have to set to be able to use splatting texture?.

Anyone, please?

Jon

10-06-2008 14:31:27

Before Maxi blows a gasket :D lets go out on a limb and look at your choices:

TextureFormatSupported3=Splatting

That seems like a good candidate.

TextureFormat=Splatting

Maxi is correct that this has been covered on the wiki and in the forums, which is enough to drive any of us batty when the question is raised. I think you'll have to admit the name of the texture format is about as clear as they come.

Buckcherry

10-06-2008 21:33:14

Yep, it is quite clear what it wants to say.

My questions are:

1. Do I need anything else for my code to change the textures in real time?:
mSceneMgr->setOption("BrushArrayHeight", &height);
mSceneMgr->setOption("BrushArrayWidth", &width);
mSceneMgr->setOption("BrushArray", brush);

mSceneMgr->setOption("PaintCenter", &mCursorPos);


2. I have read the Wiki and I have tried with different values the TextureFormat attribute in the .cfg file. Is my .cfg file correct?

GroupName=PLSM2

Width=1
Height=1

Data2DFormat=HeightField
LandScapeFileName=terrain

FileSystem=TsmTerrain
TextureStretchFactor=1

NumTextureFormatSupported=9

TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=InstantBase
TextureFormatSupported3=Splatting
TextureFormatSupported4=Splatting5
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting7
TextureFormatSupported7=SplattingShader
TextureFormatSupported8=ImagePagingLight
TextureFormatSupported9=PLSplattingShaderLitDecompress
TextureFormatSupported10=BaseTexture
TextureFormatSupported11=Splatting3

#TextureFormat=ImagePagingLight
#TextureFormat=SplattingShader
#TextureFormat=Splatting
#TextureFormat=BaseTexture
#TextureFormat=PLSplattingShaderLitDecompress
TextureFormat=Splatting3

ImageFilename=terrain_texture

ScaleX=15000
ScaleY=1000
ScaleZ=15000

TextureModifiable=yes
Deformable=yes
VertexCompression=no
VertexProgramMorph=no
VertexNormals=no

NumMatHeightSplat=4
Height1=15
Height2=50
SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png

# where to put camera on load.
BaseCameraViewpoint.x=935.0f
BaseCameraViewpoint.y=24000.0f
BaseCameraViewpoint.z=-432.0f

Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f


3. Using the previous config file when I run the application the terrain is completely white, without textures. Do you know why?.

4. I was unable to find a workable example for using texture splatting in real time. Where could I download some example using PLSM2?.

Buckcherry

19-06-2008 20:46:00

tuan kuranes, could you possibly help me with this?.

I am desesperate! :(

tuan kuranes

23-06-2008 18:23:19

1. Do I need anything else for my code to change the textures in real time?:
No, provided the textureformat selected support editing.
Try "InstantBaseEdit" for instance.
From memory, you have to get a "edit" at end of textureformat in latest plsm2 version. but I'm not sure.

Have to make everything is clear before:

1. give as much as possible info, like What version of PLSM2, OGRE, GPU, platform, etc ?
2. no error whatsoever in ogre.log when running the demo ?
3. Did you achieve some painting using the demo coming with plsm2 ?
4. what GPU are you targeting ? if > sm2 use splatting or something you make yourself and is derived from, and there will be no need of texture change, everything is done in the shader ?

Buckcherry

24-06-2008 18:21:07

I am very glad to hear from you, tuan!!! :D:D:D

For the answer of your questions I have changed the TextureFormat from my .cfg file:

TextureFormat=InstantBaseEdit

1. give as much as possible info, like What version of PLSM2, OGRE, GPU, platform, etc ?

- PLSM2 version: Version taken from SVN
- OGRE: v1.4.7 [Eihort] (6 March 2008)
- GPU: graphics card ATI Mobility Radeon 9700 SE
- Platform: Microsoft Visual Studio 2005 version 8.0.50727.762 with Service Pack 1
- Operating System: Windows XP Service Pack 3

2. no error whatsoever in ogre.log when running the demo ?

Running the demo I get an unhandled exception (the same one that my application gets). This exception happens since I changed the TextureFormat to InstantBaseEdit.

The debugger stops in the line 422 from ogrepaginglandscapetexture.cpp:

Material::TechniqueIterator tIt = material->getTechniqueIterator ();

My ogre.log is:


19:02:10: Creating resource group General
19:02:10: Creating resource group Internal
19:02:10: Creating resource group Autodetect
19:02:10: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:02:10: Registering ResourceManager for type Material
19:02:10: Registering ResourceManager for type Mesh
19:02:10: Registering ResourceManager for type Skeleton
19:02:10: MovableObjectFactory for type 'ParticleSystem' registered.
19:02:10: OverlayElementFactory for type Panel registered.
19:02:10: OverlayElementFactory for type BorderPanel registered.
19:02:10: OverlayElementFactory for type TextArea registered.
19:02:10: Registering ResourceManager for type Font
19:02:10: ArchiveFactory for archive type FileSystem registered.
19:02:10: ArchiveFactory for archive type Zip registered.
19:02:10: FreeImage version: 3.10.0
19:02:10: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:02:10: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
19:02:10: DDS codec registering
19:02:10: Registering ResourceManager for type HighLevelGpuProgram
19:02:10: Registering ResourceManager for type Compositor
19:02:10: MovableObjectFactory for type 'Entity' registered.
19:02:10: MovableObjectFactory for type 'Light' registered.
19:02:10: MovableObjectFactory for type 'BillboardSet' registered.
19:02:10: MovableObjectFactory for type 'ManualObject' registered.
19:02:10: MovableObjectFactory for type 'BillboardChain' registered.
19:02:10: MovableObjectFactory for type 'RibbonTrail' registered.
19:02:10: Loading library .\RenderSystem_Direct3D9
19:02:11: Installing plugin: D3D9 RenderSystem
19:02:11: D3D9 : Direct3D9 Rendering Subsystem created.
19:02:11: D3D9: Driver Detection Starts
19:02:11: D3D9: Driver Detection Ends
19:02:11: Plugin successfully installed
19:02:11: Loading library .\RenderSystem_GL
19:02:11: Installing plugin: GL RenderSystem
19:02:11: OpenGL Rendering Subsystem created.
19:02:12: Plugin successfully installed
19:02:12: Loading library .\Plugin_ParticleFX
19:02:12: Installing plugin: ParticleFX
19:02:12: Particle Emitter Type 'Point' registered
19:02:12: Particle Emitter Type 'Box' registered
19:02:12: Particle Emitter Type 'Ellipsoid' registered
19:02:12: Particle Emitter Type 'Cylinder' registered
19:02:12: Particle Emitter Type 'Ring' registered
19:02:12: Particle Emitter Type 'HollowEllipsoid' registered
19:02:12: Particle Affector Type 'LinearForce' registered
19:02:12: Particle Affector Type 'ColourFader' registered
19:02:12: Particle Affector Type 'ColourFader2' registered
19:02:12: Particle Affector Type 'ColourImage' registered
19:02:12: Particle Affector Type 'ColourInterpolator' registered
19:02:12: Particle Affector Type 'Scaler' registered
19:02:12: Particle Affector Type 'Rotator' registered
19:02:12: Particle Affector Type 'DirectionRandomiser' registered
19:02:12: Particle Affector Type 'DeflectorPlane' registered
19:02:12: Plugin successfully installed
19:02:12: Loading library .\Plugin_BSPSceneManager
19:02:12: Installing plugin: BSP Scene Manager
19:02:12: Plugin successfully installed
19:02:12: Loading library .\Plugin_OctreeSceneManager
19:02:12: Installing plugin: Octree & Terrain Scene Manager
19:02:12: Plugin successfully installed
19:02:12: Loading library .\Plugin_CgProgramManager
19:02:12: Installing plugin: Cg Program Manager
19:02:12: Plugin successfully installed
19:02:12: Loading library .\Plugin_PagingLandScapeSceneManager2
19:02:12: SceneManagerFactory for type 'PagingLandScapeSceneManager' registered.
19:02:12: *-*-* OGRE Initialising
19:02:12: *-*-* Version 1.4.7 (Eihort)
19:02:12: Creating resource group Bootstrap
19:02:12: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
19:02:12: Creating resource group ET
19:02:12: Added resource location '../../media/ET' of type 'FileSystem' to resource group 'ET'
19:02:12: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/skins' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/skins/qgui' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/skins/qgui_demo' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/trees' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/terrains' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/grass' of type 'FileSystem' to resource group 'General'
19:02:12: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
19:02:12: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
19:02:12: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
19:02:12: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
19:02:12: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
19:02:12: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
19:02:12: Creating resource group PLSM2
19:02:12: Added resource location '../../media/PLSM_Media' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/terrains' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/terrains/alpes' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/terrains/hf129_3' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/terrains/TsmTerrain' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/materials' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/materials/programs' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/materials/scripts' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/materials/textures' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/models' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/overlays' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: Added resource location '../../media/PLSM_Media/gui' of type 'FileSystem' to resource group 'PLSM2'
19:02:12: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
19:02:12: D3D9 : RenderSystem Option: Anti aliasing = None
19:02:12: D3D9 : RenderSystem Option: Floating-point mode = Fastest
19:02:12: D3D9 : RenderSystem Option: Full Screen = No
19:02:12: D3D9 : RenderSystem Option: Rendering Device = ATI MOBILITY RADEON 9700 SE
19:02:12: D3D9 : RenderSystem Option: VSync = No
19:02:12: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 16-bit colour
19:02:14: CPU Identifier & Features
19:02:14: -------------------------
19:02:14: * CPU ID: GenuineIntel: Intel(R) Pentium(R) M processor 1.60GHz
19:02:14: * SSE: yes
19:02:14: * SSE2: yes
19:02:14: * SSE3: no
19:02:14: * MMX: yes
19:02:14: * MMXEXT: yes
19:02:14: * 3DNOW: no
19:02:14: * 3DNOWEXT: no
19:02:14: * CMOV: yes
19:02:14: * TSC: yes
19:02:14: * FPU: yes
19:02:14: * PRO: no
19:02:14: * HT: no
19:02:14: -------------------------
19:02:14: D3D9 : Subsystem Initialising
19:02:14: D3D9RenderSystem::createRenderWindow "Lords - Map Tool", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=16 useNVPerfHUD=false vsync=false
19:02:14: D3D9 : Created D3D9 Rendering Window 'Lords - Map Tool' : 800x600, 16bpp
19:02:14: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
19:02:14: Registering ResourceManager for type Texture
19:02:14: Registering ResourceManager for type GpuProgram
19:02:14: RenderSystem capabilities
19:02:14: -------------------------
19:02:14: * Hardware generation of mipmaps: yes
19:02:14: * Texture blending: yes
19:02:14: * Anisotropic texture filtering: yes
19:02:14: * Dot product texture operation: yes
19:02:14: * Cube mapping: yes
19:02:14: * Hardware stencil buffer: no
19:02:14: * Hardware vertex / index buffers: yes
19:02:14: * Vertex programs: yes
19:02:14: - Max vertex program version: vs_2_0
19:02:14: * Fragment programs: yes
19:02:14: - Max fragment program version: ps_2_0
19:02:14: * Texture Compression: yes
19:02:14: - DXT: yes
19:02:14: - VTC: no
19:02:14: * Scissor Rectangle: yes
19:02:14: * Hardware Occlusion Query: yes
19:02:14: * User clip planes: yes
19:02:14: * VET_UBYTE4 vertex element type: yes
19:02:14: * Infinite far plane projection: yes
19:02:14: * Hardware render-to-texture: yes
19:02:14: * Floating point textures: yes
19:02:14: * Non-power-of-two textures: yes (limited)
19:02:14: * Volume textures: yes
19:02:14: * Multiple Render Targets: 4
19:02:14: * Point Sprites: yes
19:02:14: * Extended point parameters: yes
19:02:14: * Max Point Size: 256
19:02:14: * Vertex texture fetch: no
19:02:14: ***************************************
19:02:14: *** D3D9 : Subsystem Initialised OK ***
19:02:14: ***************************************
19:02:14: ResourceBackgroundQueue - threading disabled
19:02:14: Particle Renderer Type 'billboard' registered
19:02:14: SceneManagerFactory for type 'BspSceneManager' registered.
19:02:14: Registering ResourceManager for type BspLevel
19:02:14: SceneManagerFactory for type 'OctreeSceneManager' registered.
19:02:14: SceneManagerFactory for type 'TerrainSceneManager' registered.
19:02:14: MovableObjectFactory for type 'PagingLandScapeMeshDecal' registered.
19:02:14: Creating viewport on target 'Lords - Map Tool', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
19:02:14: Parsing scripts for resource group Autodetect
19:02:14: Finished parsing scripts for resource group Autodetect
19:02:14: Parsing scripts for resource group Bootstrap
19:02:14: Parsing script OgreCore.material
19:02:14: Parsing script OgreProfiler.material
19:02:14: Parsing script Ogre.fontdef
19:02:14: Parsing script OgreDebugPanel.overlay
19:02:14: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
19:02:14: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:02:14: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:02:14: Font BlueHighwayusing texture size 512x512
19:02:14: Info: Freetype returned null for character 127 in font BlueHighway
19:02:14: Info: Freetype returned null for character 128 in font BlueHighway
19:02:14: Info: Freetype returned null for character 129 in font BlueHighway
19:02:14: Info: Freetype returned null for character 130 in font BlueHighway
19:02:14: Info: Freetype returned null for character 131 in font BlueHighway
19:02:14: Info: Freetype returned null for character 132 in font BlueHighway
19:02:14: Info: Freetype returned null for character 133 in font BlueHighway
19:02:14: Info: Freetype returned null for character 134 in font BlueHighway
19:02:14: Info: Freetype returned null for character 135 in font BlueHighway
19:02:14: Info: Freetype returned null for character 136 in font BlueHighway
19:02:14: Info: Freetype returned null for character 137 in font BlueHighway
19:02:14: Info: Freetype returned null for character 138 in font BlueHighway
19:02:14: Info: Freetype returned null for character 139 in font BlueHighway
19:02:14: Info: Freetype returned null for character 140 in font BlueHighway
19:02:14: Info: Freetype returned null for character 141 in font BlueHighway
19:02:14: Info: Freetype returned null for character 142 in font BlueHighway
19:02:14: Info: Freetype returned null for character 143 in font BlueHighway
19:02:14: Info: Freetype returned null for character 144 in font BlueHighway
19:02:14: Info: Freetype returned null for character 145 in font BlueHighway
19:02:14: Info: Freetype returned null for character 146 in font BlueHighway
19:02:14: Info: Freetype returned null for character 147 in font BlueHighway
19:02:14: Info: Freetype returned null for character 148 in font BlueHighway
19:02:14: Info: Freetype returned null for character 149 in font BlueHighway
19:02:14: Info: Freetype returned null for character 150 in font BlueHighway
19:02:14: Info: Freetype returned null for character 151 in font BlueHighway
19:02:14: Info: Freetype returned null for character 152 in font BlueHighway
19:02:14: Info: Freetype returned null for character 153 in font BlueHighway
19:02:14: Info: Freetype returned null for character 154 in font BlueHighway
19:02:14: Info: Freetype returned null for character 155 in font BlueHighway
19:02:14: Info: Freetype returned null for character 156 in font BlueHighway
19:02:14: Info: Freetype returned null for character 157 in font BlueHighway
19:02:14: Info: Freetype returned null for character 158 in font BlueHighway
19:02:14: Info: Freetype returned null for character 159 in font BlueHighway
19:02:14: Info: Freetype returned null for character 160 in font BlueHighway
19:02:14: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
19:02:14: D3D9 : ***** Dimensions altered by the render system
19:02:14: D3D9 : ***** Source image dimensions : 685x256
19:02:14: D3D9 : ***** Texture dimensions : 1024x256
19:02:14: Texture: Lords_firma.png: Loading 1 faces(PF_A8R8G8B8,685x256x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
19:02:14: Parsing script OgreLoadingPanel.overlay
19:02:14: Finished parsing scripts for resource group Bootstrap
19:02:14: Parsing scripts for resource group ET
19:02:14: Parsing script ETShader.program
19:02:14: Parsing script ETTerrain.material
19:02:14: Finished parsing scripts for resource group ET
19:02:14: Parsing scripts for resource group General
19:02:14: Parsing script Examples.program
19:02:14: Parsing script StdQuad_vp.program
19:02:14: Parsing script deferred.glsl.program
19:02:14: Parsing script deferred.hlsl.program
19:02:14: Parsing script deferred_post_debug.glsl.program
19:02:14: Parsing script deferred_post_debug.hlsl.program
19:02:14: Parsing script deferred_post_minilight.glsl.program
19:02:14: Parsing script deferred_post_minilight.hlsl.program
19:02:14: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 883)
19:02:15: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
19:02:15: Parsing script deferred_post_multipass.glsl.program
19:02:15: Parsing script deferred_post_multipass.hlsl.program
19:02:15: Parsing script deferred_post_onepass.glsl.program
19:02:15: Parsing script deferred_post_onepass.hlsl.program
19:02:15: Parsing script arbol.material
19:02:15: Parsing script armour1.material
19:02:15: Parsing script BlackAndWhite.material
19:02:15: Parsing script Bloom.material
19:02:15: Parsing script casco1.material
19:02:15: Parsing script Decal.material
19:02:15: Error in material Proyeccion at line 23 of Decal.material: Unrecognised command: #tex_address_mode
19:02:15: Parsing script DepthShadowmap.material
19:02:15: Parsing script diablo.material
19:02:15: Parsing script diablo2.material
19:02:15: Parsing script Example-DynTex.material
19:02:15: Parsing script Example-Water.material
19:02:15: Parsing script Example.material
19:02:15: Parsing script Examples-Advanced.material
19:02:15: Parsing script facial.material
19:02:15: Parsing script Glass.material
19:02:15: Parsing script hdr.material
19:02:15: Parsing script HeatVision.material
19:02:15: Parsing script Hurt.material
19:02:15: Parsing script instancing.material
19:02:16: Parsing script Invert.material
19:02:16: Parsing script Laplace.material
19:02:16: Parsing script lizard.material
19:02:16: Parsing script MotionBlur.material
19:02:16: Parsing script nightelf.material
19:02:16: Parsing script Ocean.material
19:02:16: Parsing script OffsetMapping.material
19:02:16: Parsing script Ogre.material
19:02:16: Parsing script OldMovie.material
19:02:16: Parsing script OldTV.material
19:02:16: Parsing script OverlayGUI.material
19:02:16: Parsing script OverlayGUI2.material
19:02:16: Parsing script pads1.material
19:02:16: Parsing script pads1b.material
19:02:16: Parsing script PLC_oak101.material
19:02:16: Parsing script Posterize.material
19:02:16: Parsing script RZR-002.material
19:02:16: Parsing script SharpenEdges.material
19:02:16: Parsing script smoke.material
19:02:16: Parsing script TerrainMaterial.material
19:02:16: Error in material TerrainMaterial at line 8 of TerrainMaterial.material: Unrecognised command: cast_shadows
19:02:16: Error in material TerrainMaterial at line 9 of TerrainMaterial.material: Unrecognised command: receive_shadows
19:02:16: Parsing script Tiling.material
19:02:16: Parsing script VarianceShadowmap.material
19:02:16: Parsing script warlock.material
19:02:16: Parsing script zombie.material
19:02:16: Parsing script skinTemplate.material
19:02:16: Parsing script deferred.material
19:02:16: Parsing script deferreddemo.material
19:02:16: Parsing script deferred_post_debug.material
19:02:16: Parsing script deferred_post_minilight.material
19:02:16: Parsing script deferred_post_multipass.material
19:02:16: Parsing script deferred_post_onepass.material
19:02:16: Parsing script 3d-diggers_fir.material
19:02:16: Parsing script farn1.mesh.material
19:02:16: Parsing script farn2.mesh.material
19:02:16: Parsing script plant1.mesh.material
19:02:16: Parsing script plant2.mesh.material
19:02:16: Parsing script shrooms.material
19:02:16: Parsing script skybox.material
19:02:16: Parsing script tree.material
19:02:16: Parsing script grass.material
19:02:16: Parsing script RomanBath.material
19:02:16: Parsing script qgui.skinset
19:02:16: Parsing script Examples.compositor
19:02:16: Parsing script acmesa.fontdef
19:02:16: Parsing script micross.fontdef
19:02:16: Parsing script sample.fontdef
19:02:16: Parsing script emitted_emitter.particle
19:02:16: Parsing script Example-Water.particle
19:02:16: Parsing script Example.particle
19:02:16: Parsing script smoke.particle
19:02:16: Parsing script Compositor.overlay
19:02:16: Parsing script DP3.overlay
19:02:16: Parsing script Example-CubeMapping.overlay
19:02:16: Parsing script Example-DynTex.overlay
19:02:16: Parsing script Example-Water.overlay
19:02:16: Parsing script Shadows.overlay
19:02:16: Finished parsing scripts for resource group General
19:02:16: Parsing scripts for resource group Internal
19:02:16: Finished parsing scripts for resource group Internal
19:02:16: Parsing scripts for resource group PLSM2
19:02:16: Parsing script DecompressShadowReceiver.program
19:02:16: Parsing script DecompressSplat.program
19:02:16: Parsing script DecompressSplatShader.program
19:02:16: Parsing script DecompressVertex.program
19:02:16: Parsing script PLShaders.program
19:02:16: Parsing script ShadowReceiver.program
19:02:16: Parsing script Splat.program
19:02:16: Parsing script SplatShader.program
19:02:16: Parsing script BaseTexture.material
19:02:16: Parsing script colors.material
19:02:16: Parsing script MapEditor-Circle.material
19:02:16: Parsing script MyTree.material
19:02:16: Parsing script PagingLandScape.material
19:02:16: Parsing script PagingLandScapeTemplate.material
19:02:16: Parsing script PLSplattingShaderLit.material
19:02:16: Parsing script PLSplattingShaderLitDecompress.material
19:02:17: Parsing script PLSplattingShaderUnlit.material
19:02:17: Parsing script PLSplattingShaderUnlitDecompress.material
19:02:17: Parsing script Splatting.material
19:02:17: Parsing script Splatting2.material
19:02:17: Parsing script Splatting3.material
19:02:17: Parsing script Splatting4.material
19:02:17: Parsing script Splatting5.material
19:02:17: Parsing script Splatting6.material
19:02:17: Parsing script Splatting7.material
19:02:17: Parsing script SplattingShader.material
19:02:17: Parsing script DebugOverlay.overlay
19:02:17: Parsing script PagingLandScape.overlay
19:02:17: Parsing script PagingLandScape2.overlay
19:02:17: Finished parsing scripts for resource group PLSM2
19:02:17: Texture: clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
19:02:17: Initialising resource group PLSM2
19:02:17: Added resource location '../../media/PLSM_Media/terrains/TsmTerrain' of type 'FileSystem' to resource group 'PLSM2'
19:02:17: Initialising resource group PLSM2


My plsm2.log is:


19:08:32: Creating resource group General
19:08:32: Creating resource group Internal
19:08:32: Creating resource group Autodetect
19:08:32: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:08:32: Registering ResourceManager for type Material
19:08:32: Registering ResourceManager for type Mesh
19:08:32: Registering ResourceManager for type Skeleton
19:08:32: MovableObjectFactory for type 'ParticleSystem' registered.
19:08:32: OverlayElementFactory for type Panel registered.
19:08:32: OverlayElementFactory for type BorderPanel registered.
19:08:32: OverlayElementFactory for type TextArea registered.
19:08:32: Registering ResourceManager for type Font
19:08:32: ArchiveFactory for archive type FileSystem registered.
19:08:32: ArchiveFactory for archive type Zip registered.
19:08:32: FreeImage version: 3.10.0
19:08:32: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:08:32: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
19:08:32: DDS codec registering
19:08:32: Registering ResourceManager for type HighLevelGpuProgram
19:08:32: Registering ResourceManager for type Compositor
19:08:32: MovableObjectFactory for type 'Entity' registered.
19:08:32: MovableObjectFactory for type 'Light' registered.
19:08:32: MovableObjectFactory for type 'BillboardSet' registered.
19:08:32: MovableObjectFactory for type 'ManualObject' registered.
19:08:32: MovableObjectFactory for type 'BillboardChain' registered.
19:08:32: MovableObjectFactory for type 'RibbonTrail' registered.
19:08:32: Loading library .\RenderSystem_Direct3D9
19:08:32: Installing plugin: D3D9 RenderSystem
19:08:32: D3D9 : Direct3D9 Rendering Subsystem created.
19:08:32: D3D9: Driver Detection Starts
19:08:32: D3D9: Driver Detection Ends
19:08:32: Plugin successfully installed
19:08:32: Loading library .\RenderSystem_GL
19:08:32: Installing plugin: GL RenderSystem
19:08:32: OpenGL Rendering Subsystem created.
19:08:32: Plugin successfully installed
19:08:32: Loading library .\Plugin_ParticleFX
19:08:32: Installing plugin: ParticleFX
19:08:32: Particle Emitter Type 'Point' registered
19:08:32: Particle Emitter Type 'Box' registered
19:08:32: Particle Emitter Type 'Ellipsoid' registered
19:08:32: Particle Emitter Type 'Cylinder' registered
19:08:32: Particle Emitter Type 'Ring' registered
19:08:32: Particle Emitter Type 'HollowEllipsoid' registered
19:08:32: Particle Affector Type 'LinearForce' registered
19:08:32: Particle Affector Type 'ColourFader' registered
19:08:32: Particle Affector Type 'ColourFader2' registered
19:08:32: Particle Affector Type 'ColourImage' registered
19:08:32: Particle Affector Type 'ColourInterpolator' registered
19:08:32: Particle Affector Type 'Scaler' registered
19:08:32: Particle Affector Type 'Rotator' registered
19:08:32: Particle Affector Type 'DirectionRandomiser' registered
19:08:32: Particle Affector Type 'DeflectorPlane' registered
19:08:32: Plugin successfully installed
19:08:32: Loading library .\Plugin_BSPSceneManager
19:08:32: Installing plugin: BSP Scene Manager
19:08:32: Plugin successfully installed
19:08:32: Loading library .\Plugin_OctreeSceneManager
19:08:32: Installing plugin: Octree & Terrain Scene Manager
19:08:32: Plugin successfully installed
19:08:32: Loading library .\Plugin_CgProgramManager
19:08:32: Installing plugin: Cg Program Manager
19:08:32: Plugin successfully installed
19:08:32: Loading library .\Plugin_PagingLandScapeSceneManager2
19:08:32: SceneManagerFactory for type 'PagingLandScapeSceneManager' registered.
19:08:32: *-*-* OGRE Initialising
19:08:32: *-*-* Version 1.4.7 (Eihort)
19:08:32: Creating resource group Bootstrap
19:08:32: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
19:08:32: Creating resource group ET
19:08:32: Added resource location '../../media/ET' of type 'FileSystem' to resource group 'ET'
19:08:32: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/skins' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/skins/qgui' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/skins/qgui_demo' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/trees' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/terrains' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/grass' of type 'FileSystem' to resource group 'General'
19:08:32: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
19:08:32: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
19:08:32: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
19:08:32: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
19:08:32: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
19:08:32: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
19:08:32: Creating resource group PLSM2
19:08:32: Added resource location '../../media/PLSM_Media' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/terrains' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/terrains/alpes' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/terrains/hf129_3' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/terrains/TsmTerrain' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/materials' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/materials/programs' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/materials/scripts' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/materials/textures' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/models' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/overlays' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: Added resource location '../../media/PLSM_Media/gui' of type 'FileSystem' to resource group 'PLSM2'
19:08:32: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
19:08:32: D3D9 : RenderSystem Option: Anti aliasing = None
19:08:32: D3D9 : RenderSystem Option: Floating-point mode = Fastest
19:08:32: D3D9 : RenderSystem Option: Full Screen = No
19:08:32: D3D9 : RenderSystem Option: Rendering Device = ATI MOBILITY RADEON 9700 SE
19:08:32: D3D9 : RenderSystem Option: VSync = No
19:08:32: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
19:08:33: CPU Identifier & Features
19:08:33: -------------------------
19:08:33: * CPU ID: GenuineIntel: Intel(R) Pentium(R) M processor 1.60GHz
19:08:33: * SSE: yes
19:08:33: * SSE2: yes
19:08:33: * SSE3: no
19:08:33: * MMX: yes
19:08:33: * MMXEXT: yes
19:08:33: * 3DNOW: no
19:08:33: * 3DNOWEXT: no
19:08:33: * CMOV: yes
19:08:33: * TSC: yes
19:08:33: * FPU: yes
19:08:33: * PRO: no
19:08:33: * HT: no
19:08:33: -------------------------
19:08:33: D3D9 : Subsystem Initialising
19:08:33: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
19:08:33: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
19:08:33: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
19:08:33: Registering ResourceManager for type Texture
19:08:33: Registering ResourceManager for type GpuProgram
19:08:33: RenderSystem capabilities
19:08:33: -------------------------
19:08:33: * Hardware generation of mipmaps: yes
19:08:33: * Texture blending: yes
19:08:33: * Anisotropic texture filtering: yes
19:08:33: * Dot product texture operation: yes
19:08:33: * Cube mapping: yes
19:08:33: * Hardware stencil buffer: yes
19:08:33: - Stencil depth: 8
19:08:33: - Two sided stencil support: yes
19:08:33: - Wrap stencil values: yes
19:08:33: * Hardware vertex / index buffers: yes
19:08:33: * Vertex programs: yes
19:08:33: - Max vertex program version: vs_2_0
19:08:33: * Fragment programs: yes
19:08:33: - Max fragment program version: ps_2_0
19:08:33: * Texture Compression: yes
19:08:33: - DXT: yes
19:08:33: - VTC: no
19:08:33: * Scissor Rectangle: yes
19:08:33: * Hardware Occlusion Query: yes
19:08:33: * User clip planes: yes
19:08:33: * VET_UBYTE4 vertex element type: yes
19:08:33: * Infinite far plane projection: yes
19:08:33: * Hardware render-to-texture: yes
19:08:33: * Floating point textures: yes
19:08:33: * Non-power-of-two textures: yes (limited)
19:08:33: * Volume textures: yes
19:08:33: * Multiple Render Targets: 4
19:08:33: * Point Sprites: yes
19:08:33: * Extended point parameters: yes
19:08:33: * Max Point Size: 256
19:08:33: * Vertex texture fetch: no
19:08:33: ***************************************
19:08:33: *** D3D9 : Subsystem Initialised OK ***
19:08:33: ***************************************
19:08:33: ResourceBackgroundQueue - threading disabled
19:08:33: Particle Renderer Type 'billboard' registered
19:08:33: SceneManagerFactory for type 'BspSceneManager' registered.
19:08:33: Registering ResourceManager for type BspLevel
19:08:33: SceneManagerFactory for type 'OctreeSceneManager' registered.
19:08:33: SceneManagerFactory for type 'TerrainSceneManager' registered.
19:08:33: MovableObjectFactory for type 'PagingLandScapeMeshDecal' registered.
19:08:33: Parsing scripts for resource group Autodetect
19:08:33: Finished parsing scripts for resource group Autodetect
19:08:33: Parsing scripts for resource group Bootstrap
19:08:33: Parsing script OgreCore.material
19:08:33: Parsing script OgreProfiler.material
19:08:33: Parsing script Ogre.fontdef
19:08:33: Parsing script OgreDebugPanel.overlay
19:08:33: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
19:08:33: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:08:33: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
19:08:33: Font BlueHighwayusing texture size 512x512
19:08:33: Info: Freetype returned null for character 127 in font BlueHighway
19:08:33: Info: Freetype returned null for character 128 in font BlueHighway
19:08:33: Info: Freetype returned null for character 129 in font BlueHighway
19:08:33: Info: Freetype returned null for character 130 in font BlueHighway
19:08:33: Info: Freetype returned null for character 131 in font BlueHighway
19:08:33: Info: Freetype returned null for character 132 in font BlueHighway
19:08:33: Info: Freetype returned null for character 133 in font BlueHighway
19:08:33: Info: Freetype returned null for character 134 in font BlueHighway
19:08:33: Info: Freetype returned null for character 135 in font BlueHighway
19:08:33: Info: Freetype returned null for character 136 in font BlueHighway
19:08:33: Info: Freetype returned null for character 137 in font BlueHighway
19:08:33: Info: Freetype returned null for character 138 in font BlueHighway
19:08:33: Info: Freetype returned null for character 139 in font BlueHighway
19:08:33: Info: Freetype returned null for character 140 in font BlueHighway
19:08:33: Info: Freetype returned null for character 141 in font BlueHighway
19:08:33: Info: Freetype returned null for character 142 in font BlueHighway
19:08:33: Info: Freetype returned null for character 143 in font BlueHighway
19:08:33: Info: Freetype returned null for character 144 in font BlueHighway
19:08:33: Info: Freetype returned null for character 145 in font BlueHighway
19:08:33: Info: Freetype returned null for character 146 in font BlueHighway
19:08:33: Info: Freetype returned null for character 147 in font BlueHighway
19:08:33: Info: Freetype returned null for character 148 in font BlueHighway
19:08:33: Info: Freetype returned null for character 149 in font BlueHighway
19:08:33: Info: Freetype returned null for character 150 in font BlueHighway
19:08:33: Info: Freetype returned null for character 151 in font BlueHighway
19:08:33: Info: Freetype returned null for character 152 in font BlueHighway
19:08:33: Info: Freetype returned null for character 153 in font BlueHighway
19:08:33: Info: Freetype returned null for character 154 in font BlueHighway
19:08:33: Info: Freetype returned null for character 155 in font BlueHighway
19:08:33: Info: Freetype returned null for character 156 in font BlueHighway
19:08:33: Info: Freetype returned null for character 157 in font BlueHighway
19:08:33: Info: Freetype returned null for character 158 in font BlueHighway
19:08:33: Info: Freetype returned null for character 159 in font BlueHighway
19:08:33: Info: Freetype returned null for character 160 in font BlueHighway
19:08:33: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
19:08:33: D3D9 : ***** Dimensions altered by the render system
19:08:33: D3D9 : ***** Source image dimensions : 685x256
19:08:33: D3D9 : ***** Texture dimensions : 1024x256
19:08:33: Texture: Lords_firma.png: Loading 1 faces(PF_A8R8G8B8,685x256x1) with 10 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
19:08:34: Parsing script OgreLoadingPanel.overlay
19:08:34: Finished parsing scripts for resource group Bootstrap
19:08:34: Parsing scripts for resource group ET
19:08:34: Parsing script ETShader.program
19:08:34: Parsing script ETTerrain.material
19:08:34: Finished parsing scripts for resource group ET
19:08:34: Parsing scripts for resource group General
19:08:34: Parsing script Examples.program
19:08:34: Parsing script StdQuad_vp.program
19:08:34: Parsing script deferred.glsl.program
19:08:34: Parsing script deferred.hlsl.program
19:08:34: Parsing script deferred_post_debug.glsl.program
19:08:34: Parsing script deferred_post_debug.hlsl.program
19:08:34: Parsing script deferred_post_minilight.glsl.program
19:08:34: Parsing script deferred_post_minilight.hlsl.program
19:08:34: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 883)
19:08:34: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
19:08:34: Parsing script deferred_post_multipass.glsl.program
19:08:34: Parsing script deferred_post_multipass.hlsl.program
19:08:34: Parsing script deferred_post_onepass.glsl.program
19:08:34: Parsing script deferred_post_onepass.hlsl.program
19:08:34: Parsing script arbol.material
19:08:34: Parsing script armour1.material
19:08:34: Parsing script BlackAndWhite.material
19:08:34: Parsing script Bloom.material
19:08:34: Parsing script casco1.material
19:08:34: Parsing script Decal.material
19:08:34: Error in material Proyeccion at line 23 of Decal.material: Unrecognised command: #tex_address_mode
19:08:34: Parsing script DepthShadowmap.material
19:08:34: Parsing script diablo.material
19:08:34: Parsing script diablo2.material
19:08:34: Parsing script DOF.material
19:08:34: Parsing script Edificio1.material
19:08:34: Parsing script Embossed.material
19:08:34: Parsing script escudo3.material
19:08:34: Parsing script escudo4.material
19:08:34: Parsing script espada.material
19:08:34: Parsing script espada2.material
19:08:34: Parsing script espada3.material
19:08:34: Parsing script Example-DynTex.material
19:08:34: Parsing script Example-Water.material
19:08:34: Parsing script Example.material
19:08:34: Parsing script Examples-Advanced.material
19:08:34: Parsing script facial.material
19:08:34: Parsing script Glass.material
19:08:34: Parsing script hdr.material
19:08:34: Parsing script HeatVision.material
19:08:34: Parsing script Hurt.material
19:08:34: Parsing script instancing.material
19:08:34: Parsing script Invert.material
19:08:34: Parsing script Laplace.material
19:08:34: Parsing script lizard.material
19:08:34: Parsing script moneda.material
19:08:34: Parsing script MotionBlur.material
19:08:34: Parsing script nightelf.material
19:08:34: Parsing script Ocean.material
19:08:34: Parsing script OffsetMapping.material
19:08:34: Parsing script Ogre.material
19:08:34: Parsing script OldMovie.material
19:08:34: Parsing script OldTV.material
19:08:34: Parsing script OverlayGUI.material
19:08:34: Parsing script OverlayGUI2.material
19:08:34: Parsing script pads1.material
19:08:34: Parsing script pads1b.material
19:08:34: Parsing script PLC_oak101.material
19:08:34: Parsing script Posterize.material
19:08:34: Parsing script RZR-002.material
19:08:34: Parsing script SharpenEdges.material
19:08:34: Parsing script smoke.material
19:08:34: Parsing script TerrainMaterial.material
19:08:34: Error in material TerrainMaterial at line 8 of TerrainMaterial.material: Unrecognised command: cast_shadows
19:08:34: Error in material TerrainMaterial at line 9 of TerrainMaterial.material: Unrecognised command: receive_shadows
19:08:34: Parsing script Tiling.material
19:08:35: Parsing script VarianceShadowmap.material
19:08:35: Parsing script warlock.material
19:08:35: Parsing script zombie.material
19:08:35: Parsing script skinTemplate.material
19:08:35: Parsing script deferred.material
19:08:35: Parsing script deferreddemo.material
19:08:35: Parsing script deferred_post_debug.material
19:08:35: Parsing script deferred_post_minilight.material
19:08:35: Parsing script deferred_post_multipass.material
19:08:35: Parsing script deferred_post_onepass.material
19:08:35: Parsing script 3d-diggers_fir.material
19:08:35: Parsing script farn1.mesh.material
19:08:35: Parsing script farn2.mesh.material
19:08:35: Parsing script plant1.mesh.material
19:08:35: Parsing script plant2.mesh.material
19:08:35: Parsing script shrooms.material
19:08:35: Parsing script skybox.material
19:08:35: Parsing script tree.material
19:08:35: Parsing script grass.material
19:08:35: Parsing script RomanBath.material
19:08:35: Parsing script Examples.compositor
19:08:35: Parsing script acmesa.fontdef
19:08:35: Parsing script micross.fontdef
19:08:35: Parsing script sample.fontdef
19:08:35: Parsing script emitted_emitter.particle
19:08:35: Parsing script Example-Water.particle
19:08:35: Parsing script Example.particle
19:08:35: Parsing script smoke.particle
19:08:35: Parsing script Compositor.overlay
19:08:35: Parsing script DP3.overlay
19:08:35: Parsing script Example-CubeMapping.overlay
19:08:35: Parsing script Example-DynTex.overlay
19:08:35: Parsing script Example-Water.overlay
19:08:35: Parsing script Shadows.overlay
19:08:35: Finished parsing scripts for resource group General
19:08:35: Parsing scripts for resource group Internal
19:08:35: Finished parsing scripts for resource group Internal
19:08:35: Parsing scripts for resource group PLSM2
19:08:35: Parsing script DecompressShadowReceiver.program
19:08:35: Parsing script DecompressSplat.program
19:08:35: Parsing script DecompressSplatShader.program
19:08:35: Parsing script DecompressVertex.program
19:08:35: Parsing script PLShaders.program
19:08:35: Parsing script ShadowReceiver.program
19:08:35: Parsing script Splat.program
19:08:35: Parsing script SplatShader.program
19:08:35: Parsing script BaseTexture.material
19:08:35: Parsing script colors.material
19:08:35: Parsing script MapEditor-Circle.material
19:08:35: Parsing script MyTree.material
19:08:35: Parsing script PagingLandScape.material
19:08:35: Parsing script PagingLandScapeTemplate.material
19:08:35: Parsing script PLSplattingShaderLit.material
19:08:35: Parsing script PLSplattingShaderLitDecompress.material
19:08:35: Parsing script PLSplattingShaderUnlit.material
19:08:35: Parsing script PLSplattingShaderUnlitDecompress.material
19:08:35: Parsing script Splatting.material
19:08:35: Parsing script Splatting2.material
19:08:35: Parsing script Splatting3.material
19:08:35: Parsing script Splatting4.material
19:08:35: Parsing script Splatting5.material
19:08:35: Parsing script Splatting6.material
19:08:35: Parsing script Splatting7.material
19:08:35: Parsing script SplattingShader.material
19:08:35: Parsing script DebugOverlay.overlay
19:08:35: Parsing script PagingLandScape.overlay
19:08:35: Parsing script PagingLandScape2.overlay
19:08:35: Finished parsing scripts for resource group PLSM2
19:08:35: Initialising resource group PLSM2
19:08:35: Added resource location '../../media/PLSM_Media/terrains/TsmTerrain' of type 'FileSystem' to resource group 'PLSM2'
19:08:35: Initialising resource group PLSM2


3. Did you achieve some painting using the demo coming with plsm2 ?

No. I get the same result that in my application (I have copied the useful sourcecode from the demo).

4. what GPU are you targeting ? if > sm2 use splatting or something you make yourself and is derived from, and there will be no need of texture change, everything is done in the shader ?

No idea. How could I know that?. What options I have?.

tuan kuranes

24-06-2008 18:55:20

We'll stay focused on making the demo terrain painting work for you.

Please restart with vanilla SVN files so that you can reproduce same steps.

you downloaded other map zip pack from http://tuan.kuranes.free.fr/datasrcs.zip ?
You launched mapsplitter and everything was ok ?
Everything else work ?
changing terrain, changing textureformat dynamically using keys during demo ?
You can deform terrain ?

Buckcherry

24-06-2008 19:53:58

The main problem for me is that the MapEditor is for Microsoft Visual Studio 7.1, and I am using the 8.0 version.

I could make some things to work because I was copying code from one project to a 8.0's one.

The main difference is that I do not use the noiseutils. Are they absolutely needed?.

Answering to your questions:

Please restart with vanilla SVN files so that you can reproduce same steps.

What do you mean with vanilla?.

you downloaded other map zip pack from http://tuan.kuranes.free.fr/datasrcs.zip ?

I am going to overwrite my files with those. Although I think they are the same...

You launched mapsplitter and everything was ok ?

No. I have been using the maps from demo. The MapSplitter project is for the 7.1 version of VS.

Everything else work ?

I got the deformation terrain working.

changing terrain, changing textureformat dynamically using keys during demo ?

Only the deformation terrain dinamically.

You can deform terrain ?

Yes, I can.

Buckcherry

24-06-2008 20:35:12

How could I download the lastest version of PLSM2?.

I though I had the last one...

I am doing a SVN Import... from ogre add-ons using TortoiseSVN but it asks me for username and password, I do not know why...

tuan kuranes

24-06-2008 20:50:38

vanilla : pure SVN, no modification
mapsplitter has VC8 solution files. it's mandatory to split files before running demo.
When pressing K not texture format change happens in any terrain ?
When pressing 'n', 'l' or 'p' no terrain change ?

Buckcherry

25-06-2008 19:52:22

vanilla : pure SVN, no modification

Ok. I am using the lastest SVN version. I have downloaded manually file a file from the https source, because I was unable to get it using TortoiseSVN...

mapsplitter has VC8 solution files. it's mandatory to split files before running demo.

I have compiled succesfully the plsm2_vc8.sln solution located at the paginglandscape root folder.

It has three projects inside:

- Demo_PagingLandscape2
- Plugin_PagingLandscapeSceneManager2
- Tool_MapSplitter

I have compiled succesfully the three.

For the next questions I have done the following:

1. I have run the MapSplitter tool and some files were generated. I am using the following .cfg files:

- maptool.cfg:


DefaultMap=puget_1k.gen

puget_sound=puget_1k.gen
#grand_canyon=gcanyon_height_4k2k.gen
#terragen_genrated=terragen16bits.gen
#European_Alpes=Alpes.gen

# resource group name
GroupName=PLSM2

#do you want to run it on all maps listed here
BatchMode=no


- paginglandscape2.cfg:


#DefaultMap=European_Alpes
#DefaultMap=Terrain_Scene_Manager_Terrain
DefaultMap=Map1

Map1=ps_height_1k
European_Alpes=Alpes
Terrain_Scene_Manager_Terrain=TsmTerrain
hf=hf_129_3

NewWorld2=NewWorld2

# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
puget_sound=ps_height_1k
grand_canyon=gcanyon_height_4k2k
terragen_genrated=terragen16bits


# resource group name where to find map definition
GroupName=PLSM2

# Try forbidden textureformat combinations
TextureFormatDebug=no


- ps_height_1k.cfg:


GroupName=PLSM2

LandScapeFileName=ps_height_1k
FileSystem=LandScapeFileName

Width=2
Height=2

ScaleX=90000
ScaleY=15000
ScaleZ=90000

Deformable=yes
VertexCompression=yes

VertexProgramMorph=yes
VertexNormals=no

NumTextureFormatSupported=18

TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=Base2
TextureFormatSupported3=InstantBase
TextureFormatSupported4=Splatting
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting4
TextureFormatSupported7=Splatting6
TextureFormatSupported8=Splatting7
TextureFormatSupported9=Base
TextureFormatSupported10=Base2
TextureFormatSupported11=InstantBase
TextureFormatSupported12=Splatting3
TextureFormatSupported13=Splatting5
TextureFormatSupported14=SplattingShader

TextureFormat=ImagePaging
ImageFilename=ps_texture_1k
TextureExtension=png
TextureStretchFactor=2

NumMatHeightSplat=4
MaterialHeight1=15
MaterialHeight2=50
SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png

HorizonVisibilityComputing=yes

BaseCameraViewpoint.x=41000.0f
BaseCameraViewpoint.y=674000.0f
BaseCameraViewpoint.z=8531.0f

Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f


2. I have run the Demo_PagingLandscape2 executable generated after the compilation of the project.

When pressing K not texture format change happens in any terrain ?

It works fine. The texture format changes.

When pressing 'n', 'l' or 'p' no terrain change ?

It works fine. The terrain changes.

So, what is the next step?.

The demo does not change the texture dinamically, doesn't it?.

tuan kuranes

26-06-2008 12:33:21


#grand_canyon=gcanyon_height_4k2k.gen
#terragen_genrated=terragen16bits.gen
#European_Alpes=Alpes.gen


uncomment those in order to test demo on all maps.

Once tested and all worked, try instantbaseedit on terragen_genrated.

Buckcherry

26-06-2008 19:49:50

uncomment those in order to test demo on all maps.

I have uncommented those lines and I have run the mapsplitter for each o those.

Ater that I have run the Demo_PagingLandscape2.exe and I have been clicking on k, n and p to test all the maps and all the textures. It seems to works fine.

Once tested and all worked, try instantbaseedit on terragen_genrated.

Once I tested all those I changed the TextureFormat in the terragen16bits.cfg to:

TextureFormatSupported10=InstantBaseEdit
TextureFormat=InstantBaseEdit


But when I run the application with that configuration I get an unhandled exception.

I have taken a look into the plsm2.log generated and everything seems ok.

How could I activate the Ogre logging in order to get an updated Ogre.log each time I run the application?.

tuan kuranes

27-06-2008 09:13:24

How could I activate the Ogre logging in order to get an updated Ogre.log each time I run the application?.
read plsm2.log.

Buckcherry

27-06-2008 13:51:25

Here I post the plsm2.log generated:

14:50:38: Creating resource group General
14:50:38: Creating resource group Internal
14:50:38: Creating resource group Autodetect
14:50:38: SceneManagerFactory for type 'DefaultSceneManager' registered.
14:50:38: Registering ResourceManager for type Material
14:50:38: Registering ResourceManager for type Mesh
14:50:38: Registering ResourceManager for type Skeleton
14:50:38: MovableObjectFactory for type 'ParticleSystem' registered.
14:50:38: OverlayElementFactory for type Panel registered.
14:50:38: OverlayElementFactory for type BorderPanel registered.
14:50:38: OverlayElementFactory for type TextArea registered.
14:50:38: Registering ResourceManager for type Font
14:50:38: ArchiveFactory for archive type FileSystem registered.
14:50:38: ArchiveFactory for archive type Zip registered.
14:50:38: FreeImage version: 3.10.0
14:50:38: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
14:50:38: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
14:50:38: DDS codec registering
14:50:38: Registering ResourceManager for type HighLevelGpuProgram
14:50:38: Registering ResourceManager for type Compositor
14:50:38: MovableObjectFactory for type 'Entity' registered.
14:50:38: MovableObjectFactory for type 'Light' registered.
14:50:38: MovableObjectFactory for type 'BillboardSet' registered.
14:50:38: MovableObjectFactory for type 'ManualObject' registered.
14:50:38: MovableObjectFactory for type 'BillboardChain' registered.
14:50:38: MovableObjectFactory for type 'RibbonTrail' registered.
14:50:38: Loading library .\RenderSystem_Direct3D9
14:50:38: Installing plugin: D3D9 RenderSystem
14:50:38: D3D9 : Direct3D9 Rendering Subsystem created.
14:50:39: D3D9: Driver Detection Starts
14:50:39: D3D9: Driver Detection Ends
14:50:39: Plugin successfully installed
14:50:39: Loading library .\RenderSystem_GL
14:50:39: Installing plugin: GL RenderSystem
14:50:39: OpenGL Rendering Subsystem created.
14:50:39: Plugin successfully installed
14:50:39: Loading library .\Plugin_ParticleFX
14:50:39: Installing plugin: ParticleFX
14:50:39: Particle Emitter Type 'Point' registered
14:50:39: Particle Emitter Type 'Box' registered
14:50:39: Particle Emitter Type 'Ellipsoid' registered
14:50:39: Particle Emitter Type 'Cylinder' registered
14:50:39: Particle Emitter Type 'Ring' registered
14:50:39: Particle Emitter Type 'HollowEllipsoid' registered
14:50:39: Particle Affector Type 'LinearForce' registered
14:50:39: Particle Affector Type 'ColourFader' registered
14:50:39: Particle Affector Type 'ColourFader2' registered
14:50:39: Particle Affector Type 'ColourImage' registered
14:50:39: Particle Affector Type 'ColourInterpolator' registered
14:50:39: Particle Affector Type 'Scaler' registered
14:50:39: Particle Affector Type 'Rotator' registered
14:50:39: Particle Affector Type 'DirectionRandomiser' registered
14:50:39: Particle Affector Type 'DeflectorPlane' registered
14:50:39: Plugin successfully installed
14:50:39: Loading library .\Plugin_BSPSceneManager
14:50:39: Installing plugin: BSP Scene Manager
14:50:39: Plugin successfully installed
14:50:39: Loading library .\Plugin_OctreeSceneManager
14:50:39: Installing plugin: Octree & Terrain Scene Manager
14:50:39: Plugin successfully installed
14:50:39: Loading library .\Plugin_CgProgramManager
14:50:39: Installing plugin: Cg Program Manager
14:50:39: Plugin successfully installed
14:50:39: Loading library .\Plugin_PagingLandScapeSceneManager2
14:50:39: SceneManagerFactory for type 'PagingLandScapeSceneManager' registered.
14:50:39: *-*-* OGRE Initialising
14:50:39: *-*-* Version 1.4.7 (Eihort)
14:50:39: Creating resource group Bootstrap
14:50:39: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
14:50:39: Creating resource group ET
14:50:39: Added resource location '../../media/ET' of type 'FileSystem' to resource group 'ET'
14:50:39: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/skins' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/skins/qgui' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/skins/qgui_demo' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/trees' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/terrains' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/grass' of type 'FileSystem' to resource group 'General'
14:50:39: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
14:50:39: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
14:50:39: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
14:50:39: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
14:50:39: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
14:50:39: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
14:50:39: Creating resource group PLSM2
14:50:39: Added resource location '../../media/PLSM_Media' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/terrains' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/terrains/alpes' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/terrains/hf129_3' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/terrains/TsmTerrain' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/materials' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/materials/programs' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/materials/scripts' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/materials/textures' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/models' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/overlays' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: Added resource location '../../media/PLSM_Media/gui' of type 'FileSystem' to resource group 'PLSM2'
14:50:39: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
14:50:39: D3D9 : RenderSystem Option: Anti aliasing = None
14:50:39: D3D9 : RenderSystem Option: Floating-point mode = Fastest
14:50:39: D3D9 : RenderSystem Option: Full Screen = No
14:50:39: D3D9 : RenderSystem Option: Rendering Device = ATI MOBILITY RADEON 9700 SE
14:50:39: D3D9 : RenderSystem Option: VSync = No
14:50:39: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
14:50:40: CPU Identifier & Features
14:50:40: -------------------------
14:50:40: * CPU ID: GenuineIntel: Intel(R) Pentium(R) M processor 1.60GHz
14:50:40: * SSE: yes
14:50:40: * SSE2: yes
14:50:40: * SSE3: no
14:50:40: * MMX: yes
14:50:40: * MMXEXT: yes
14:50:40: * 3DNOW: no
14:50:40: * 3DNOWEXT: no
14:50:40: * CMOV: yes
14:50:40: * TSC: yes
14:50:40: * FPU: yes
14:50:40: * PRO: no
14:50:40: * HT: no
14:50:40: -------------------------
14:50:40: D3D9 : Subsystem Initialising
14:50:40: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
14:50:40: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
14:50:40: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
14:50:40: Registering ResourceManager for type Texture
14:50:40: Registering ResourceManager for type GpuProgram
14:50:40: RenderSystem capabilities
14:50:40: -------------------------
14:50:40: * Hardware generation of mipmaps: yes
14:50:40: * Texture blending: yes
14:50:40: * Anisotropic texture filtering: yes
14:50:40: * Dot product texture operation: yes
14:50:40: * Cube mapping: yes
14:50:40: * Hardware stencil buffer: yes
14:50:40: - Stencil depth: 8
14:50:40: - Two sided stencil support: yes
14:50:40: - Wrap stencil values: yes
14:50:40: * Hardware vertex / index buffers: yes
14:50:40: * Vertex programs: yes
14:50:40: - Max vertex program version: vs_2_0
14:50:40: * Fragment programs: yes
14:50:40: - Max fragment program version: ps_2_0
14:50:40: * Texture Compression: yes
14:50:40: - DXT: yes
14:50:40: - VTC: no
14:50:40: * Scissor Rectangle: yes
14:50:40: * Hardware Occlusion Query: yes
14:50:40: * User clip planes: yes
14:50:40: * VET_UBYTE4 vertex element type: yes
14:50:40: * Infinite far plane projection: yes
14:50:40: * Hardware render-to-texture: yes
14:50:40: * Floating point textures: yes
14:50:40: * Non-power-of-two textures: yes (limited)
14:50:40: * Volume textures: yes
14:50:40: * Multiple Render Targets: 4
14:50:40: * Point Sprites: yes
14:50:40: * Extended point parameters: yes
14:50:40: * Max Point Size: 256
14:50:40: * Vertex texture fetch: no
14:50:40: ***************************************
14:50:40: *** D3D9 : Subsystem Initialised OK ***
14:50:40: ***************************************
14:50:40: ResourceBackgroundQueue - threading disabled
14:50:40: Particle Renderer Type 'billboard' registered
14:50:40: SceneManagerFactory for type 'BspSceneManager' registered.
14:50:40: Registering ResourceManager for type BspLevel
14:50:40: SceneManagerFactory for type 'OctreeSceneManager' registered.
14:50:40: SceneManagerFactory for type 'TerrainSceneManager' registered.
14:50:40: MovableObjectFactory for type 'PagingLandScapeMeshDecal' registered.
14:50:40: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
14:50:40: Initialising resource group Bootstrap
14:50:40: Parsing scripts for resource group Bootstrap
14:50:40: Parsing script OgreCore.material
14:50:40: Parsing script OgreProfiler.material
14:50:40: Parsing script Ogre.fontdef
14:50:40: Parsing script OgreDebugPanel.overlay
14:50:40: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
14:50:40: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
14:50:40: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
14:50:40: Font BlueHighwayusing texture size 512x512
14:50:40: Info: Freetype returned null for character 127 in font BlueHighway
14:50:40: Info: Freetype returned null for character 128 in font BlueHighway
14:50:40: Info: Freetype returned null for character 129 in font BlueHighway
14:50:40: Info: Freetype returned null for character 130 in font BlueHighway
14:50:40: Info: Freetype returned null for character 131 in font BlueHighway
14:50:40: Info: Freetype returned null for character 132 in font BlueHighway
14:50:40: Info: Freetype returned null for character 133 in font BlueHighway
14:50:40: Info: Freetype returned null for character 134 in font BlueHighway
14:50:40: Info: Freetype returned null for character 135 in font BlueHighway
14:50:40: Info: Freetype returned null for character 136 in font BlueHighway
14:50:40: Info: Freetype returned null for character 137 in font BlueHighway
14:50:40: Info: Freetype returned null for character 138 in font BlueHighway
14:50:40: Info: Freetype returned null for character 139 in font BlueHighway
14:50:40: Info: Freetype returned null for character 140 in font BlueHighway
14:50:40: Info: Freetype returned null for character 141 in font BlueHighway
14:50:40: Info: Freetype returned null for character 142 in font BlueHighway
14:50:40: Info: Freetype returned null for character 143 in font BlueHighway
14:50:40: Info: Freetype returned null for character 144 in font BlueHighway
14:50:40: Info: Freetype returned null for character 145 in font BlueHighway
14:50:40: Info: Freetype returned null for character 146 in font BlueHighway
14:50:40: Info: Freetype returned null for character 147 in font BlueHighway
14:50:40: Info: Freetype returned null for character 148 in font BlueHighway
14:50:40: Info: Freetype returned null for character 149 in font BlueHighway
14:50:40: Info: Freetype returned null for character 150 in font BlueHighway
14:50:40: Info: Freetype returned null for character 151 in font BlueHighway
14:50:40: Info: Freetype returned null for character 152 in font BlueHighway
14:50:40: Info: Freetype returned null for character 153 in font BlueHighway
14:50:40: Info: Freetype returned null for character 154 in font BlueHighway
14:50:40: Info: Freetype returned null for character 155 in font BlueHighway
14:50:40: Info: Freetype returned null for character 156 in font BlueHighway
14:50:40: Info: Freetype returned null for character 157 in font BlueHighway
14:50:40: Info: Freetype returned null for character 158 in font BlueHighway
14:50:40: Info: Freetype returned null for character 159 in font BlueHighway
14:50:40: Info: Freetype returned null for character 160 in font BlueHighway
14:50:40: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
14:50:40: D3D9 : ***** Dimensions altered by the render system
14:50:40: D3D9 : ***** Source image dimensions : 685x256
14:50:40: D3D9 : ***** Texture dimensions : 1024x256
14:50:40: Texture: Lords_firma.png: Loading 1 faces(PF_A8R8G8B8,685x256x1) with 10 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x256x1.
14:50:40: Parsing script OgreLoadingPanel.overlay
14:50:40: Finished parsing scripts for resource group Bootstrap
14:50:40: Initialising resource group General
14:50:40: Parsing scripts for resource group General
14:50:40: Parsing script Examples.program
14:50:40: Parsing script StdQuad_vp.program
14:50:40: Parsing script deferred.glsl.program
14:50:40: Parsing script deferred.hlsl.program
14:50:40: Parsing script deferred_post_debug.glsl.program
14:50:40: Parsing script deferred_post_debug.hlsl.program
14:50:40: Parsing script deferred_post_minilight.glsl.program
14:50:40: Parsing script deferred_post_minilight.hlsl.program
14:50:40: Parsing script deferred_post_multipass.glsl.program
14:50:40: Parsing script deferred_post_multipass.hlsl.program
14:50:40: Parsing script deferred_post_onepass.glsl.program
14:50:40: Parsing script deferred_post_onepass.hlsl.program
14:50:40: Parsing script arbol.material
14:50:40: Parsing script armour1.material
14:50:40: Parsing script BlackAndWhite.material
14:50:40: Parsing script Bloom.material
14:50:40: Parsing script casco1.material
14:50:40: Parsing script Decal.material
14:50:40: Parsing script DepthShadowmap.material
14:50:40: Parsing script diablo.material
14:50:40: Parsing script diablo2.material
14:50:40: Parsing script DOF.material
14:50:40: Parsing script dwarf.material
14:50:40: Parsing script Edificio1.material
14:50:40: Parsing script Embossed.material
14:50:40: Parsing script escudo3.material
14:50:40: Parsing script escudo4.material
14:50:40: Parsing script espada.material
14:50:40: Parsing script espada2.material
14:50:40: Parsing script espada3.material
14:50:40: Parsing script Example-DynTex.material
14:50:40: Parsing script Example-Water.material
14:50:40: Parsing script Example.material
14:50:40: Parsing script Examples-Advanced.material
14:50:40: Parsing script facial.material
14:50:40: Parsing script Glass.material
14:50:40: Parsing script guerrero.material
14:50:40: Parsing script hacha.material
14:50:40: Parsing script hdr.material
14:50:41: Parsing script HeatVision.material
14:50:41: Parsing script Hurt.material
14:50:41: Parsing script instancing.material
14:50:41: Parsing script Invert.material
14:50:41: Parsing script knight.material
14:50:41: Parsing script Laplace.material
14:50:41: Parsing script lizard.material
14:50:41: Parsing script moneda.material
14:50:41: Parsing script MotionBlur.material
14:50:41: Parsing script nightelf.material
14:50:41: Parsing script Ocean.material
14:50:41: Parsing script OffsetMapping.material
14:50:41: Parsing script Ogre.material
14:50:41: Parsing script OldMovie.material
14:50:41: Parsing script OldTV.material
14:50:41: Parsing script OverlayGUI.material
14:50:41: Parsing script OverlayGUI2.material
14:50:41: Parsing script pads1.material
14:50:41: Parsing script pads1b.material
14:50:41: Parsing script PLC_oak101.material
14:50:41: Parsing script Posterize.material
14:50:41: Parsing script RZR-002.material
14:50:41: Parsing script SharpenEdges.material
14:50:41: Parsing script smoke.material
14:50:41: Parsing script TERRENO.material
14:50:41: Parsing script Tiling.material
14:50:41: Parsing script VarianceShadowmap.material
14:50:41: Parsing script warlock.material
14:50:41: Parsing script zombie.material
14:50:41: Parsing script skinTemplate.material
14:50:41: Parsing script deferred.material
14:50:41: Parsing script deferreddemo.material
14:50:41: Parsing script deferred_post_debug.material
14:50:41: Parsing script deferred_post_minilight.material
14:50:41: Parsing script deferred_post_multipass.material
14:50:41: Parsing script deferred_post_onepass.material
14:50:41: Parsing script 3d-diggers_fir.material
14:50:41: Parsing script farn1.mesh.material
14:50:41: Parsing script farn2.mesh.material
14:50:41: Parsing script plant1.mesh.material
14:50:41: Parsing script plant2.mesh.material
14:50:41: Parsing script shrooms.material
14:50:41: Parsing script skybox.material
14:50:41: Parsing script tree.material
14:50:41: Parsing script grass.material
14:50:41: Parsing script RomanBath.material
14:50:41: Parsing script Examples.compositor
14:50:41: Parsing script acmesa.fontdef
14:50:41: Parsing script micross.fontdef
14:50:41: Parsing script sample.fontdef
14:50:41: Parsing script emitted_emitter.particle
14:50:41: Parsing script Example-Water.particle
14:50:41: Parsing script Example.particle
14:50:41: Parsing script smoke.particle
14:50:41: Parsing script Compositor.overlay
14:50:41: Parsing script DP3.overlay
14:50:41: Parsing script Example-CubeMapping.overlay
14:50:41: Parsing script Example-DynTex.overlay
14:50:41: Parsing script Example-Water.overlay
14:50:41: Parsing script Shadows.overlay
14:50:41: Finished parsing scripts for resource group General
14:50:41: Initialising resource group PLSM2
14:50:41: Parsing scripts for resource group PLSM2
14:50:41: Parsing script DecompressShadowReceiver.program
14:50:41: Parsing script DecompressSplat.program
14:50:41: Parsing script DecompressSplatShader.program
14:50:41: Parsing script DecompressVertex.program
14:50:41: Parsing script PLShaders.program
14:50:41: Parsing script ShadowReceiver.program
14:50:41: Parsing script Splat.program
14:50:41: Parsing script SplatShader.program
14:50:41: Parsing script BaseTexture.material
14:50:41: Parsing script colors.material
14:50:41: Parsing script MapEditor-Circle.material
14:50:41: Parsing script MyTree.material
14:50:41: Parsing script PagingLandScape.material
14:50:41: Parsing script PagingLandScapeTemplate.material
14:50:41: Parsing script PLSplattingShaderLit.material
14:50:41: Parsing script PLSplattingShaderLitDecompress.material
14:50:41: Parsing script PLSplattingShaderUnlit.material
14:50:41: Parsing script PLSplattingShaderUnlitDecompress.material
14:50:41: Parsing script Splatting.material
14:50:41: Parsing script Splatting2.material
14:50:41: Parsing script Splatting3.material
14:50:41: Parsing script Splatting4.material
14:50:41: Parsing script Splatting5.material
14:50:41: Parsing script Splatting6.material
14:50:41: Parsing script Splatting7.material
14:50:41: Parsing script SplattingShader.material
14:50:41: Parsing script DebugOverlay.overlay
14:50:41: Parsing script PagingLandScape.overlay
14:50:41: Parsing script PagingLandScape2.overlay
14:50:41: Finished parsing scripts for resource group PLSM2
14:50:41: Initialising resource group PLSM2
14:50:41: Added resource location '../../media/PLSM_Media/terrains/terragen16bits' of type 'FileSystem' to resource group 'PLSM2'
14:50:41: Initialising resource group PLSM2


Any idea?

tuan kuranes

27-06-2008 14:05:03

is it the plsm2.log from a debug mode run ?
There should be more info in the debug mode one.

Buckcherry

27-06-2008 14:08:47

Nop. It's in release mode.

I am going to try now in debug mode...


Anyway, in release mode, the application stops at line 422 from OgrePagingLandscapetexture.cpp:

Material::TechniqueIterator tIt = material->getTechniqueIterator ();

Buckcherry

27-06-2008 14:13:59

I have just run the Demo_PagingLandscape2.exe in Debug mode and I have the following assertion:

Initialising resource group PLSM2
Added resource location '../../media/PLSM_Media/terrains/terragen16bits' of type
'FileSystem' to resource group 'PLSM2'
Initialising resource group PLSM2
Assertion failed: !material.isNull() && String(mMaterialBaseName + " Must exists
in the" + opt->groupName + "group").c_str (), file ..\src\OgrePagingLandScapeTe
xture.cpp, line 397


What is wrong?

tuan kuranes

27-06-2008 14:16:14

Seems it cannot find InstantBaseEdit material

Can you check if you have a InstantBase.material ? or perhaps it's in Base.material ?

Buckcherry

27-06-2008 14:17:09

I have checked that and I do not have the InstantBaseEdit material.

My BaseTexture.material is:

material Base
{
lod_distances 280000
technique
{
lod_index 0
pass
{
// Base Pass
ambient 1.0 1.0 1.0
diffuse 1.0 1.0 1.0
texture_unit
{
// Base Texture
texture Base
tex_address_mode clamp
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
scale 0.03 0.03
}
}
}
technique
{
lod_index 1
pass
{
texture_unit
{
texture Base
tex_address_mode clamp
tex_coord_set 0
}
}
}
}

material Base2
{
lod_distances 280000
technique
{
lod_index 0
pass
{
// Base Pass
ambient 1.0 1.0 1.0
diffuse 1.0 1.0 1.0
texture_unit
{
// Base Texture
texture Base
tex_address_mode clamp
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
scale 0.03 0.03
}
}
}
technique
{
lod_index 1
pass
{
texture_unit
{
texture Base
tex_address_mode clamp
tex_coord_set 0
}
}
}
}


material InstantBaseDecompress
{
//lod_distances 28000
technique
{
//lod_index 0
pass
{
vertex_program_ref DecompressVertex/VP
{
param_named_auto worldViewProj worldviewproj_matrix
//param_named_auto lightDirection light_direction_object_space 0
//param_named_auto ambientLight ambient_light_colour

// compressionSettings are;
// world to texture scalex
// scaley
// world to texture scalez
// MorphFactor
param_named compressionSettings float4 90000.0 1.37331 90000.0 0.0
/// 90000 / 65535

// First is Distance to Detail Texture alpha appareance
param_named FogSettings float4 2000.0 0.0 0.0 0.0
}

shadow_receiver_vertex_program_ref DecompressVertexShadowReceiver/VP
{
param_named_auto worldViewProj worldviewproj_matrix
param_named_auto worldMatrix world_matrix
param_named_auto texViewProjMatrix texture_viewproj_matrix

// Config settings are;
// x scale
// y (height) start
// z scale
//
param_named compressionSettings float4 90000.0 1.37331 90000.0 50000.0
}
texture_unit
{
// Base texture
texture Base
tex_address_mode clamp
//scale 0.03 0.03
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
scale 0.3 0.3
}
texture_unit
{
// light texture
texture Light
colour_op modulate
//tex_address_mode mirror
//scale 0.2 0.2
}
}
}
technique
{
//lod_index 0
pass
{
vertex_program_ref DecompressVertexLighted/VP
{
param_named_auto worldViewProj worldviewproj_matrix
//param_named_auto lightDirection light_direction_object_space 0
//param_named_auto ambientLight ambient_light_colour

// compressionSettings are;
// world to texture scalex
// scaley
// world to texture scalez
// MorphFactor
param_named compressionSettings float4 90000.0 1.37331 90000.0 0.0
/// 90000 / 65535

// First is Distance to Detail Texture alpha appareance
param_named FogSettings float4 1000.0 0.0 0.0 0.0
}

shadow_receiver_vertex_program_ref DecompressVertexShadowReceiver/VP
{
param_named_auto worldViewProj worldviewproj_matrix
param_named_auto worldMatrix world_matrix
param_named_auto texViewProjMatrix texture_viewproj_matrix

// Config settings are;
// x scale
// y (height) start
// z scale
//
param_named compressionSettings float4 90000.0 1.37331 90000.0 50000.0
}
fragment_program_ref DecompressVertexLighted/FP
{

//param_named_auto lightDirection light_direction_object_space 0
//param_named_auto ambientLight ambient_light_colour
}

texture_unit
{
// Base texture
texture Base
tex_address_mode clamp
//scale 0.03 0.03
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
//scale 0.3 0.3
}
}
}
}


material InstantBaseShadowedDecompress
{
technique
{
pass
{
vertex_program_ref DecompressVertexLighted/VP
{
param_named_auto worldViewProj worldviewproj_matrix
//param_named_auto lightDirection light_direction_object_space 0
//param_named_auto ambientLight ambient_light_colour

// compressionSettings are;
// world to texture scalex
// scaley
// world to texture scalez
// MorphFactor
param_named compressionSettings float4 90000.0 1.37331 90000.0 0.0
/// 90000 / 65535

// First is Distance to Detail Texture alpha appareance
param_named FogSettings float4 1000.0 0.0 0.0 0.0
}

shadow_receiver_vertex_program_ref DecompressVertexShadowReceiver/VP
{
param_named_auto worldViewProj worldviewproj_matrix
param_named_auto worldMatrix world_matrix
param_named_auto texViewProjMatrix texture_viewproj_matrix

// Config settings are;
// x scale
// y (height) start
// z scale
//
param_named compressionSettings float4 90000.0 1.37331 90000.0 50000.0
}
fragment_program_ref DecompressVertexShadowed/FP
{
// angle pos/neg ? ?
param_named HorizonSettings float4 0.0 0.0 0.0 0.0
//param_named_auto lightDirection light_direction_object_space 0
//param_named_auto ambientLight ambient_light_colour
}

texture_unit
{
// Base texture
texture Base
tex_address_mode clamp
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
}
texture_unit
{
// Horizon texture
texture Horizon
}
}
}
}
material InstantBase
{
technique
{
pass
{
texture_unit
{
// Base texture
texture Base
tex_address_mode clamp
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
scale 0.2 0.2
}
}
}
}

material InstantBaseShadowed
{
technique
{
pass
{
texture_unit
{
// Base texture
texture Base
tex_address_mode clamp
}
texture_unit
{
// Noise texture
texture Detail3.jpg
tex_address_mode mirror
scale 0.2 0.2
}
texture_unit
{
// light texture
texture Light 2d unlimited
colour_op modulate
}
}
}
}

Buckcherry

27-06-2008 14:32:39

I have checked in my hard drive and in the SVN repository and I have not found any InstantBaseEdit material.

Do you have it in some place to download it?.

tuan kuranes

27-06-2008 14:34:26

then try with TextureModifiable=true in the teraggen cfg file and with instantbase texture format

Buckcherry

27-06-2008 14:56:16

I have changed that, so my terragen16bits.cfg is:

GroupName=PLSM2
LandScapeFileName=terragen16bits
FileSystem=LandScapeFileName

Width=2
Height=2

ScaleX=180000
ScaleY=30000
ScaleZ=180000

Deformable=yes
TextureModifiable=true
VertexCompression=yes
VertexProgramMorph=yes

MaxPixelError=8

VertexNormals=no

NumTextureFormatSupported=18

TextureFormatSupported0=Base
TextureFormatSupported1=Base2
TextureFormatSupported2=InstantBase
TextureFormatSupported3=Splatting
TextureFormatSupported4=Splatting2
TextureFormatSupported5=Splatting4
TextureFormatSupported6=Splatting6
TextureFormatSupported7=Splatting7
TextureFormatSupported8=Base
TextureFormatSupported9=Base2
TextureFormatSupported10=InstantBaseEdit
TextureFormatSupported11=Splatting3
TextureFormatSupported12=Splatting5
TextureFormatSupported13=SplattingShader

TextureStretchFactor=2
#TextureFormat=Splatting
TextureFormat=InstantBase

MaterialHeight1=15
MaterialHeight2=35

NumMatHeightSplat=4

SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png

VisibleRenderables=80
NumRenderablesLoading=100

MaxAdjacentPages=3
MaxPreloadedPages=4

HorizonVisibilityComputing=yes

LightMap=yes
Sunx=0.0f
Suny=0.88f
Sunz=0.47f
Ambient=0.5f
Diffuse=0.5f
Blur=0.0f

# where to put camera on load.
BaseCameraViewpoint.x=111000.0f
BaseCameraViewpoint.y=20000.0f
BaseCameraViewpoint.z=-13000.0f

Baselookat.x=0.0f
Baselookat.y=15000.0f
Baselookat.z=0.0f


But I get a Debug Assertion in a dialog window that says:

Debug Assertion Failed!

Program: ...
File: C:\Program Files\Microsoft Visual Studio 8\VC\include\vector
Line: 756

Expression: vector subscript out of range

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)


Any idea?

tuan kuranes

27-06-2008 15:01:22

Press Retry to debug the application

go up the stack until you are in PLSM2 code and report that line.

Buckcherry

27-06-2008 15:07:16

I have press "Retry" and then "Continue" and again the same, but the program does not stop inside the PLSM2 sourcode.

The application stops at line 24 from stdthrow.cpp:

::_CrtDbgBreak();

Continuing clicking on "Retry" and "Continue" the application stops again at line 65 from dbghook.cpp:

_debugger_hook_dummy = 0;

Any idea?

Buckcherry

27-06-2008 15:13:12

The debug assertion appears after the application executes these actions (last lines of plsm2.log):

Initialising resource group PLSM2
Added resource location '../../media/PLSM_Media/terrains/terragen16bits' of type
'FileSystem' to resource group 'PLSM2'
Initialising resource group PLSM2
Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
Texture: cursor.png: Loading 1 faces(PF_R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x32x1.
Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
Texture: terragen16bits.Base.1.0.png: Loading 1 faces(PF_R8G8B8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
Texture: Detail3.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Texture: terragen16bits.Light.1.0.png: Loading 1 faces(PF_L8,1024x1024x1) with 10 generated mipmaps from Image. Internal format is PF_L8,1024x1024x1.

tuan kuranes

27-06-2008 15:14:50

:_CrtDbgBreak();

That's where you have to go up in the stack.
using visual studio spawn a 'call stack window' and you'll be able to select any stack position and see where it break.

Buckcherry

27-06-2008 15:29:41

In the call stack windows only appears this:

msvcp80d.dll!std::_Debug_message(const wchar_t * message=0x0d6228fc, const wchar_t * file=0x0d61edc0, unsigned int line=756) Line 24 C++
Plugin_PagingLandScapeSceneManager2_d.dll!0d5cdd83()
[Not symbols have been loaded for Plugin_PagingLandScapeSceneManager2_d.dll]
Plugin_PagingLandScapeSceneManager2_d.dll!0d5c3a5a()

Buckcherry

27-06-2008 15:47:18

I am going to try to include the Plugin_PagingLandscapeSceneManager2_d.lib as input in the Linker options of the Demo_PagingLandscape2 project.

tuan kuranes

27-06-2008 15:48:21

you'll have to move Plugin_PagingLandScapeSceneManager2_d.pdb from plsm2 lib directory to where the Dll is so that you have access to the internals.

Buckcherry

27-06-2008 16:16:28

Ok. Now the application stops at Line 1158 from OgrePagingLandscapeOctreeSceneManager.cpp:

mPagingLandScapeOctree->traversal(RegisterCameraTraversal(c), 0);

Any idea?

Maxi

27-06-2008 17:41:37

Could be this bug.

Buckcherry

27-06-2008 20:55:13

In the definitions of the preprocessor settings I have set this:

WIN32;_DEBUG;_WINDOWS;_PLSM_OCTREE

I have compiled the plug-in and the demo with that option and now it crashes in another point.

Again, it does not show the line where it crashes.

But is seems to be something related to the line 291 from OgrePagingLandscapeTexture.cpp:

mTextures[channel] = texMgr->getByName (texName);

Any idea?

Buckcherry

29-06-2008 10:46:52

Changing the TextureFormat from InstantBase to Splatting it does not crash.

Do you know why?.

Maxi

30-06-2008 19:06:00

Just a guess:
Different texture formats use different image files for textureing (alpha*.png, base*.png, couverage*.png).
Perhapse the file needed for InstantBase is missing.

tuan kuranes

01-07-2008 11:16:01

mTextures[channel] = texMgr->getByName (texName);
You miss some "terragen16bits.Base.0.0.png" and al files.
Could you check that Mapsplitter didn't split terragen ?



Once you manage to display terragen and instantbase add your modifs to the demo to show painting in "myPagingLandScapeFrameListener::deform "

std::vector<Real> rgba;
unsigned int width=10, height=10;

Ogre::Real *brush = new Ogre::Real[100];
rgba.reserve(4);
rgba.resize(4);

rgba[0] = 1.0f;
rgba[1] = 0.0f;
rgba[2] = 0.0f;
rgba[3] = 1.0f;

mScnMgr->setOption("setPaintChannelValues", &rgba);

for (int i=0; i<100; i++)
{
brush[i]=1.0f;
}
mScnMgr->setOption("BrushArrayHeight", &height);
mScnMgr->setOption("BrushArrayWidth", &width);
mScnMgr->setOption("BrushArray", brush);

// MANDATORY IN THE DEMO CODE AS it modify brushscale for each map.
Ogre::Real scale = 1.0f;
mScnMgr->setOption("BrushScale", brush);

mScnMgr->setOption( "PaintCenter",
&(it->worldFragment->singleIntersection) );

Buckcherry

01-07-2008 21:03:05

I have run again the MapSplitter tool and these are the files it has generated:

terragen16bits.0.0.png
terragen16bits.0.1.png
terragen16bits.1.0.png
terragen16bits.1.1.png
terragen16bits.Alpha.0.0.0.png
terragen16bits.Alpha.0.0.1.png
terragen16bits.Alpha.0.1.0.png
terragen16bits.Alpha.0.1.1.png
terragen16bits.Alpha.1.0.0.png
terragen16bits.Alpha.1.0.1.png
terragen16bits.Alpha.1.1.0.png
terragen16bits.Alpha.1.1.1.png
terragen16bits.Alpha.2.0.0.png
terragen16bits.Alpha.2.0.1.png
terragen16bits.Alpha.2.1.0.png
terragen16bits.Alpha.2.1.1.png
terragen16bits.Alpha.3.0.0.png
terragen16bits.Alpha.3.0.1.png
terragen16bits.Alpha.3.1.0.png
terragen16bits.Alpha.3.1.1.png
terragen16bits.Base.0.0.png
terragen16bits.Base.0.1.png
terragen16bits.Base.1.0.png
terragen16bits.Base.1.1.png
terragen16bits.Coverage.0.0.0.png
terragen16bits.Coverage.0.0.1.png
terragen16bits.Coverage.0.1.0.png
terragen16bits.Coverage.0.1.1.png
terragen16bits.Light.0.0.png
terragen16bits.Light.0.1.png
terragen16bits.Light.1.0.png
terragen16bits.Light.1.1.png
terragen16bits.Small.png


Is there any file missing?.

tuan kuranes

02-07-2008 09:40:24

Is there any file missing?.
No.

Now it should work. you should be able to load terragen, as I can here with vanilla SVN and datasrcs map. Using code, above it paints terrain.

Buckcherry

02-07-2008 18:36:50

Could you possibly post your cfg files for terragen16bits here, please?

tuan kuranes

02-07-2008 18:44:14

vanilla SVN files. no modification at all.

Buckcherry

03-07-2008 19:59:21

I have deleted everything and I have started from 0.

I have created a new project and added the files download from the SVN for the demo.

I am using the libs generated using the _PLSM_OCTREE option and after all of this my application crashes on line 213 of paginglandscapeapplication.h:

mCamera = mSceneMgr->createCamera( "PlayerCam" );

I though it was because the bug was commented in this thread. But I am using the _PLSM_OCTREE option, so it should not appear...

I am confused...

Any idea?

tuan kuranes

04-07-2008 13:26:02

I'd rather prefer you stay on vanilla SVN + terragen working first.
Did it worked ?

Buckcherry

04-07-2008 15:08:01

I have done a SVN Checkout again to this:

https://ogreaddons.svn.sourceforge.net/svnroot/ogreaddons/trunk/paginglandscape/

Afert this I have compiled the plsm2_vc8 solution.

Then, I have run the Demo_PagingLandscape2 and the application crashes on line 1158 from OgrePagingLandscapeOctreeSceneManager.cpp:

mPagingLandScapeOctree->traversal(RegisterCameraTraversal(c), 0);

It seems to be the bug of the _PLSM_OCTREE.

Do I try to compile everything again setting _PLSM_OCTREE in the preprocessor settings?.

tuan kuranes

04-07-2008 15:15:22

compile without _PLSM_OCTREE
Is _PLSM_OCTREE defined in vanilla SVN ?

Buckcherry

04-07-2008 15:28:43

It is NOT defined in vanilla SVN.

I have compiled WITHOUT that option.

Do I try with _PLSM_OCTREE?

tuan kuranes

04-07-2008 16:20:56

traversal is active only if "_PLSM_OCTREE" is defined, that's strange

Buckcherry

04-07-2008 16:35:33

Compiling the plsm2_vc8 solution defining _PLSM_OCTREE in the preprocessor settings the application crashes on Line 185 from paginglandscape2application.h:

mCamera = mSceneMgr->createCamera( "PlayerCam" );

Maybe I am defining the _PLSM_OCTREE where I shouldn't, or I didn't realised about another _PLSM_OCTREE in another place...

Where should I have to define or not define the _PLSM_OCTREE?

tuan kuranes

04-07-2008 16:44:08

_PLSM_OCTREE should not be defined, in project preprocessor settings or anywhere in code. (no "#define _PLSM_OCTREE")

Buckcherry

04-07-2008 21:52:22

In the SVN files I have there is not any #define _PLSM_OCTREE.

Is your code working?

tuan kuranes

05-07-2008 10:14:14

Using Vanilla SVN, no crash and deformation works out of the box.
Then using small code posted above in the demo, painting works.

Buckcherry

05-07-2008 10:45:24

I have downloaded the sourcecode from:

https://ogreaddons.svn.sourceforge.net/svnroot/ogreaddons/trunk/paginglandscape/

using TortoiseSVN.

Is that correct?.

tuan kuranes

05-07-2008 11:59:48

yes

Buckcherry

05-07-2008 16:54:27

Well, finally I got that the application runs...

Now I will try to change the sourcedode to be able to change the texture dinamically...

But I had to set the _PLSM_OCTREE in the preprocessor settings, without that the application crashes.

Buckcherry

05-07-2008 20:56:45

I have tried the code you said and now I can paint the terrain with a colour (in the example, blue colour).

But it was working for me befor, the problem I have is how I can paint the terrain with a texture, i.e. splatting_sand.png?.

tuan kuranes

06-07-2008 13:30:10

sorry misunderstood the question !

What's the problem ?

Filling up the brush channel value with those coming from your "paint texture" is up to you.

Buckcherry

06-07-2008 19:28:27

How can I fill up the brush channel with a texture?.

Could you possibly post an example piece of code for that, please?

tuan kuranes

07-07-2008 12:22:47

Actually it's not optimized at all :


std::vector<Real> rgba;
unsigned int width=1, height=1;
Ogre::Real brush;

rgba.reserve(4);
rgba.resize(4);

// say image is RGBA and 10 x 10
unsigned char* imgData = myImage.getData();
for (int i=0; i<10; i++)
{
for (int j=0; j<10; j++)
{
rgba[0] = *(imgData + i*10 +j + 0);
rgba[1] = *(imgData + i*10 +j + 1);
rgba[2] = *(imgData + i*10 +j + 2);
rgba[3] = *(imgData + i*10 +j + 3);

mSceneMgr->setOption("setPaintChannelValues", &rgba);

brush=1.0f;

mSceneMgr->setOption("BrushArrayHeight", &height);
mSceneMgr->setOption("BrushArrayWidth", &width);
mSceneMgr->setOption("BrushArray", &brush);

mSceneMgr->setOption( "PaintCenter", &(mCursorPos + Vector3(i,0,j));
}
}



Patching PLSM2 to add a 'brushchannelArray' set/getOption would be best, and really easy.

It's really just about adding the use of the RGBA channel in 'PagingLandScapeSceneManager::paint' and "PagingLandScapeSceneManager::setOption"

Feel free to add it and provide a patch, I'll help if you're stuck


You can/should use 'Decal' instead if your image has to be scaled independently to terrain. Search for 'Decal' in this forum, wiki, demo code.

Buckcherry

07-07-2008 21:18:30

I have defined the image as follows:

Image myImage;
myImage.load("splatting_snow.png", "PLSM2");


The size of splatting_snow.png is 256 x 256 pixels.

But when I click on the terrain, it does strange things...

Moreover, if I set the TextureFormat to Splatting rather than InstantBase, the application crashes.

So, do I have to use InstantBase for this?.

It's a good idea to do a patch for PLSM2.

Maxi

09-07-2008 13:01:33

_PLSM_OCTREE should not be defined, in project preprocessor settings or anywhere in code. (no "#define _PLSM_OCTREE")

Sorry for hijacking the thread, but could you outline since when and why "#define _PLSM_OCTREE" shouldn't be used, Tuan?

As mentioned here, defining _PLSM_OCTREE was the only way to avoid an assertion for me, and some other people experienced the same.

Buckcherry

09-07-2008 18:13:16

The following image shows the problem I have when I paint with the source code you said before. I do not why it appears some coloured squares...

http://img148.imageshack.us/my.php?image=image1si6.jpg

The brush's area seems to be very big.

I am using TextureFormat=InstantBase since the application crashes with TextureFormat=Splatting.

Any idea about why it is showing like that?

tuan kuranes

09-07-2008 18:29:32

Which code ? the 'image' one ?
try to resize your image to 10x10 before, as it's painting a 10x10 square.
does "splatting_snow.png" have RGBA ?

forgot the multiplier and the 3 (RGB) or 4 (RGBA)data ptr move:


rgba[0] = *(imgData + i*10*3 +j + 0) / 255.f;
rgba[1] = *(imgData + i*10*3 +j + 1) / 255.f;
rgba[2] = *(imgData + i*10*3 +j + 2) / 255.f;
rgba[3] = 255 / 255.f;


The brush's area seems to be very big.
Painting incorrectly use Vertex as brush array element...

application crashes with TextureFormat=Splatting.
I have to check that when I'll have time...

Buckcherry

09-07-2008 18:49:21

Yes, the image one.

Now I have resized the image to 10x10 pixels and I have changed the code to the one above.

The result is that now it seems to work well with the texture, but not with the position...

When I press the mouse on the terrain, the area painted is far away from there.

Should the following line to be changed in some way?:

mSceneMgr->setOption( "PaintCenter", &(mCursorPos + Vector3(i,0,j));

tuan kuranes

10-07-2008 12:38:36

you have to make it centered...
Vector3(i-5,0,j-5)

but surely somewhat scale those raw value but terrain scale you can get from other getoption.

Buckcherry

10-07-2008 18:58:30

That does not fix my problem...

How could I guess the scale value using getOption as you said?

Should I have to divide the (i,j) values by that value?

I am doing several tests and I get better results with:

Vector3(i-3*10, 0, j-3*10)

But I am quite confusing with this.

When I click on the terrain it is painted in a lot of places with "squares" spared everywhere...

Any another idea, please?

Buckcherry

10-07-2008 20:21:41

The following images show the behaviour of my application using:

mSceneMgr->setOption( "PaintCenter", &(mCursorPos + Vector3(i,0,j)));

And an image of 10x10 pixels.

Before:

http://img171.imageshack.us/img171/3073/image2beforeoh6.jpg

After (clicking on the middle of the screen):

http://img144.imageshack.us/img144/1368/image2afteryc8.jpg

I do not know why it is drawn a pattern, rather than an unique square...

Any idea?

tuan kuranes

11-07-2008 13:25:21

you sure copy my code with a brush height and with of 1 ?

Anyway unless you deep dive into PLSM2 code, you won't success. Try to other way around, search for PLSM2 decals (forums, wiki)

Buckcherry

11-07-2008 21:54:33

I had the brush height and width to 10.

I have changed that to:

unsigned int width=1, height=1;

Setting that to 1 does not paint anything...

It starts to paint from 4 and above. Do you know why?

I have found another problem. The brush has to be defined as:

Ogre::Real *brush = new Ogre::Real[100];

In your code it was defined like Ogre::Real brush, which seems to show a strange behaviour when you are painting...

I am still stuck with this. I think the problem is with the following lines:

rgba[0] = *(imgData + i*10*3 +j + 0) / 255.f;
rgba[1] = *(imgData + i*10*3 +j + 1) / 255.f;
rgba[2] = *(imgData + i*10*3 +j + 2) / 255.f;
rgba[3] = 255 / 255.f;
mSceneMgr->setOption("setPaintChannelValues", &rgba);
mSceneMgr->setOption("BrushArrayHeight", &height);
mSceneMgr->setOption("BrushArrayWidth", &width);
mSceneMgr->setOption("BrushArray", &brush);

mSceneMgr->setOption( "PaintCenter", &(mCursorPos + Vector3(i-5,0,j-5)));


Are you sure that the following line is correct?:

rgba[3] = 255 / 255.f;

How is stored the data of the image when you make an image.load() ?

How could I know the good values for the Vector3?:

Vector3(i-5,0,j-5)

It is almost done... ;)

Buckcherry

14-07-2008 18:12:56

Anyone?

Buckcherry

17-07-2008 18:57:54

Any idea, tuan?

Buckcherry

22-07-2008 08:48:39

Any help with this, please?

Buckcherry

29-07-2008 19:16:27

Has anyone got success with dinamic textures?

Buckcherry

05-08-2008 08:57:09

Any help with this, please?

Buckcherry

25-08-2008 10:12:22

Hello everybody,

I am just curious to know if there are someone who got to make the dynamic texture working successfully.

Anyone?

Buckcherry

09-09-2008 20:10:46

Could anyone finish this problem, please?.

is tuan kuranes alive?? ;-)

Buckcherry

08-10-2008 13:57:59

Any help, please?

I am desesperated. :(

Buckcherry

03-11-2008 18:18:26

tuan, Have you investigated anything about this bug?