Hi!

Then does your shader work?
Otherwise you use this code from me it works very well!
Please note the comments!

bmap detail_floor1, <brickdark1.tga>;// this is your normalmap!(the blue-pink)

function init_detail_mapping
{
bmap_to_mipmap(mtl.skin1);
}

material brickdark // this is your wad texture in wed you use this for the block
{
event=init_detail_mapping;
skin1=detail_floor1;
effect=
"
matrix matWorldViewProj;
matrix matWorld;

texture mtlSkin1;
texture entSkin1;
texture entSkin2;
vector vecLight;

technique dot3map
{
pass p0
{
Texture[0] = <mtlSkin1>;
Texture[1] = <entSkin2>;
Texture[2] = <entSkin1>;
TextureFactor = 0xFFFFFFFF;

COLOROP[0] = DotProduct3;
COLORARG1[0] = Texture;
COLORARG2[0] = TFactor;
TexCoordIndex[0] = 1;

COLOROP[1] = Modulate;
COLORARG1[1] = Texture;
COLORARG2[1] = Current;
TexCoordIndex[1] = 0;

magFilter[2]=Linear;
minFilter[2]=Linear;
mipFilter[2]=Linear;
COLOROP[2] = AddSigned;
COLORARG1[2] = Texture;
COLORARG2[2] = Current;
TexCoordIndex[2] = 1;
}
}
";
}

Hope This help!


Greetings

Salva

PS: Could you tell me how you have done the normalmap?