Skip to content
NormalMap Gen On-device processing

LAB RECORD / 05

About NormalMap Gen and Its Local Canvas Workflow

See how local image decoding, heightfield filtering and point-light previews work, and what to expect from the browser-only tool.

An image tool that does not receive images

The workbench is for checking materials quickly before they go into a renderer. Choose a sample or open a local file. Your browser decodes the file, scales it down only when its longest edge exceeds 1024 pixels, and composites transparent areas over middle gray. Canvas reads those pixel values. The tool never sends the source, filename, maps or settings to a server. No account is required.

What happens between input and export

The RGB luminance estimate is placed in a floating-point height buffer. Height inversion, contrast and shift are applied before smoothing or sharpening. A pair of three-by-three derivatives measures horizontal and vertical slopes, with clamped edges or periodic addressing. The resulting normal is normalized and placed in RGB; height and derived masks are grayscale. Processing larger maps is split into small batches so the browser can still handle input.

A preview, not a material scan

The draggable point light uses decoded normals and a Blinn–Phong highlight. Surface reflectance, exact height and distant occluders cannot be recovered from one photograph. There is no geometry displacement or path tracing in the preview. A separate 8-bit PNG is created in browser memory for each map. Read the privacy page for distinctions between file handling and site requests, or report a reproducible problem to contact@normalmapgen.wiki without including private source images.

Explore the field notes

Studio OpenGL vs DirectX PBR map guide Seamless textures