Ogre 1.8 Terrain White Plane [SOLVED]

Problems building or running the engine, queries about how to use features etc.
User avatar
SolarPortal
OGRE Contributor
OGRE Contributor
Posts: 203
Joined: Sat Jul 16, 2011 8:29 pm
Location: UK
x 51

Ogre 1.8 Terrain White Plane [SOLVED]

Post by SolarPortal »

Hey Everyone,
The terrain being used is the Ogre 1.8 new terrain system (I think it’s the same as the 1.7 version terrain)

Terrain Issue 01:

For a quite a while now i have been trying to figure out what this white plane on my terrain is,

Image

Up until this point i believed it had something to do with shadows, i have looked on the forums many times over the past few months and have not found any results, so i am finally posting here for help. I have updated my ogre 1.8 source to the latest trunk version to see if it would fix my problem, but it didn’t.

My semi-solution to this problem was to use Texture_Additive_Integrated. Does anyone know what causes this?

Terrain Issue 02:

I’m posting this issue here as well because I believe that they are related.

When using a Projective Decal on the Terrain Material, it displays as a vertical plane instead of projecting down, the decal shows correctly on my groundplane. I am using the projective decal to create a brush cursor to use with the height editing / painting etc… For Testing I am using an image of leaves.
From what I can see the 2 streaks are the tips of the leaves.

Image

The basis I have started my code from is the Projective Decals page for the Paging scene manager. I then modified the add material function to be a lot simpler.
Here is the URL address

http://www.ogre3d.org/tikiwiki/Projective+Decals

But what is wrong with the terrain material to not accept the decal. I have seen screenshots on the ogre forums of someone with decals on the terrain. Are these problems interlinked, could I be missing something simple, or overlooked a section.

I have a similar problem with hydrax and the Ogre 1.8 Terrain, but im not sure whether to post this issue here or in the Hydrax Addons Forum.

Please if anyone can help or give pointers that would be excellent, as I have no more ideas what is making these issues happen.
Last edited by SolarPortal on Sun Jul 19, 2015 5:52 pm, edited 1 time in total.
User avatar
tod
Troll
Posts: 1394
Joined: Wed Aug 02, 2006 9:41 am
Location: Bucharest
x 94

Re: Ogre 1.8 Terrain White Plane

Post by tod »

I don't understand. You always have a white plane on your terrain? Give us some details.
User avatar
SolarPortal
OGRE Contributor
OGRE Contributor
Posts: 203
Joined: Sat Jul 16, 2011 8:29 pm
Location: UK
x 51

Re: Ogre 1.8 Terrain White Plane

Post by SolarPortal »

Sorry for the late response.

I believe the white plane to be an error with the terrain material, as projective decals work on other meshes.

I want the terrain projective decals to be used as a brush size overlay on the terrain, which will then use an image on the decal to deform the terrain, but i have to get the first part working first. :)

Has anyone else had a similar problem or have found a fix.

The plane only exists when the terrain is created, and I haven't created the plane on the terrain either. The plane does exist in all shadow technique modes. In texture_additive the plane is white and cannot be seen through as shown in previous images.
It is best viewed in texture_additive_integrated where the plane is invisible, but latest tests with pssm and shadow depth maps shows this invisible plane casting a shadow on the terrain. Therefore it is existing in all modes, and is becoming a big issue and hindrance in development of our terrain editor in our project.

As in the previous images, I showed multiple terrain tiles with each tile having it's own white plane, which means this error is definitely to do with each terrains page.

The terrain system used is the new ogre terrain system.
The ogre version being used in our project is 1.8

I can't really give much info as I don't know what is causing this error.

Could this error be due to a render to texture error, or something along those lines.

Because of this error, it's causing issues with hydrax and it's depth technique that you need to apply to the terrain for it to be used underwater with caustics etc... But my main concern is the projective decals.
The point being, it is affecting other things that require the use of the terrain material.

What information could I provide that would make finding this error/bug easier.

it would make my day if this was solved. :D
User avatar
SolarPortal
OGRE Contributor
OGRE Contributor
Posts: 203
Joined: Sat Jul 16, 2011 8:29 pm
Location: UK
x 51

Re: Ogre 1.8 Terrain White Plane

Post by SolarPortal »

Sorry this is a really late reply, i haven't signed into these forums for a long time.
When i had this problem, i fixed it by turning off:

Code: Select all

mTerrainGlobals->setUseVertexCompressionWhenAvailable(false);
We are on a later version of ogre now since this error as it was a few years ago.

Thanks for all your help :)