Pseudo3D normal map illumination effect

Опубликовано: 04 Апрель 2026
на канале: Volfegan
139
1

Single point illumination effect using a normal map of some image. The program asks for a normal map image, and if it is using naming convection as "image_normal.xxx" it tries to find the original image (image.xxx) by removing "_normal" if any exists. If only the normal map image exists it renders it in grayscale.

In the source code reference, there are links for how to make normal maps and those I used, except the cat, which I generated. Good normal maps from photographs are quite hard to make and I have no tools or ability to construct them. Bad normal maps have some uncanny valley and weird effects. Plenty of normal maps image texture are available on the internet (just search them).

Source code (Processing v3.5):
https://gist.github.com/volfegan/0fed...