Skip to content

Problems with drawing normals with color map in section 6.1 of book 1 #1220

Answered by kogandg
kogandg asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was with the way I was storing my colors. I was storing them in an unsigned char for ease of writing to the file, but it resulted in the loss of all negative values, which are necessary to avoid the harsh lines and darkness that are seen in the image. The fixed commit is: kogandg/Renderer@79bfe9f

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kogandg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants