Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting normal map values to vectors; numerical errors #2883

Open
lorentzo opened this issue Jul 27, 2020 · 1 comment
Open

Converting normal map values to vectors; numerical errors #2883

lorentzo opened this issue Jul 27, 2020 · 1 comment

Comments

@lorentzo
Copy link
Contributor

Perturbed normals are encoded in normal map pixels as RGB vectors. To obtain a perturbed normal conversion from RGB to unit vector is required. The problem appears when one (or more) of RGB channel has a value of 128 which should exactly be 0 in converted vector. But in this case, converted vector not 0 but close to 0, more specifically: 0.003921 or -0.003921.

Below is the normal map baked in Blender which has this specific cases:
simple5_DX_values

For example, pixel value of (128, 128, 255) should be converted to (0,0,1) but it it has values of (0.003921, -0.003921, 0.999985).

@imSanko
Copy link

imSanko commented Dec 9, 2020

I wanna work on to this project can you assign it to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants