[HELP] Normal mapped blood?


masq87
08-12-2007, 09:19 AM
Im tryng to add normal mapping and phong shading on blood,to make it look like in Hitman Blood Money...

Decal texture
http://www.fileden.com/files/2007/6/13/1171968/blood1.jpg

and Normal mapped...
http://www.fileden.com/files/2007/6/13/1171968/blood1_normal.jpg

Here my edited VMT...
"VertexLitGeneric"
{
"$baseTexture" "models\materials\decals\blood1"
"$bumpmap" "models/materials\decals\blood1_normal"
"$phong" "1"

// "$phongexponent" "30"
"$phongboost" "1"
"$phongfresnelranges" "[1 3 6]"
// "$halflambert" "1"
"$phongexponenttexture" "models\materials\decals\blood1_exp"
"$phongalbedotint" "1"
}


And original VMT options
"DecalModulate"
{
"$translucent" 1
"$basetexture" "Decals/Blood1"
"$decal" 1
"$decalscale" 0.25
}






But,don't work,ther's something wrong but i dont know what...
can someone help me?

Wile E Coyote
08-12-2007, 10:04 AM
where's your Alpha channel for the normal map and your exponent map?

You will need those for phong shaders to work.

Also, don't take this wrong but I would tone down that normal map effect quite a bit to make it appear more flat..... on the ground it will look liked pooled blood but on a wall it it will like it is defying gravity

masq87
08-12-2007, 10:07 AM
i already have this! :)

Wile E Coyote
08-12-2007, 10:11 AM
okay then it probably has to do with the fact you are not labeling it as a decal.... I don't have good answers I haven't attempted messing with the decals too much at all.

masq87
08-12-2007, 10:30 AM
Also, don't take this wrong but I would tone down that normal map effect quite a bit to make it appear more flat..... on the ground it will look liked pooled blood but on a wall it it will like it is defying gravity

Wile,lol,you're right,its only an attempt!!
Thank you really!
:D


Anyone else know more about this? :(

Trp. Jed
08-12-2007, 11:42 AM
Anyone else know more about this? :(

http://developer.valvesoftware.com/wiki/Phong

masq87
08-13-2007, 03:04 AM
http://developer.valvesoftware.com/wiki/Phong

Uhm,interesting,but don't explain how to make a decal...

Anyone else?please!

BERSERK3R
08-13-2007, 04:32 PM
What is actually wrong with it, screenshot?
And I have my doubts about phong and decals.

masq87
08-14-2007, 05:40 AM
i think that my VMT are wrong!what you think?

Watevaman
08-14-2007, 08:14 AM
I'm pretty sure that decals don't support either phong or normal maps (my normal map attempt failed on one). Envmaps map work for shininess, though.

BERSERK3R
08-14-2007, 12:51 PM
Well bullet impacts use normalmaps so that is possible if that is considered a decal.

Trp. Jed
08-14-2007, 03:19 PM
I think phong is only supported in the VertexLitGeneric shader though? Don't decals use a different shader, hence phong isn't supported.

Watevaman
08-14-2007, 03:45 PM
I think phong is only supported in the VertexLitGeneric shader though? Don't decals use a different shader, hence phong isn't supported.

Yeah, I think until the engine update with Ep.2, decals and map textures can't support phong.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.