Ahh, I found out that the material isn't the problem. -> but couldn't solve the problem...
What I have is: A tree model (1st Skin = trunk texture, 2nd skin = trunk normalmap, 3rd skin = leave texture (with alpha map)
Here is the tree's action:
-------------------------------------------------------
action tree()
{
////place the tree on the floor
VECTOR temp;
vec_set (temp, my.x);
temp.z -= 2000;
my.z -= c_trace (my.x, temp, IGNORE_ME + IGNORE_YOU + IGNORE_SPRITES + IGNORE_PASSABLE) + 10;
my.pan = random(359);
my.material = mat_alphatrans_obj;
ent_mtlset (my, bumptest, 1);
}
-------------------------------------------------------
The assignment of the shaders works, but when I move the camera, the leaves are flickering... (there is no duplicated geometry)
Can somebody help me?
Or is there another solution for assigning a bump mapping to a tree model?
EDIT: The tree doesn't flicker if I change the skin order of the skins (skin1 = leaves skin, skin2 = ...) but then the bump mapping does not work... (I also set ent_mtlset (my, bumptest, 2);)
Last edited by CD_saber; 09/07/11 13:33.