Normal Map Issues

Hi there,

I just imported a character into my project and tried to apply a normal map to it. However, I usually don’t have problems with normal maps but this time I am at a loss…Have a look at the attached image. That surely doesn’t look right. Any pointers? I saw that some folks before me had similar issues…maybe a bug?

Thomas

The funky thing is that as soon as I choose a bump shader I am getting these strange artifacts all over the place. See Image below. If choose something else "Diffuse…etc) I am getting now artifacts.

Just using a diffuse shader in the image below…works fine…no artifacts.

Maybe there is something wrong with your tangents. Have you tried letting it ‘Automatically recalculate normals’?

Although it kinda looks like something is wrong with your UVs. Need to put a diffuse texture on there to know for sure.

Hmm, this is the second one of these in a week :?

Do you mind posting a screenshot of your UV layout on one of the troubled meshes?
I’m trying to reproduce this problem (and looking at old spec bumped work of my own
to see if anything has recently changed with Unity) but everything works on my end so far.

Ethan

Hi try and avoid overlapping UVs. If you have overlapping UVs because you use some sort of “symmetry modifier”, just take one side of the characters uvs and move it -1 in yourt uv editor. (same trick can be used when baking AOO maps)
How did you make your Normal maps?

I dont know if it helps :sweat_smile:

Are you setting the import settings normal smoothing angle to 180 degrees?

This used to drive me mad - try deleting your model history and cleaning up the scene.

(Now I don’t use textures anymore, only vertex color and my life is … peaceful)

it happened to me a couple weeks ago as well

http://forum.unity3d.com/viewtopic.php?t=10417
i still haven’t resolved the situation, I generated it using the blender 2.46 beta, so i assumed it was blenders fault

also if my scene has a normal map that has any empty space in it ( like in the second picture on my post) it fails on build and causes unity to crash

Looks like some sort of problem with how Unity computes tangent space. Can you send the model’s FBX file and the normal map you’re using via Report Bug.app?

Has this problem been fixed in Unity 2.1 (was it a bug in Unity at all)?

I’m using Unity 2.1 and I’m getting some strange artifacts when using normal maps that don’t appear when I use a shader without a bump map. My mesh is generated procedurally with a Unity script, so I know that no external software is at fault. I use RecalculateNormals() as the last step of my mesh generation.

See the screenshot below. To the left is the entire texture slapped onto a plane - that works fine. To the right is several quads using the same texture and getting very strange colors.

Should I take some special steps when generating my mesh that I may have omitted, or should I just file a bug report?

Rune

Are you generating tangents?

–Eric

No, I didn’t know about the need to generate tangents… :sweat_smile:

I’m generating them now, and it’s working mostly fine, at least for all rectangular tiles.

However, it seems that normal map lighting can’t handle skewed polygons? I.e. if a texture is made for a square but then applied to a rhombus/diamond shape or parallelogram, then the lighting will be wrong?

From the Script Reference:

So this would mean that the model break down when the U and V direction is the texture is not actually orthogonal?

Rune