Normal mapping for entities w/ multi-skins

Posted By: Jaeger

Normal mapping for entities w/ multi-skins - 06/10/09 11:16

Hey guys,

I've got a question about normal mapping. You see, I've got the new, complete Panzer IV model from my modeler today, and I'm currently skinning it up and preparing to do the normal mapping and materials to make a custom shader for it. However, I've divided the model into 5 groups: Hull, Tracks, Wheels, Turret, Gun, and Details. Each has it's own hi-res skin, and it's starting to look great. I'm going all out on this one. smile

But the question is, how do I do the normal mapping for each group? I've done normal mapping for models that use just one skin, but never for a model using different skins on different parts. I want each group to have it's own special NM'ing. For instance, the wheels need their own to "pop out" the bolts and rounded surfaces. The hull needs its own to give it a "scratched" and "roughed up" look, and so on. I know how to make the materials, the question is just how to I apply the correct normal mapping to the correct group and skin in the code. So each can have its unique materials and look correct.

Thanks in advance!
Posted By: Tobias

Re: Normal mapping for entities w/ multi-skins - 06/10/09 11:25

The normal map must follow each skin.

When you have 5 skins and 5 normal maps, the order is:

skin 1, normalmap 1, .... skin 5, normalmap 5.

The normalmapping shaders expect the textures and normalmaps in this order.
Posted By: Quad

Re: Normal mapping for entities w/ multi-skins - 06/10/09 11:28

if you want to use diffrent shaders for diffrent skins you need to edit your shaders to work this way.

but if you want to use same normal mapping shader but with sperate diffuse/normal maps for each group try this:

in skin manager order your skins this way
tracks_diff
tracks_normal
wheels_diff
wheels_normal
turret_diff
turret_normal
.... and so on

skin names are not important but it should be ordered this way. then apply one of the bump mapping shaders that ships with GS and you are ready to go

Tobias was faster -_-
Posted By: Jaeger

Re: Normal mapping for entities w/ multi-skins - 06/10/09 11:40

Thank you, that makes sense to me. Do you think it's better to do it strictly through code? Or would it be best to do it in MED ahead of time, then just assign the material in code? Or even totally in MED?
Posted By: DanielTruong

Re: Normal mapping for entities w/ multi-skins - 06/23/09 14:53

Hi !
I have a same question !
I have a car model like this :



But All *.fx file i had was not support ! and i don't know how to code a fx file help me to normal map the models with N-texture !

would anyone share me the fx file or the code ??

thanks ?
Posted By: Espér

Re: Normal mapping for entities w/ multi-skins - 06/23/09 21:35

the correct order:

"Skin_Wheel"
"Skin_Wheel_Normal"
"Skin_Body"
"Skin_Body_Normal"
"Skin_Glass"
"Skin_Glass_Normal"
Posted By: DanielTruong

Re: Normal mapping for entities w/ multi-skins - 06/24/09 10:48

Originally Posted By: Espér
the correct order:

"Skin_Wheel"
"Skin_Wheel_Normal"
"Skin_Body"
"Skin_Body_Normal"
"Skin_Glass"
"Skin_Glass_Normal"


So ... Do you have the code or the FX File support your order ?

Would you mind to share me ?

Thanks !
Posted By: Espér

Re: Normal mapping for entities w/ multi-skins - 06/24/09 11:07

every normal map effect uses this order...
See the shaders in the wiki.. Slin´s Shade-C...
© 2024 lite-C Forums