2020-11-12 01:38:40 -0600 | received badge | ● Notable Question (source) |
2020-02-25 02:22:30 -0600 | received badge | ● Popular Question (source) |
2017-05-21 07:11:28 -0600 | asked a question | Depth map to Normal map conversion Hi there, I'm trying to convert depth map to normal map. I have found this answer: link but I have to do something wrong. Here is my code: The function depthValue() does nothing more than return grayscale value of an image (I was trying to convert every value of pixel to non-linear value like from this link but the effect was even worst). Here is normalizeVector(): Here are my results: The colors are in wrong order and they are much paler than from original output image from link above. Could you tell me what am I doing wrong? |