Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Green NormalMaps
03-23-2016, 02:53 PM
Post: #1
Green NormalMaps
In Alekhine's Gun, the NormalMap textures cannot be viewed normally on PhotoShop and can only be viewed if you open them as a DDS file. It was like this in the demo as well. I checked with the people on the Dark Mod forums, they think it's part of the NormalMap and that the rest of the RGB format is hidden. How do I view the NormalMaps normally on PhotoShop?


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
03-23-2016, 04:08 PM (This post was last modified: 03-23-2016 04:12 PM by Alexey.)
Post: #2
RE: Green NormalMaps
Well, normal maps stored in "compressed" format. You will have to decompress them to make it look like regular normal map. There is only X and Y stored in DDS file. Z computed in real time.
Final normal will be:

Normal.X = TextureDDS.Alpha * 2 - 1.0;
Normal.Y = TextureDDS.G * 2 - 1.0;
Normal.Z = sqrt( 1.0 - Normal.X*Normal.X + Normal.Y*Normal.Y );

To convert back to regular normal map RGB values:

Pixel.RGB = Normal.XYZ * 0.5 + 0.5;
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)