Hallo zusammen!

Mal eine frage, ich habe ein detailshader script aus der wiki seite gefunden un vollte ich ausprobieren, aber ich sehen kein detail sondern nur das material
hier die script:

var d3d_automaterial=1;

bmap b_detail1=<detail2.tga>;

function init_detail_mapping
{
bmap_to_mipmap(mtl.skin1);
}

material tilemetal // material name = level surface texture name
{
event=init_detail_mapping;
skin1=b_detail1;
effect=
"
texture mtlSkin1;
technique detail_mapping
{
pass p0
{
texture[2]=<mtlSkin1>;


colorarg1[0]=texture; // shadow map
colorarg2[0]=diffuse; // vertex lighting
colorop[0]=add; // add vertex lighting to shadow map
resultarg[0]=temp; // output to temp register


colorarg1[1]=texture; // color map
colorop[1]=selectarg1;


colorarg1[2]=texture; // detail map
colorarg2[2]=current; // color map
colorop[2]=addsigned; // add detail map to color map
texcoordindex[2]=1;
texturetransformflags[2]=count2;
texturetransform[2]={8.0,0.0,0.0,0.0, // detail map u scale
0.0,8.0,0.0,0.0, // detail map v scale
0.0,0.0,0.0,0.0,
0.0,0.0,0.0,0.0};
magfilter[2]=linear;
minfilter[2]=linear;
mipfilter[2]=linear;


colorarg1[3]=temp; // (shadow map + vertex lighting)
colorarg2[3]=current; // (color map + detail map)
colorop[3]=modulate2x; // modulate (color map + detail map) with (shadow map + vertex lighting)
magfilter[3]=linear;
minfilter[3]=linear;
mipfilter[3]=linear;
}
}
";
}


die detailmap detail2.tga bei mir ist eine schwarze bild mit eine texturierte alpha channel, und als material habe ich die tilemetal genommen, in mein level
sehe ich nur die tilemetal texturen auf die entity block ohne detail(detail2.tga); wo ist die fehler? solle ich eine normale bild herstellen mit eine alpha channel? andere shader die ich ausprobiert habe funzt gut, wie Z.B.
fur, bumpmapping,oceanwater, und waving grass! eine Hilfe?


mfg.


Salva

meine Grafickkarte:

Ati Radeon 9000.