Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: bobbtmann on August 02, 2010, 11:33:05 pm

Title: Normal Map --> Green channel disappearing
Post by: bobbtmann on August 02, 2010, 11:33:05 pm
Hi! I'm working on a normal map, and I've run into a problem converting to to the .dds fromat. I open up the .dds normal map (it's blue). I swap the red channel with the alpha channel, and replace the blue and red channels with flat black. It turns a brown/yellowy colour. I then save the .dds. When I open it up again, the blue and red channel are still black, the alpha is intact, but green is a flat white.

Does anyone know why is my green channel disappearing?

Thanks


EDIT:  If I change the black to white, will it still work? Because that seems to have fixed the problem. It also has the added bonus of improving its appearance.
Title: Re: Normal Map --> Green channel disappearing
Post by: Colonol Dekker on August 03, 2010, 01:07:44 am
What program are you using?
 
What format (dxt number) are you saving in?
Title: Re: Normal Map --> Green channel disappearing
Post by: Water on August 03, 2010, 02:18:13 am
If you want an easier method, use ATI's Compressonator, a lot less messing around. When you hit compress, use DXT5 xGxR

Title: Re: Normal Map --> Green channel disappearing
Post by: chief1983 on August 03, 2010, 02:52:31 pm
I often have luck converting grayscale to DXT5n with Gimp's DDS plugin.
Title: Re: Normal Map --> Green channel disappearing
Post by: bobbtmann on August 03, 2010, 07:27:02 pm
I'm using the NVidia plugin for photoshop. The format is DXT5 interpolated alpha. Something like that. Using white instead of black seems to work fine...