TextureImporter for normal maps

Hi,

I’m having a problem with importing normal maps hope someone can help.

When i drag a PSD into the unity Editor and set the TextureType to Normal Map and the Format to Compressed i get a DXTnm in the preview window which is great.

But when i try to import the PSD’s in our command line build process they always come out as just DXT5’s and look to be grey scale as if there possibly a height map.

The TextureImporter settings i’m using are:

textureImporter.maxTextureSize = 4096;
textureImporter.textureFormat = TextureImporterFormat.AutomaticCompressed;                        
textureImporter.mipmapEnabled = true;
textureImporter.textureType = TextureImporterType.Bump;
textureImporter.normalmap = true;

Any ideas?

Hmm, sounds like a bug. Do you have a small project and/or exact steps how to reproduce this? File a bug :slight_smile:

Submitted a bug but could really do with an answer to this ASAP.

Thanks,
Tony.

After more investigation it seems its the crating web bundle and then loading web bundle that seems to make the mnormal map display incorrectly in the preview window,

As the normal map seems to look right on the model, i think its possibly just a bug in the editors preview window when reading DXTnm textures from a web bundle.