Theverat / NormalmapGenerator

A simple program that converts images into normal maps
GNU General Public License v3.0
416 stars 51 forks source link

Normal map is "shifted" #20

Closed mkdotcom closed 7 years ago

mkdotcom commented 7 years ago

Hello Thanks for this great project. I've noticed something weird: the normal map is kind of 'shifted' (few pixels) compared to the real texture. When light is moving over it, the texture looks like distorted because of that.

Theverat commented 7 years ago

Can you upload an example, e.g. a texture where the effect is particularly strong? I never noticed this effect, maybe it's caused by the Sobel kernel. You could try to activate the "advanced" checkbox, then switch from Sobel to Prewitt in the dropdown that appears and see how that works.

mkdotcom commented 7 years ago

i guess it's not a bug but inherent to generated normal maps, as I see the same issue when creating normal map with photoshop or other tools thanks you

mkdotcom commented 7 years ago

the issue disappears when using the "normal map size" settings to (greatly) reduce the size of the generated normal map the loss of quality is usually acceptable (at least for me)