Displacement Map Generator
This displacement map generator prepares scalar height data for a renderer that can move mesh vertices. Shape the source range, define a neutral height, and compare the texture with actual displaced preview geometry. The downloaded image supplies values; subdivision, material settings, and scale determine what happens to your model.
How to Get Started
Load a local image or try the procedural relief sample. Select luminance, red, green, blue, or alpha as the scalar source. Set black and white points before adjusting gamma, contrast, smoothing, and detail. Choose centered or positive displacement, inspect the neutral height and range, then open the geometry preview. Export a grayscale PNG after processing completes. Keep the selected neutral value beside your renderer's displacement settings.
What Is a Displacement Map?
A displacement map is a scalar field interpreted as distances or offsets by a material system. Dark and light pixels provide lower and higher values under the chosen convention. A displacement map generator cannot make an arbitrary photograph into measured surface geometry: brightness might describe paint, illumination, or reflectance instead of height. Use authored height data when accuracy matters, and regard photographic input as a starting estimate that needs editing.
Displacement vs Bump vs Normal Map
Displacement can alter vertex positions and silhouettes when the renderer evaluates it on sufficiently dense geometry. Bump mapping derives shading changes from neighboring scalar heights. Normal mapping stores signed directions in RGB and changes lighting without moving the mesh. The same height field can feed different systems, but the material connection determines its effect. Use the scalar bump workspace for shading relief, or the height converter when you need a tangent-space normal texture.
Prepare scalar shading relief with the bump toolMid Level and Height Range
The exported texture remains an unsigned height h in the range zero to one. Centered interpretation uses offset = (h − mid level) × amount; positive interpretation uses offset = h × amount and sets neutral to zero. For example, neutral 0.5 places darker values below the reference surface and brighter values above it. Mid Level changes interpretation and preview geometry, not the stored heights. It is not embedded automatically as renderer metadata.
Why Bit Depth Matters
Eight-bit grayscale offers 256 code values; sixteen-bit grayscale offers 65,536. Broad gradients and strong displacement can reveal steps in lower precision. This displacement map generator writes genuine sixteen-bit grayscale PNG from the processed floating-point field rather than expanding a finished eight-bit image. However, image decoding can reduce an imported source to eight bits, and extra export precision cannot reconstruct information already missing. Verify that the destination preserves sixteen-bit samples instead of silently quantizing them.
Mesh Subdivision and Tessellation
The preview builds a subdivided plane, samples the processed height numerically, moves its vertices, and recalculates geometry normals. Choose a subdivision count and enable wireframe to inspect the sampling grid. A plane with too few vertices misses fine source features even if the texture is detailed. The warning compares grid density with source dimensions; it is a conservative reminder, not a tessellation quality certificate. Preview amount uses arbitrary scene units because no physical dimensions were supplied.
Avoiding Clipping
Black and white points remap the usable input range. Narrowing that interval can force many values to zero or one; contrast and sharpening can also flatten extremes. The workspace reports counts at both output endpoints, including legitimate black or white regions, so an endpoint count is a review signal rather than proof of damage. Reduce contrast or widen levels when rounded peaks become flat plateaus. Smoothing can suppress noise but does not recover heights discarded by clipping.
Material and Terrain Use Cases
A displacement texture can represent broad stone relief, embossed patterns, sculpted tiles, or an authored terrain elevation field. Start with moderate preview amount, inspect the silhouette at a grazing angle, and choose enough geometry for the important features. Terrain elevation requires an external relationship between pixel values, horizontal spacing, and world units. The displacement map generator does not infer that relationship from a picture, nor does it reconstruct hidden surfaces, overhangs, or multiple heights at one coordinate.
When Not to Use Displacement
Fine scratches and pores often belong in bump or normal shading, particularly when silhouette changes are irrelevant. Strong displacement on a sparse mesh can distort topology and create intersections. A height field also cannot describe caves or undercuts without additional geometry. Avoid interpreting photographic cast shadows as terrain depth. If you need physically established shape, start from sculpted geometry, calibrated measurements, or an authored height source and validate the renderer's displacement behavior separately.
Who Uses Height Displacement
Material artists can use the displacement map generator to prepare a height range before connecting it to a shader. Environment artists can inspect grid density for terrain experiments; technical artists can compare precision and neutral conventions during asset handoff. Processing and encoding run locally in browser memory. Single inputs are bounded by the existing 50 MB, 8192-pixel-side, and 16,777,216-pixel limits. Preserve the original source and document deliberate inversions, neutral height, and renderer amount.
Complete the Material Workflow
Import the PNG as scalar data, disable display color transforms, and configure neutral height explicitly. Check subdivision, displacement bounds, shadow settings, and compression in the destination application. The browser preview tests one plane rather than your production topology. If microdetail is also needed, generate a separate tangent-space normal map and avoid applying the same strong relief twice. Compare the final asset at actual camera distances before deciding that a higher-resolution texture or denser mesh is necessary.
Derive a normal texture for finer shading detailFrequently Asked Questions
Does downloading a displacement map change my mesh?
No. A renderer must read the height texture through a displacement setup and evaluate enough vertices or tessellation. The image alone does not modify geometry.
Is the 16-bit displacement map real?
Yes. Export writes sixteen-bit samples in a grayscale PNG. Input decoding may still be eight-bit, so output precision does not imply a sixteen-bit source or measured height.
Why does Mid Level leave the PNG unchanged?
It defines how unsigned heights become signed offsets. Configure the same neutral height in the destination; the PNG contains h, not negative distances.
Are endpoint counts always clipping errors?
No. Authored black and white areas are counted too. Review the preview and source before deciding whether levels, contrast, or detail have discarded useful variation.