=======
This is the material I use, it is a png file and transparent
-------------
This is the script I use...
material lambert4
Code: Select all
{
technique
{
pass
{
lighting on
ambient 1 1 1 1
diffuse 1 1 1 1
specular 0 0 0 0
emissive 0 0 0
scene_blend alpha_blend
depth_write off
texture_unit
{
texture acacc.png
tex_coord_set 0
colour_op modulate
}
}
}
}
Everything go right with one tree
But if it is a forest...weird thing that front trees is "blend" with tree behind them..so we do not only see the tree at the front...but also see tree that must be hide but in some case, the fronts tree is transparent a little and we can see throgh them
-----------------
But at other camera view...the problem disappear
I have change type of image data into TGA with alfa channel (not like transparent data area in .PNG)...and this can not solved...
The problem leave in
Code: Select all
scene_blend alpha_blend
depth_write off
Could anyone tell me how to solve this problem...the right kind of transparent script