Motion SDK

Post Effects

Bloom, mist, exposure, tone mapping, colour grading, depth of field, grain and vignette.

post is the lens and the grade. The defaults are tuned, so add effects only to get a look.

Neon rings with wide bloom, mist, a split-tone grade, shallow depth of field and grain.
{
  "camera": { "position": [0, 0.6, 6], "target": [0, 0.3, 0], "fov": 24 },
  "lighting": { "rig": "neon_rim" },
  "environment": { "background": { "solid": "#06050a" } },
  "post": {
    "bloom": 1.2,
    "bloom_radius": 0.7,
    "mist": 0.25,
    "tone_mapping": "agx",
    "exposure": 0.3,
    "grade": {
      "contrast": 1.1,
      "saturation": 1.15,
      "temperature": 0.2,
      "shadows": "#1a3050",
      "highlights": "#ffb070",
      "split": 0.3
    },
    "dof": { "focus": "hero", "aperture": 1.8 },
    "grain": 0.08,
    "vignette": 0.35,
    "chromatic_aberration": 0.15
  },
  "materials": {
    "neon": { "preset": "neon", "color": "#ff2ec4", "emissive_intensity": 6 },
    "cyan": { "preset": "neon", "color": "#00e5ff", "emissive_intensity": 5 }
  },
  "nodes": {
    "hero": {
      "mesh": {
        "geometry": { "torus": { "radius": 0.8, "tube": 0.08 } },
        "material": "neon"
      }
    },
    "far": {
      "transform": { "position": [2, 0.5, -6] },
      "mesh": {
        "geometry": { "torus": { "radius": 0.8, "tube": 0.08 } },
        "material": "cyan"
      }
    },
    "near": {
      "transform": { "position": [-0.9, -0.2, 2.5] },
      "mesh": {
        "geometry": { "sphere": { "radius": 0.2 } },
        "material": "cyan"
      }
    }
  }
}
Neon rings with wide bloom, mist, a split-tone grade, shallow depth of field and grain. apps/docs/examples/post.json · render it with motion-sdk render apps/docs/examples/post.json -t 1 -o post.png

Glow

  • bloom: strength (0.4 by default).
  • bloom_threshold: the HDR brightness that starts glowing (1.2).
  • bloom_radius: 0 is a tight halo, 1 a wide haze.
  • mist: a soft, wide haze around everything bright. 0.2 to 0.4 is plenty.

Exposure and Tone Mapping

exposure is in stops: +1 doubles the light. tone_mapping maps HDR to the screen: neutral (default, keeps brand colours exact), aces (filmic), agx (graceful on neon) or none.

Grade

grade sets contrast, saturation, temperature (+ is warmer), tint, and split-tones shadows and highlights colours with split.

Depth of Field

dof: {"focus": "hero", "aperture": 1.8} keeps a node sharp and blurs what's nearer or farther. Use distance in metres instead of a node. max_blur caps the blur as a fraction of frame height. It's physical, so wide shots stay mostly sharp: pair it with a long lens (fov 15 to 30).

range keeps a band of depth around the focus fully sharp. With an orthographic (2D) camera the blur is the plain depth gap, so blur a background by pushing it back: focus on the drawing, set range to cover its layers (a drawing's layers stack up to 10 units toward the camera), and move the background group back with transform.position z.

Finishing

grain, vignette and chromatic_aberration finish the image. msaa sets antialiasing samples. color_management: "legacy" reproduces old three.js colour handling.

API Reference

PostFx

Post-processing. Defaults are subtle and cinematic.

PropertyTypeDefaultDescription
bloomnumber (0 to 2)0.4Glow around emissive/bright areas, 0..2.
bloom_radiusnumber (0 to 1)—How far bloom spreads: 0 is a tight halo, 1 a wide haze (default 0.5). Neon tubes look best around 0.6-0.8.
bloom_thresholdnumber (0 to 16)—Linear brightness above which pixels bloom (default 1.2: only emissives and hot highlights). Lower it for a dreamier glow.
chromatic_aberrationnumber (0 to 1)0Chromatic aberration, 0..1.
color_managementColorManagement"linear"linear (default): colors are sRGB and lighting is done in linear light. legacy: colors are used as-is and output without decoding, like three.js before r152 (washed-out, flat look); pair with "tone_mapping": "none" to match it.
dofDof—Depth of field from a physical lens (36x24 mm sensor).
exposurenumber (-8 to 8)—Exposure in stops applied to the scene before tone mapping (the background colour is left exact).
gradeGrade—Colour grade after tone mapping.
grainnumber (0 to 1)0Deterministic film grain (seeded), 0..1.
mistnumber (0 to 1)—Diffusion-filter mist, 0..1: a soft glow of the whole image that lifts shadows and haloes lights (painterly, dreamy).
msaainteger (0 to 255)4Multisample anti-aliasing sample count (1, 2, 4 or 8).
pixel_artPixelArt—Pixel-art look: low-resolution rendering drawn as crisp squares, with palette snapping, ordered dither and outlines.
raysRays—Light shafts (god rays) from a point on screen.
styliseStylise—Hand-drawn look: hatching, ink outlines, paper, halftone, posterize and line boil, applied to the whole frame.
tone_mappingToneMapping"neutral"How HDR colour is mapped to the screen.
vignettenumber (0 to 1)0.2Edge darkening, 0..1.

ToneMapping

ValueDescription
"none"No tone mapping (values above 1 clip).
"neutral"Khronos PBR Neutral: leaves colors below ~0.76 untouched so brand and UI colors render exactly, and only rolls off highlights (default).
"aces"ACES filmic (contrasty, saturated highlights shift).
"agx"AgX: filmic with graceful desaturation of very bright colors (neon).

ColorManagement

ValueDescription
"linear"
"legacy"

Grade

A colour grade, applied after tone mapping.

PropertyTypeDefaultDescription
contrastnumber (0.5 to 2)1Contrast around mid grey, 0.5..2 (1 = unchanged).
highlightsColor—Split toning: the hue pushed into the highlights (e.g. orange).
saturationnumber (0 to 2)10 is greyscale, 1 unchanged, 2 vivid.
shadowsColor—Split toning: the hue pushed into the shadows (e.g. teal).
splitnumber (0 to 1)0.3Strength of the split toning, 0..1.
temperaturenumber (-1 to 1)0White balance: -1 cool (blue) .. 1 warm (orange).
tintnumber (-1 to 1)0-1 green .. 1 magenta.

Dof

Depth of field. Blur grows with distance from the focus plane, with a longer lens (narrower fov) and a wider aperture (smaller f-number).

PropertyTypeDefaultDescription
aperturenumber (0.5 to 32)2.8Aperture as an f-number: 1.4 is very shallow, 2.8 cinematic, 8 deep.
distancenumber (≥ 0.01)10Focus distance from the camera in world units (metres).
focusstring—Keep this node in focus (follows it as it moves). Overrides distance.
max_blurnumber (0 to 0.05)0.015Largest blur radius as a fraction of the frame height.
rangenumber (≥ 0)—Depth around the focus that stays fully sharp, in world units. For 2D (orthographic) scenes: a drawing's layers stack up to 10 units toward the camera, so focus on the drawing with a range that covers it and push the background back (transform.position z) to blur it.