Jump to content
  • Advertisement
Sign in to follow this  
theironpaperclip

Normal Maps and their Z Values.

This topic is 4265 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In normal maps, the values of RGB represent the XYZ coordinate of the normal for each pixel. What is the point in the Z value? I don’t believe I have ever seen it other than 255 so why do we have it?

Share this post


Link to post
Share on other sites
Advertisement
Two things: 1) You don't actually need to store the three components, if you're willing to do the cross product at runtime to reconstruct the third component. 2) As StealthNinja mentioned, only a completely flat normal map would have 255 in all of the blue pixel components, representing (0,0,1).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!