Skip to content

Input kinds ​

PBrokkR always ends with a height, and then derives the other maps from it. The input kind says how it gets that height.

The four input kinds: the input, the height made from it, and the lit result

KindYou giveHow the height is madeBest for
Height mapA grey image, white = highUsed as it is, after optional clean-upScans, sculpted heights, heights from other tools
Photo / regular textureA colour photo or an albedoEstimated from the image: lighting removed, then detail at several sizes combined, with dark thin lines pushed down as cracksA photo taken straight on, in soft light
Normal mapA tangent-space normal mapIntegrated back into a heightRebuilding the missing maps of an old asset that only has a normal
Generate (procedural)NothingMade by a generator from a seedFoam, bubbles, fibres, cloudy shapes: see Procedural heights

The app guesses the kind when you open an image. On the command line, say it with --kind:

powershell
pbrokkr-cli generate wall.jpg --kind photo -p photo_rock -o out\wall

Height map ​

A 16-bit PNG gives the smoothest result. An 8-bit height has only 256 levels, which shows as terraces in the normal map; PBrokkR warns about it in the Log panel and you can hide the steps with height_dequantize_blur (about 0.5).

If dark means high in your image (holes drawn in white, for example), turn on Invert relief.

Photo ​

A photo is not a height: bright does not mean high. PBrokkR makes a plausible relief, not a measured one. It works best when:

  • the photo is taken from straight above, with no perspective;
  • the light is soft and even (overcast sky, shade); hard shadows become false relief;
  • the surface is one material, without objects lying on it.

The most useful controls are Fine grain × large forms (which sizes of detail count) and Emphasise cracks. The seamless colour of the photo is written as the albedo.

Normal map ​

Choose the convention the normal map was made with (input_normal_convention: OpenGL has green pointing up, DirectX down). If the relief comes out inside-out, that is the setting to change.

Presets as starting points ​

A preset is a full set of parameters for a kind of input.

PresetMade for
defaultA clean height map
foam_mat, foam_mat_seamA foam height; the second one also makes it tile
photo_rockA rock or ground photo
photo_foam_topdownA foam photo taken from above
from_normalA normal map
proc_bubbles, proc_ropes, proc_billows, proc_foam_mixProcedural heights
synthetic_smoothSmooth test shapes