Alpha maps and transparency !??
Posted: Fri Aug 12, 2005 2:10 am
I have a scene with some trees in them. Thier texture is comprised of 2 files, the tree texture and an alpha map. No matter how hard i try they just don't seem to work right. The trees ends up looking like this. It works fine in max btw.

I've been reading this part of the wiki. It describes how to get a tree texture working if the texture had an alpha layer on it. But in my case the alpha layer is a seperate texture. I tried quite alot of the ideas in that page and altered them abit, but none of them seem to work. My end result is pretty much the same. if not worse at some times. Here are both the textures.


My material file is something like this.
can anyone tell me what i'm doing wrong ? or do transparent maps have to be a single texture with alpha layer ?

I've been reading this part of the wiki. It describes how to get a tree texture working if the texture had an alpha layer on it. But in my case the alpha layer is a seperate texture. I tried quite alot of the ideas in that page and altered them abit, but none of them seem to work. My end result is pretty much the same. if not worse at some times. Here are both the textures.


My material file is something like this.
Code: Select all
material 05_-_Default
{
technique
{
pass
{
lighting off
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 tree_03.jpg
tex_coord_set 0
colour_op modulate
}
texture_unit
{
texture tree_03_alpha.jpg
tex_coord_set 0
colour_op modulate
}
}
}
}