3D scenes: the
.
family
A 3D scene is written in markup. 3D elements start with a dot —
.Scene
,
.Cube
,
.Camera
— so they do not get mixed up with the 2D
*
family (
*Rect
,
*Stack
,
*Transform
draw on a Canvas;
.
elements are drawn by the REEEL GPU engine — the editor downloads it itself and keeps it up to date). Drawn in the editor (Windows/macOS) and on the site; the app does not draw 3D (see "The scene on the site").
SizedBox height:420
.Scene background:#262a33
.Camera at:[3, 2.5, 6] lookAt:[0, 0.5, 0]
.Sun towards:[-0.3, -1, -0.4] shadows:true
.Plane size:8 color:#9aa4b5 roughness:0.9
.Cube at:[0, 0.5, 0] color:#7c90ff
.Track property:rotate
.Keyframe at:0 v:[0, 0, 0]
.Keyframe at:4 v:[0, 360, 0]
.Scene
is a picture: give it room (
SizedBox height:
,
Expanded
). Inside it go only
.
elements;
Text
or
*Rect
inside are rejected with the element's name. There are no separate scene files in the project — the whole scene is in the markup.
Units
-
Meters
,
Y up
;
at:is the center of the object (a 1 m cube on the floor isat:[x, 0.5, z]). -
Degrees
for all angles:
rotate:, the camera'sfov:, the spotlight'sangle:. -
Colors
are ordinary REEEL colors (
#7c90ff,0xFF7C90FF,$theme…). -
Seconds
for
.Keyframe at:.
Elements
| Element | What it is | Its own parameters |
|---|---|---|
.Scene
|
the picture, holds everything |
background
,
camera
,
paused
,
time
,
seek
,
loop
|
.Cube
|
a cube |
size
(a number or
[w, h, d]
)
|
.Sphere
|
a sphere |
radius
|
.Plane
|
a plane facing up — floors, walls |
size
(a number or
[w, d]
)
|
.Group
|
an empty point that carries others | — |
.Repeat
|
its children
count
times; inside,
{index}
and
{count}
|
count
|
.Delay
|
everything inside starts later: tracks, clips, shake, cuts |
by
|
.Model
|
a model from a project file (glTF) with its own materials or recolored |
src
,
fit
,
clip
,
speed
,
loop
,
color
,
metallic
,
roughness
,
emissive
|
.Extrude
|
a flat drawing in
*
shapes or from an SVG file, made solid: a logo, a mark, a plate
|
viewBox
,
src
,
size
,
depth
,
bevel
,
bevelSegments
|
.Text3d
|
a solid word, centered on its point |
text,
size
,
depth
,
weight
,
font
,
align
,
bevel
,
bevelSegments
|
.Letters
|
inside
.Text3d
: its tracks run on each letter, one after another
|
stagger
,
order
,
seed
|
.Camera
|
where we look from |
at
,
lookAt
,
fov
,
near
,
far
,
aperture
,
focus
,
bokeh
,
maxBlur
|
.Sun
|
the sun, parallel rays |
towards
,
intensity
(lux, 4000 by default; from 16000 colors burn out to white),
color
,
shadows
(
true
or
soft
),
size
|
.PointLight
|
a lamp |
intensity
(lumens),
range
,
radius
,
color
,
shadows
(
true
or
soft
)
|
.SpotLight
|
a spotlight |
towards
,
angle
,
softness
(cone edge),
intensity
,
range
,
radius
,
color
,
shadows
(
true
or
soft
)
|
.Fog
|
haze with distance or, with
density
, air in which light rays are visible
|
color
,
start
,
end
,
density
,
size
,
shafts
|
.Cut
|
a cut: from the moment
at
we look through another camera
|
at
,
camera
|
.Shake
|
handheld camera: shake inside
.Camera
|
amount
,
frequency
,
from
,
to
,
seed
|
.Ambient
|
light from everywhere, fills the shadow |
color
,
brightness
(cd/m², 80 by default; 0 — none)
|
.Environment
|
surroundings that metal and gloss reflect: a studio, a cyclorama, a sunset |
preset
,
intensity
,
rotate
,
background
|
.Look
|
the look of the frame: film tonemapping, exposure, bloom, grading, vignette, motion blur; occlusion in corners, floor reflections, smooth edges |
tonemap
,
exposure
,
bloom
,
vignette
,
aberration
,
saturation
,
contrast
,
temperature
,
tint
,
motionBlur
,
occlusion
,
reflections
,
samples
,
distortion
,
raytrace
|
.Track
|
animation of one property of whatever it is inside |
property
,
curve
|
.Keyframe
|
a moment of a track: a value and when it holds |
at
,
v
,
curve
|
.Clip
|
a change of a model's clip, inside
.Model
|
name
,
at
,
from
,
speed
,
blend
,
loop
|
Everything that stands in the scene —
.Cube
,
.Sphere
,
.Plane
,
.Group
,
.Model
,
.Extrude
,
.Text3d
,
.Camera
,
.Sun
,
.PointLight
,
.SpotLight
— has a
name
and a place
at:[x, y, z]
.
.Cube
,
.Sphere
,
.Plane
,
.Group
,
.Model
,
.Extrude
,
.Text3d
,
.Camera
and
.Sun
are rotated with
rotate:[x, y, z]
(degrees: turn around y, then tilt x, then roll z).
Scale
scale
(a number or
[x, y, z]
) — on
.Cube
,
.Sphere
,
.Plane
,
.Group
,
.Model
,
.Extrude
and
.Text3d
.
Material — on
.Cube
,
.Sphere
,
.Plane
,
.Model
,
.Extrude
and
.Text3d
:
color
,
metallic
(0…1),
roughness
(0…1, 0.5 by default),
emissive
(glow color) and
emissiveStrength
(how many times brighter than its color, 1 by default).
reflectance
(0…1, 0.5 by default) — how much a non-metal mirrors its surroundings: 0.5 is paint, plastic, varnish (4 % of light head-on, more only at a grazing angle), 1 is polished lacquer, a grand piano, a wet floor (16 %). Visible at low
roughness:
; metal does not read it — its mirror is its color.
doubleSided
draws both sides of a face — on
.Cube
,
.Sphere
and
.Plane
.
texture
puts an image on the faces — on
.Cube
,
.Sphere
and
.Plane
: a PNG from the project (
texture:"data/tex/foam.png"
);
color
tints it (without
color
, the image is as it is).
textureRepeat
— how many times it repeats across the face:
[across, up]
or one number for both directions, 1 by default. A wall of acoustic foam is one tile repeated many times:
.Cube size:[6, 3, 0.1] texture:"data/tex/foam.png" textureRepeat:[10, 5]
. The first frame already has the image.
Light is aimed with
towards:[x, y, z]
— where the rays go (
.Sun towards:[0, -1, 0]
is noon). The camera uses
lookAt:[x, y, z]
, the point in the center of the frame.
Without a
.Camera
a camera is placed at
[0, 2, 6]
, looking at the origin; without light, a
.Sun
from above. With several cameras
.Scene camera:"name"
picks one.
.Scene paused:true time:1.5
shows one frame instead of playing.
Over an image
A transparent background is
background:transparent
(or
#00000000
): where nothing is drawn, what is under the scene shows through (for example, in a
Stack
with an
Image
). Without a
.Plane
shadows have nothing to fall on.
Nesting
An object inside an object moves with it; positions inside are relative to the parent. A repeating part is an ordinary macro:
@Leg at:[0, 0.36, 0]
.Cube at:$at size:[0.08, 0.72, 0.08] color:#6b4423
SizedBox height:360
.Scene
.Group name:"table" at:[0, 0, -1] rotate:[0, 25, 0]
.Cube at:[0, 0.75, 0] size:[1.6, 0.08, 0.9] color:#8b5a2b
$Leg at:[-0.7, 0.36, -0.38]
$Leg at:[0.7, 0.36, -0.38]
$Leg at:[-0.7, 0.36, 0.38]
$Leg at:[0.7, 0.36, 0.38]
Animation
A
.Track
goes INSIDE the thing it moves, with
.Keyframe
children — the same table as
*Track
/
*Keyframe
in a 2D film, but the engine plays it (the preview and the video export match frame for frame).
property:
|
On what |
v:
|
|---|---|---|
at
|
anything |
[x, y, z]
meters
|
rotate
|
anything |
[x, y, z]
degrees; a full turn is simply
0 → 360
|
scale
|
anything |
a number or
[x, y, z]
|
color
|
a mesh — its surface; a light — the light's color | color |
emissive
|
.Cube
,
.Sphere
,
.Plane
|
glow color |
intensity
|
.Sun
,
.PointLight
,
.SpotLight
|
lux (
.Sun
), lumens (the others)
|
fov
|
.Camera
|
degrees |
focus
|
.Camera
with
aperture:
|
meters to the sharp plane — a focus pull |
lookAt
|
.Camera
|
a point
[x, y, z]
— the gaze moves from one to another
|
orbit
|
.Camera
with
lookAt:
|
[angle, height, distance]
around the lookAt point
|
curve:
on a
.Track
is the default curve (otherwise
linear
);
curve:
on a
.Keyframe
eases the segment
ending
at that key, as with
*Keyframe
. Any curve name works (
easeInOutCubic
,
bounceOut
,
elasticOut
,
step
…). The scene loops over its longest track;
loop:false
plays it once and holds the last pose.
.Sphere at:[0, 2.5, 0] radius:0.4 color:#ef4444
.Track property:at
.Keyframe at:0 v:[0, 2.5, 0]
.Keyframe at:1.2 v:[0, 0.4, 0] curve:bounceOut
.Keyframe at:2 v:[0, 2.5, 0] curve:easeOutQuad
Light over time and glow
Light changes with
intensity
and
color
tracks, a mesh glows with an
emissive
track — this is the logo reveal: the rim light builds up, then the logo itself lights up.
.Scene background:#05060a
.Ambient brightness:10
.Camera at:[0, 0.6, 4] lookAt:[0, 0.5, 0] fov:35
.SpotLight name:"rim" at:[0, 3, -3] towards:[0, -0.6, 1] intensity:0 color:#8ab4ff
.Track property:intensity curve:easeOutQuad
.Keyframe at:0.5 v:0
.Keyframe at:1.8 v:400000
.Cube name:"logo" at:[0, 0.5, 0] size:[1.6, 0.6, 0.2] color:#111318 emissive:#000000
.Track property:emissive curve:easeOutQuad
.Keyframe at:1.8 v:#000000
.Keyframe at:2.6 v:#ff5a36
The units are the same as for static parameters. A color track that has arrived at a color draws exactly that color, as if written statically.
.Ambient brightness:
sets how dark the shadow is: low — a reveal out of darkness; the default (80) — even product lighting.
Depth of field
aperture:
opens the
.Camera
lens (f-stops: 1.4 — strong blur, 8 — weak). What is
focus:
meters away is sharp, and without
focus:
the
lookAt:
point is, and the focus follows it as the camera moves. A
focus
track is a focus pull:
.Scene background:#06070b
.Environment preset:studio
.Look bloom:0.2 vignette:0.35
.Camera at:[0, 0.9, 3.2] lookAt:[0, 0.65, 0] fov:24 focus:2.4 aperture:1.4
.Track property:focus curve:easeInOutCubic
.Keyframe at:1.5 v:2.4
.Keyframe at:2.5 v:4.1
.Sphere name:"front" at:[-0.5, 0.75, 0.8] radius:0.35 color:#e6e6e6 metallic:1 roughness:0.08
.Cube name:"back" at:[0.6, 0.6, -0.9] size:0.5 color:#141821 roughness:0.2
The blur is physical: it is noticeable with a long lens (
fov:
15–25), a camera closer to the subject and planes spread out in depth. With
fov:50
from 5 m almost everything is sharp.
bokeh:false
is a simple blur instead of round highlights.
Models from files:
.Model
.Model src:
loads a glTF file from the project (
.glb
, or
.gltf
with its files next to it): a product, a character, a prop — with its own materials.
src:
is a path from the project root. The model's size is whatever its author made it, so
fit:
fits the largest side into that many meters and stands the model with its bottom on
at:
.
.Scene background:#06070b
.Environment preset:studio
.Look bloom:0.2 vignette:0.35
.Sun towards:[-0.3, -1, -0.5] intensity:1500 shadows:true
.Camera at:[0, 1, 3.5] lookAt:[0, 0.7, 0] fov:30
.Cube name:"plinth" at:[0, 0.15, 0] size:[1.6, 0.3, 1.6] color:#2a2d33 roughness:0.6
.Model name:"product" src:"models/headphones.glb" fit:0.8 at:[0, 0.3, 0]
.Track property:rotate
.Keyframe at:0 v:[0, 0, 0]
.Keyframe at:6 v:[0, 360, 0]
It moves, rotates and takes tracks like any object.
The file's materials stay unless told otherwise.
color:
,
metallic:
,
roughness:
,
emissive:
recolor ALL parts of the model, and only what is named changes:
metallic:1 roughness:0.2
turns red plastic into red metal,
color:#c9ced6
adds silver (and replaces the file's texture). One part cannot be painted differently from the rest this way — that takes a separate file.
.Model name:"arm" src:"models/arm.glb" fit:1.6 color:#c9ced6 metallic:1 roughness:0.22
Animation clips:
clip:
and
.Clip
A glTF often carries a skeleton and named clips.
clip:
on
.Model
plays a clip from the start of the scene; a child
.Clip
switches to another one at the moment
at:
: as a cut, or with
blend:
as a smooth transition over that many seconds (0.2–0.5 for a change of gait; the previous clip keeps playing meanwhile). Clips run on the scene's clock: the preview and the export match frame for frame.
.Scene background:#0b0c10
.Environment preset:soft
.Sun towards:[-0.3, -1, -0.5] intensity:1500 shadows:true
.Camera at:[0, 1.2, 4.5] lookAt:[0, 0.9, 0] fov:35
.Plane size:12 color:#202228
.Model name:"robot" src:"models/robot.glb" fit:1.8 clip:"Idle"
.Clip at:2 name:"Walk" blend:0.4
.Clip at:5.5 name:"Wave" loop:false blend:0.3
speed:
— clip seconds per scene second; below zero the clip plays BACKWARDS, from the end unless
from:
says otherwise (after a bend,
.Clip name:"Bend" speed:-1 loop:false
straightens the arm).
loop:
(true by default) restarts the clip,
loop:false
holds the last pose,
from:
(on
.Clip
) — which second of the clip to start from. Names come from the file: with a name that is not in the file the scene is not drawn, and the error lists the ones that are. A bone that the new clip does not move returns to the file's pose rather than holding the pose of the previous clip. Walking in a clip is usually in place: to make the model walk across the floor, give it a
.Track property:at
.
Solid logos and text:
.Extrude
and
.Text3d
The drawing is drawn flat with the same
*
shapes as in a 2D
*Artboard
—
*Rect
,
*Circle
,
*Polygon
,
*Path
(SVG
d
),
*Line
,
*Arc
,
*Text
with the same parameters — but inside
.Extrude
, which extrudes it by
depth
meters. A whole word is shorter to write as
.Text3d
.
SizedBox height:360
.Scene background:#06070b
.Environment preset:studio
.Camera at:[0, 0.9, 5] lookAt:[0, 0.9, 0] fov:32
.Text3d "REEEL" at:[0.45, 0.9, 0] size:0.7 depth:0.18 bevel:0.014 weight:800 color:#d8d8dc metallic:1 roughness:0.22
.Track property:rotate curve:easeOutCubic
.Keyframe at:0 v:[0, -35, 0]
.Keyframe at:2.5 v:[0, 0, 0]
.Extrude at:[-1.55, 0.9, 0] viewBox:[100, 100] size:0.75 depth:0.18 color:#1a1c22 emissive:#ff5a36
*Arc cx:50 cy:50 r:40 startAngle:-60 sweep:300 strokeWidth:14 cap:round
*Circle cx:50 cy:50 r:14
-
The drawing is in
viewBoxunits ([1, 1]by default), y down, as in 2D; its width becomessizemeters (1 by default), its center stands atat:. -
Overlapping shapes merge into one body; a contour inside another (the hole of an "O", the inside of a ring in a
*Path) is a hole. -
A shape with
strokeWidthand nofillis its OUTLINE made solid: a ring from*Circle, a frame from*Rect, an arc from*Arc(cap:roundrounds the ends). There is no*LinewithoutstrokeWidth. -
Color and material are on
.Extrude(color,metallic,roughness,emissive); colors on the*shapes themselves are not used. A two-color mark is two.Extrudes at one point, each with its own parts; where the parts overlap, give one a largerdepth— two faces in one plane flicker. -
Letters use the engine's font (Inter),
weight:100–900 orbold;.Text3d font:"fonts/x.ttf"takes a font from the project. The line is set the way the font intends, with kerning ("AV", "To" move closer); ligatures are off, so each character is one letter. -
A logo drawn by a designer is a file:
.Extrude src:"logos/mark.svg"makes an SVG solid — its paths (all SVG path commands), rectangles, circles, ellipses, lines and polygons, with group transforms. The file's viewBox becomes the drawing's viewBox (soviewBox:is not written),size:is its width in meters;*shapes inside are in SVG units.src:"logos/brand.svg#mark"takes ONE element of the file by itsid(a group or a shape) where it stands in the file — the part of the logo you need, which still follows the file; there is no need to redraw it by hand. A shape with no fill and a stroke is a solid outline. Text in the file has to be converted to curves and<use>expanded: otherwise there is an error naming it. The file's colors are not used — the color is on.Extrude; masks, clips and gradients are skipped. -
bevel:rounds the edge of the face, where the highlight catches — the difference between a cut and a cast metal letter. In meters, less than half the depth;bevelSegments:1is a flat chamfer, 3 (the default) a rounding. For letters — aboutsize/50 for bold ones (weight 600 and up) andsize/100 for regular ones: any wider and the engine refuses where a bowl or an arc meets a stem. -
.Extrudemoves, rotates and glows like any object:.Track property:emissiveis the classic "logo lights up".
Letter by letter:
.Letters
.Letters
inside
.Text3d
runs its
.Track
s for each letter, each one
stagger
seconds later than the previous: they fall, flip, grow, light up.
SizedBox height:360
.Scene background:#06070b
.Environment preset:studio
.Camera at:[0, 0.4, 4] lookAt:[0, 0.3, 0] fov:32
.Text3d "REEEL" at:[0, 0.3, 0] size:0.7 depth:0.18 bevel:0.014 weight:800 color:#d8d8dc metallic:1 roughness:0.22
.Letters stagger:0.09
.Track property:at curve:easeOutBack
.Keyframe at:0 v:[0, 1.2, 0]
.Keyframe at:0.7 v:[0, 0, 0]
.Track property:rotate curve:easeOutCubic
.Keyframe at:0 v:[-100, 0, 0]
.Keyframe at:0.7 v:[0, 0, 0]
.Track property:scale
.Keyframe at:0 v:0.001
.Keyframe at:0.15 v:1
-
Inside
.Lettersa track moves the letter FROM ITS PLACE:atis an offset ([0, 0, 0]is where it stands in the word, so a fall ends at[0, 0, 0]),rotateturns it around its own center,scalegrows it from the center.colorandemissiveare its own. -
order:—forward(the default),reverse,center(from the middle to the edges),random(seed:— a different order); spaces are not letters. -
Tracks on the
.Text3ditself still move the whole word — together with the movement of the letters. -
Until its turn a letter holds the first key: growth starts at
v:0.001, a fall — from a height.
Light shafts:
.Fog density:
With
density
the fog becomes air the light goes through: a spotlight draws a cone, the sun draws rays between shadows, and an object under a ray cuts a shadow into it.
SizedBox height:360
.Scene background:#05060a
.Ambient brightness:0
.Fog density:0.06 color:#ffffff size:16
.Camera at:[0, 2, 8] lookAt:[0, 1.6, 0] fov:40
.SpotLight at:[0, 4.5, 0] towards:[0, -1, 0] angle:20 intensity:800000 color:#dfe6ff shadows:true
.Plane size:12 color:#202228 roughness:0.9
.Cube at:[0, 0.5, 0] color:#e8e8ea roughness:0.4
The air should be thin: 0.03–0.1. The engine dims light in the air by density × the size of the whole volume, so above 0.1 the rays get dim again, and
size:
(the side of the air cube around the origin, 20 m by default) should be the size of the scene, not of the world. Rays are visible only against dark: a dark background,
.Ambient brightness:0
.
shafts:false
leaves the air without rays; without
start:
/
end:
there is no distant haze. The fog's
color:
is MULTIPLIED by the light's color: a bluish fog under a bluish light gives deep blue. It is better to leave the air white and color the ray with the spotlight's color.
Repetition and cascade:
.Repeat
and
.Delay
.Repeat count:
writes its children
count
times; inside,
{index}
is 0, 1, 2 …, and
{count}
is their number.
.Delay by:
shifts everything inside that many seconds later. Together this is a cascade: one movement, one after another.
SizedBox height:360
.Scene background:#06070b
.Environment preset:studio
.Camera at:[0, 1.6, 6] lookAt:[0, 0.4, 0] fov:34
.Plane size:30 color:#0d0f14 roughness:0.8
.Repeat count:7
.Delay by:{index * 0.12}
.Sphere at:{[index * 0.7 - 2.1, 0.3, 0]} radius:0.28 color:#e8e8ea metallic:1 roughness:0.18
.Track property:scale curve:easeOutBack
.Keyframe at:0 v:0.001
.Keyframe at:0.6 v:1
.Track property:at curve:easeOutCubic
.Keyframe at:0 v:{[index * 0.7 - 2.1, 1.2, 0]}
.Keyframe at:0.6 v:{[index * 0.7 - 2.1, 0.3, 0]}
A ring or a grid is arithmetic on the index.
sin
and
cos
take RADIANS (a full turn is 6.2832), while
rotate:
takes degrees; a 3 × 3 grid is
count:9
,
index % 3
and
floor(index / 3)
:
.Repeat count:12
.Cube at:{[2 * sin(index * 6.2832 / count), 0.15, 2 * cos(index * 6.2832 / count)]} rotate:{[0, index * 360 / count, 0]} size:0.3 color:#ffffff
Positions from the index are written as an expression
{[…]}
— a bare
[index, 0, 0]
is not evaluated. Names inside
.Repeat
are better left out (
sphere1
,
sphere2
, …) or made to include the index:
name:{"dot" + index}
.
.Repeat
and
.Delay
are not objects themselves: their children stand where they stand; delays inside delays add up. Until its delay an object holds the first key — growth from nothing starts at
v:0.001
. In a 3D scene the loop is
.Repeat
, not the 2D
*Repeat
.
Surroundings:
.Environment
Metal and gloss need something to reflect — without surroundings polished metal looks like a black silhouette.
.Environment
(one, directly in
.Scene
) puts the scene in a place:
.Scene background:#06070b
.Environment preset:studio rotate:30
.Look bloom:0.25 vignette:0.4 contrast:1.06
.Camera at:[0, 1.1, 4.2] lookAt:[0, 0.5, 0] fov:32
.Cube name:"plinth" at:[0, 0.15, 0] size:[2.4, 0.3, 1.6] color:#2a2d33 roughness:0.6
.Sphere name:"chrome" at:[-0.55, 0.75, 0] radius:0.45 color:#e6e6e6 metallic:1 roughness:0.08
.Cube name:"gloss" at:[0.6, 0.62, 0.05] size:0.6 rotate:[0, 25, 0] color:#141821 metallic:0.3 roughness:0.15
-
preset:—studio(the default): a dark room with softboxes, a product shot;soft: a seamless white cyclorama;sunset: a warm sky and a sun over dark ground. -
rotate:(degrees) moves the highlights across the surface. -
background:trueshows the surroundings behind the scene instead of.Scene background:. -
The surroundings light softly and from everywhere but cast no shadows: keep one
.Sunor.SpotLightwithshadows:true.
Film look:
.Look
With
.Look
the scene is rendered in HDR through a film tonemapper: brights roll smoothly into highlights instead of clipping to flat white; a glow can be brighter than its color and gets a halo (
bloom
); the frame gets grading. Without
.Look
it is a plain picture without these effects.
.Scene background:#020308
.Look bloom:0.35 vignette:0.45 contrast:1.08 temperature:0.04
.Track property:exposure curve:easeOutCubic
.Keyframe at:0 v:-6
.Keyframe at:1 v:0
.Ambient color:#9fb4ff brightness:6
.Camera at:[0, 0.7, 5] lookAt:[0, 0.5, 0] fov:35
.SpotLight name:"rim" at:[0, 3, -2.5] towards:[0, -0.8, 1] angle:35 intensity:900000 color:#8ab4ff
.Cube name:"logo" at:[0, 0.5, 0] size:[1.8, 0.6, 0.25] color:#111318 metallic:0.8 roughness:0.25 emissive:#000000 emissiveStrength:6
.Track property:emissive curve:easeOutQuad
.Keyframe at:2 v:#000000
.Keyframe at:2.8 v:#ff5a36
-
tonemap:—tony(the default) keeps colors;agxis film, bright colors wash out (an orange logo glow turns salmon);acesis juicier and pulls warm. For a brand color, use the default. -
exposure:in stops; anexposuretrack inside.Lookfrom −6 to 0 develops the image out of black. Tracks also takebloomandvignette. -
bloom:0.2–0.4 is a cinematic glow; the halo goes to what is brighter than white: give glowing thingsemissiveStrength:3–8. -
vignette:0.3–0.5;aberration:0.01–0.03;contrast:/saturation:around 1.05–1.15;temperature:±0.05–0.15. -
distortion:— lens distortion: 0.05–0.15 is a wide-angle bend, more is a fisheye; negative pulls lines inward. The frame zooms in slightly, the edges do not smear; titles near the edges bend the most. -
motionBlur:— motion blur in the export, like a camera shutter: the share of the frame it is open (0.5 is the cinematic 180°). A fast fly-around, rotation and shake do not "strobe" at 30 fps. The preview stays sharp; the export takes about 8 times longer.
Studio shot: contact with the floor, soft shadows, a glossy floor
Three
.Look
words and one on the light turn the render into a product shot:
.Scene background:#0b0c10
.Environment preset:studio intensity:0.8
.Look occlusion:true reflections:true samples:16 vignette:0.35
.Camera at:[2.6, 1.6, 4] lookAt:[0, 0.45, 0] fov:30
.SpotLight name:"key" at:[2, 4.5, 2.5] towards:[-0.4, -1, -0.5] angle:40 intensity:1200000 shadows:soft radius:2
.Plane size:12 color:#16171c roughness:0.08
.Cube name:"product" at:[0, 0.5, 0] size:1 color:#d03a2a roughness:0.35
-
occlusion:true(orlow/medium/high/ultra) — shading where surfaces meet: the floor darkens at the foot of an object, and the object stands instead of floating. It darkens light "from everywhere" (.Environment,.Ambient), not the direct light of a lamp: in a scene with one spotlight it is barely visible. For example, with a cube the floor on the shadow side is ~10 % darker than in the open, the whole floor ~5 %. -
reflections:true— a glossy floor (roughness:0.05–0.2) reflects what stands on it; a matte one (0.9) does not. Only what the camera sees is reflected. A dielectric at an angle reflects about a tenth of the light: on a black floor the reflection reads; on a light one it is a darker patch where the object blocks the reflection of the bright studio. -
shadows:softon.SpotLight,.PointLightor.Sun— the edge of the shadow blurs with distance from the object, as under a large softbox. How much —radius:on the spotlight and the lamp (2 by default),size:on the sun (8 by default). This is not the spotlight'ssoftness:— that one is about the edge of the light cone. -
samples:— how many renders of each moment the export averages: the lens shifts within the pixel, the noise is drawn anew — edges are smooth, soft shadows and reflections are clean. 16 is a clean film; the export takes that many times longer. Without it — 64 withraytrace, 8 whenocclusion,reflectionsor a soft shadow is on, otherwise 1. -
The preview is one render: soft shadows in it are grainy, and with
occlusionorreflectionsedges are jagged. Judge by the export and the contact sheet.
Path tracing:
.Look raytrace:true
raytrace:true
— the frame is path traced, not rasterized: light bounces off walls and the floor (a red wall tints the floor next to it), shadows are wider the bigger the source. Light comes from
.Sun
, glowing surfaces (
emissive:
) and lamps:
.PointLight
is a small glowing sphere of its power,
.SpotLight
a tiny sphere in a black shade open to its angle.
.Fog
with
density:
glows in the rays on top of the traced frame;
.Environment
and
.Ambient
take no part in tracing.
- The live preview draws the scene with rasterization (the same fog, rays and cones, without bounced light) until the tracing button on the preview panel is turned on; then each frame adds a sample, and while the picture does not change, it clears up.
-
The export always traces and averages
samples(64 by default). The screen-spaceocclusionandreflectionsare not needed with tracing and are not drawn. -
A graphics card without hardware ray tracing, and a web page, draw the scene as without
raytrace, and this is written to the log. The engine the editor downloads traces (on Apple silicon via Metal) and denoises the exported film.
Camera moves: orbit, gaze shift, handheld camera
.Scene background:#06070b
.Environment preset:studio
.Camera name:"orbit" lookAt:[0, 0.6, 0] fov:30
.Track property:orbit curve:easeInOutSine
.Keyframe at:0 v:[-45, 0.9, 4.6]
.Keyframe at:3 v:[25, 0.6, 4]
.Shake amount:0.35 frequency:0.8 to:3
.Camera name:"macro" at:[0.2, 0.85, 2.6] lookAt:[-0.6, 0.75, 0.6] fov:22 aperture:1.4
.Track property:lookAt curve:easeInOutCubic
.Keyframe at:3.6 v:[-0.6, 0.75, 0.6]
.Keyframe at:5.2 v:[0.6, 0.6, -0.7]
.Cut at:0 camera:"orbit"
.Cut at:3 camera:"macro"
.Sphere at:[-0.6, 0.75, 0.6] radius:0.45 color:#e6e6e6 metallic:1 roughness:0.1
.Cube at:[0.6, 0.6, -0.7] size:0.6 color:#141821 roughness:0.2
-
property:orbit— an orbit along a true arc around thelookAt:point ([angle, height, distance]: degrees, 0 — in front, 90 — on the right; meters above the point; meters from it). The camera looks at the point. Not together with anattrack. -
property:lookAtshifts the gaze; with an open lens and nofocus:of its own the focus follows the gaze. -
.Shakeinside.Camerais a handheld camera on top of the aim:amount:degrees,frequency:Hz,from:/to:(required),seed:. One seed — the same shake in the preview and the export.
Editing:
.Cut
Cameras get names, and
.Cut
cuts stand directly in
.Scene
: from the moment
at
the scene is seen through the camera
camera
. The switch is exact — the frame at
at
is already the new shot. Each camera has its own tracks: one shot pushes in, the next drifts.
.Scene background:#0b0f1a
.Camera name:"wide" at:[5, 2.5, 6] lookAt:[0, 0.5, 0] fov:40
.Camera name:"close" at:[-1.2, 0.9, 1.8] lookAt:[0, 0.6, 0] fov:30
.Cut at:0 camera:"wide"
.Cut at:2.5 camera:"close"
.Cube at:[0, 0.5, 0] color:#7c90ff
Before the first cut the scene is seen through
.Scene camera:
(or the first camera). A cut inside an object and a cut to a camera that does not exist are rejected with the name. A scene with cuts lasts at least until the last one.
In a film: titles, sound, export
Inside a
*Scene
the scene takes the film's time —
seek:$t
— and becomes one more layer of the film:
*Text
on top of it,
*Sound
under it,
*Layer
turns it on, and the film export writes everything into one file, each 3D frame at its own moment. The 3D picture fills the film frame.
*Scene duration:6s fps:30 time:@t size:[1920,1080] viewBox:[1920,1080]
.Scene seek:$t background:#05060a
.Camera at:[0, 0.6, 6] lookAt:[0, 0.5, 0] fov:40
.Track property:at
.Keyframe at:0 v:[0, 0.6, 6]
.Keyframe at:6 v:[0, 0.6, 3.5] curve:easeInOutSine
.Cube at:[0, 0.5, 0] color:#7c90ff
*Layer in:3s
*Text "REEEL" x:960 y:860 size:96 weight:bold align:center color:0xFFFFFFFF
-
Key times are film seconds. Under
seek:the scene does not loop: after the last key the last pose holds.loop:truewraps the film's time by the length of the 3D scene (a turntable under a long clip). -
{t}inside a*Layeris still the film's time: a layer resets the clock of its*Tracks, not the variable. A scene that starts together with a layer at 3 s isseek:{t - 3}. -
Without
seek:a scene inside a film plays on its own clock, and neither the slider nor the export moves it. -
A parameter of a thing can be an expression of the film's time —
.Sphere at:{[sin(t), 0, cos(t)]},.Camera at:{[0, 1, 6 - t * 0.4]}— and the thing moves, as in 2D. The parameters that move are those a.Trackchanges:at,rotate,scale,color,emissive,intensity,fov,lookAt; the others (radius:,size:) do not change witht, and the scene says so in words — grow the thing throughscale:{…}. The price: each such parameter is a key on every frame of the film, and a scene has no more than 200 000 of them. A crowd is moved as a whole: lay it out byindexand rotate or move the.Groupit sits in — one track for everyone.
See also
- Render3dViewport — a scene from a JSON file with a toolbar (the old way).
-
`*` Render primitives
— 2D graphics and
*Trackfor films.
The scene on the site
The site draws
.Scene
live — with the same engine as the editor, from the same markup. The visitor's browser draws it, so there are differences.
-
WebGPU is required.
A browser without it shows a box in the scene's
background:color and nothing else. Do not leave the only copy of important text inside the scene. - The engine is about 6 MB , downloaded once and only when the scene comes close to the screen. While it loads, the background color is visible.
-
Files the page downloads live in
data/. A model (.Model src:) and a font (.Text3d font:) are downloaded by the visitor's browser, and the site serves onlydata/:src:"data/models/chair.glb". A file elsewhere in the project is drawn in the editor, and on the site it is refused with exactly that message. An SVG for.Extrude src:is read when the page is built and can live anywhere. - A scene that could not be read is not drawn at all — a missing file, a model without the named clip: the site build names the reason, and the box stays the background color.
-
shadows:softon the site is an ordinary hard shadow..Look samples:andmotionBlur:belong to the exported film and have no effect on the page — as in the editor's live preview. -
The clock belongs to the page.
On its own the scene loops over its longest
.Track;paused:true time:2sets one moment;seek:$t(orseek:{…}) drives the scene by a page variable — a slider, scrolling.
State @t:0
Column
SizedBox height:420
.Scene seek:$t background:#0b0f1a
.Camera at:[3, 2.5, 6] lookAt:[0, 0.5, 0]
.Cube at:[0, 0.5, 0] color:#7c90ff
.Track property:rotate
.Keyframe at:0 v:[0, 0, 0]
.Keyframe at:4 v:[0, 360, 0]
Slider value:$t min:0 max:4 onChanged:(value){t = value}
In the app 3D is not drawn: for the app, export the scene as a film or a frame and put the file in —
Video
,
Image
.