Topic: problem with two alpha texture

I don't know if it is really a bug but then I import in maratis an alpha texture on a plane, no problem:

http://img4.hostingpics.net/thumbs/mini_409264bug1.jpg


but if I duplicate the mesh, sometime I have this :

http://img4.hostingpics.net/thumbs/mini_634041bug2.jpg

the two plane aren't on the same level.
It's like the second plane don't recognized by the transparence, in the doubt I report this wink

Last edited by Alinor (2011-06-23 20:41:39)

Re: problem with two alpha texture

Alpha blending doesn't allow using the depth buffer in the same way,
it's using sorting, sub-meshs are rendered back to front according to the distance they center is to the camera.

It's hard to have something perfect, you need to be careful not having objects with alpha blending too close each other,
and to use one sub-mesh by element.

But it's a bit surprising that it happen in the second image as it seems there is a big distance between the 2 quads.