NormalMap texture coordinates

Hi,

I’ve textured DiffuseMap of a model using Unwrap UV in 3dstudio , I created NormalMap texture, but coordinates of NormalMap seems wrong, while DiffuseMap is well mapped on model.

Any idea?

thanks

What do you mean about “but coordinates of NormalMap seems wrong”? You could use the same coordinate you used for the diffuse map one. Are you sure it’s a uv texture coordinate problem?

glaucomardano said:
What do you mean about "but coordinates of NormalMap seems wrong"? You could use the same coordinate you used for the diffuse map one. Are you sure it's a uv texture coordinate problem?


diffuse and normal textures have same dimensions, if uvs are correct for diffuse map, should they be good also for normalMap or am I wrong?

Yeah, in most cases is used one uv text coord for both textures, in this case one uv text coord for diffuse and normal maps. We need to know what’s the problem are you having. You could post screenshots.

glaucomardano said:
Yeah, in most cases is used one uv text coord for both textures, in this case one uv text coord for diffuse and normal maps. We need to know what's the problem are you having. You could post screenshots.

I've solved, but something remains mysterious:
my diffuse map is generated dynamically by a BufferedImage
my normal map is load directly from assetmanager:

if I generate also normalMap everything works fine:

I've seen that dynamically generated image is RBG8, directly loaded one is BGR8
Could be this the problem?

Yeah, perhaps flipping the normal map x/y channels solve your problem. I had a problem like this a few months ago.