3D engine that AI agents drive
Look: sky, HDRI, color look, fog, effects
This is the Look: sky, HDRI, color look, fog, effects reference. Its opening paragraph holds the call conventions every other reference here uses. Then read the task's section: Pick a light setup, HDRI from the catalog, Color look and tone mapping, Fog, Exposure, bloom, contrast, occlusion or Outlines and toon light.
Each recipe is one tool call. expectedRevision is the revision you last read from the previous result, and sessionId
may be left out. Look edits merge: omitted fields keep their value, vectors replace, pointLights replaces the whole list.
Field ranges are in scene_capabilities. A bad value fails the whole batch and keeps the old revision.
tests/skill-examples.test.js applies every block below, so they stay valid.
Pick a light setup
environment.setup is daylight (default), overcast, sunset or studio. Setting it resets key, fill, ambient and
sky to that setup, and fields in the same call still win.
Tool scene_apply:
{ "expectedRevision": 1, "operations": [
{ "type": "set-environment", "environment": { "setup": "sunset", "world": true } }
] }
world: true makes the sky the background too.
Flat dark backdrop for one object (item card, turntable): video has no alpha, so put an emissive box card about 1.5 m behind the
target, square to the camera, with color black, the tint in emissiveColor and emission above 0. A setup such as studio still
lights that card through its environment light, so set environmentIntensity near 0.02 (range 0 to 100) and the emissive alone sets
its colour. Set overall brightness with effects.exposure (0.01 to 16), then measure a corner pixel of a scene_look against the
target hex and scale emission.
Time of day comes from the sun alone: "sky": { "type": "physical", "preset": "golden-hour" } (also sunset, blue-hour) sets sun elevation and azimuth, and the key, sky and haze follow from one atmosphere, so a low sun reads warm with no grading. Put sunElevation or sunRotation beside a preset to move the sun; a preset starts the sky again, so earlier sky fields are dropped.
For a mood that physics does not give, pick the colours: "sky": { "type": "gradient", "stops": [{ "at": 0, "color": "#1a8a9c" }, { "at": 1, "color": "#0e5d73" }], "horizonGlow": { "color": "#19d0e8", "width": 1, "intensity": 1 } } runs from the horizon (at 0) to the zenith (1), adds a bright band at the horizon, and lights the scene and shows in water like any sky. It leaves the sun to the setup. The stop and glow colours show as the hex you give, under any view transform (the sky compensates for it; it assumes exposure 1 and no look or post effect).
HDRI from the catalog
Call scene_asset_catalog (no arguments). It lists two shipped HDRIs, sky-clouds and studio-softbox, two shipped
looks, teal-orange and noir, and every .hdr (kind environment) and .cube (kind look) file in the server's
--assets folder as a 64-character ID. A recipe names an entry and never carries a path or URL. For a bigger HDRI,
tell the user to put a 1k or 2k .hdr (8 MiB at most) in the assets folder and restart the server for its ID.
Tool scene_apply:
{ "expectedRevision": 2, "operations": [
{ "type": "set-environment", "environment": {
"hdri": "sky-clouds", "world": true, "environmentIntensity": 1, "environmentRotation": 0.8, "keyIntensity": 0
} }
] }
keyIntensity: 0 drops the setup's sun when the HDRI has its own; keep it above 0 when you want shadows from the
key light. "hdri": null clears it. ambientIntensity also scales the HDRI's diffuse light and reflections, so 0 makes an HDRI-lit scene black even with a high environmentIntensity. For an HDRI-only scene set keyIntensity and fillIntensity to 0 and keep ambientIntensity above 0.
Color look and tone mapping
environment.look is one of warm, cool, contrast, faded, a shipped cube (teal-orange, noir) or the
64-character ID of a .cube file from scene_asset_catalog. environment.viewTransform is aces (default), agx,
neutral or standard (Blender Standard: sRGB, no tone curve, values above 1 clip; pick it to match a Cycles
reference rendered with Standard).
Tool scene_apply:
{ "expectedRevision": 3, "operations": [
{ "type": "set-environment", "environment": { "look": "teal-orange", "viewTransform": "agx" } }
] }
"look": null removes it. Check the result with scene_look: a look changes the whole frame, so judge skin, white
and shadow tones, not only the accent color.
Fog
environment.fogDensity is the cheap distance haze (0 for none). environment.volumeFog is a lit box of fog with
god rays from the key light: set density above 0 and a minimum/maximum box that holds the camera and the subject.
Tool scene_apply:
{ "expectedRevision": 4, "operations": [
{ "type": "set-environment", "environment": { "volumeFog": {
"density": 0.04, "minimum": [-12, 0, -12], "maximum": [12, 8, 12], "anisotropy": 0.5
} } }
] }
Multiple scattering is opt in. scatterOctaves (integer 1 to 4, default 1 = off) sums octaves that approximate
multiple scattering; multiScatter, multiExtinction and multiAnisotropy (0 to 1, default 0.5 each) shape them and
act only above 1 octave. Each octave costs three extra density taps per step, so start at 2.
{ "type": "set-environment", "environment": { "volumeFog": { "density": 0.04, "scatterOctaves": 3, "multiScatter": 0.5 } } }
keyTransmittance and surfaceTransmittance are also opt in. scene_capabilities with topic: "environment" lists
every volumeFog field and its range.
The sun scatters in volume fog, and so do point and spot lights: at most 8, points first, with no shadows in the fog
(docs/volumetric.md, "Point and spot lights in the fog"). A sunlit closed room with fog uses bake.gridFog
(see light.md). Animate density with an environment track volumeFogDensity (see film-and-animation.md).
Exposure, bloom, contrast, occlusion
effects holds exposure, saturation, contrast, temperature, vignette, grain, ambientOcclusion (0 = off),
bloom and depthOfField (see camera.md). Nested bloom fields merge.
Named post steps, each off until set: colorBalance (lift, gamma, gain, three numbers each), glare (streaks,
count, angle, fogGlow, threshold, size) lensDistortion (distortion, dispersion), stylize (sharpen, kuwahara, posterize, pixelate) and composite (background { color } or { top, bottom }, key { chroma: { color, tolerance, softness } } or { luma: { low, high, invert } }, mask; a key needs a background); ranges in docs/agent-look.md.
colorBalance, stylize and composite take a mask (objects part names, depth { near, far, feather }, invert) to apply only to a hero part or a depth band.
Tool scene_apply:
{ "expectedRevision": 6, "operations": [
{ "type": "set-effects", "effects": { "exposure": 1.2, "vignette": 0.25, "bloom": { "strength": 0.2, "threshold": 1.2 }, "ambientOcclusion": 0.5 } }
] }
Overexposed highlights (flat white sky, clipped lamp): lower exposure or the light's intensity before adding bloom.
Outlines and toon light
{ "expectedRevision": 7, "operations": [
{ "type": "set-environment", "environment": { "lines": { "width": 2, "toon": 3 } } }
] }
"lines": null removes it. scene_capabilities reports lineArt.