Creating normal maps

Hi,

how do I create new normal maps from within Unity? There doesn’t seem to be any way to mark them as a “Normal map” (like you would do with imported textures).

I’m trying to create a texture atlas using Texture2D.PackTextures and it all works, both atlases for diffuse and normal maps get created, however when I apply the normal map the model looks weird(parts of it look black) as it’s not tagged as a normal map.

Only solution I can think of is to create the normal map, export as PNG and then import with normal map tag, however that is not an option as I need my maps created during runtime.

Nm, I was just confused by the fact that the generated atlas texture was looking grayscale and not like a normal map in the preview window.

Real problem was that I wasn’t generating packed normals properly.