Strange ZOrder behaviour

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Bear_130278
Posts: 237
Joined: Mon Jan 16, 2006 1:18 pm
Location: Odessa,Russian Federation

Strange ZOrder behaviour

Post by Bear_130278 »

Here is what i have;
1. Terrain Node has 2 geometry layers
1 layer is solid ground and
2 layer is terrain details.., i normally use

Code: Select all

EMT_TRANSPARENT_ALPHA_CHANNEL
for this layers material

2.I got a movement marker, with disabled ZBuffer, in order to render atop of all the things

But i got a problem.... here it is...

Image
The marker appears below the Terrain detail layer

But if i switch the material of the detail layer to

Code: Select all

EMT_TRANSPARENT_ALPHA_CHANNEL_REF
It became as i need....
But i want the detail layer to be blended.. not tested..

Image


And Yes i tried to set the ZWriteEnable for the terrain material with

Code: Select all

scene::ALLOW_ZWRITE_ON_TRANSPARENT, true
also set
Do you like VODKA???
Image
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Try to disable the zbuffer of the marker.
Bear_130278
Posts: 237
Joined: Mon Jan 16, 2006 1:18 pm
Location: Odessa,Russian Federation

Post by Bear_130278 »

I'm sorry hybrid... but 8)

2.I got a movement marker, with disabled ZBuffer, in order to render atop of all the things
Do you like VODKA???
Image
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, in that case you have to render the arrows after the transparent geometry. Because those are rendered after the solid elements. Or use a larger offset to avoid zbuffer problems.
Post Reply