TrainLightBumpSpecMask.fx

Hi everybody.
i’m trying to use this shader with strange results in game…the parts that are not facing the sun are totally black.

Theese are the textures i made and where i put it in Canvas:

Slot 1: Diffuse
Slot 2:Occlusion Map
Slot Bump: Normal+specular in alpha channel

I’ve no idea what to look at to fix this.
thank you in advance

Hello,

You’re not using the slots properly: take a look here[/url:3aax814x]

thanks for the reply.
I think we are talking about different shaders.
What i’m talking about is the new one for foreground buildings, not the rolling material one.
The slots must be those i’m using.
Further to the specular map, according to Derek’s topic…it has to be placed in the normal map alfa channel.
I’ve made attempts putting the specular in the diffuse alfa channel,occlusion alfa channel…of course was not working.

"Pasquale":1br68w2p wrote:
What i’m talking about is the new one for foreground buildings, not the rolling material one.
[/quote:1br68w2p]
… yes, I replied too quickly… I don’t know about TrainLightBumpSpecMask.fx.

I have only used this once for rolling stock so I don’t have much experiences with it, but perhaps you normal map was not generated correctly? It should look blueish, which raised parts being lighter in color (sometime white) and recessed parts being darker (sometimes almost black). Also, if somehow you accidentally swapped your alpha sample (env.bmp) which is usually a solid black color, for the NM, then I would imagine it would recess everything and make it look darker.

Are the faces textured using Face coordinates ? (Face coordinates must be used w/ bump maps, at least w/ TrainBumpSpecEnvMask.fx)

thanks for the replies…
I normally don’t use cordinates to apply textures.
I’ve tried also using that method (unwrapping)…no changes
The normal map is well generated as i use a third party software to create maps.

You must be logged in to reply in this thread.