What a model file can say
A glTF file (.glb or .gltf) carries more than shapes and how they move.
Pixor also reads how its parts are drawn, and how that changes over a
clip: a spark that is born and dies, smoke that thins out, a fire’s core
that cools from white to red, a hit that flashes. Everything here is set in
the modelling program and travels in the file, so a model looks right the
moment it is opened, in the app and with pxr render, and a project’s own
settings still win.
The full list of keys, for tool makers, is in docs/connectors.md. In Blender, the Pixor add-on’s Object › Pixor and Material › Pixor panels set them, and it turns Blender’s own keys into what Pixor reads (see From Blender).
Layers: what is drawn over what
Pixel artists draw fire, magic and glows as nested flat bands: a dark rim,
a brighter band inside it, a white-hot core in the middle. A 3D model of
that is one shape inside another, and seen from outside the inner ones are
hidden. Give the materials a layer (pxr.layer, 0 to 9) and, within one
part, a higher layer is drawn over a lower one wherever they overlap,
whatever their depth, from every camera:
| Side | Isometric | Top-down |
|---|---|---|
![]() |
![]() |
![]() |
The test campfire: four spheres one inside the other, layers 0 (the dark rim) to 3 (the white core), on one part. The grey puff above is another part, so it is in front or behind by depth as usual.
- Layers count within one part. Against other parts the layered part
keeps to its own depth, so a fire behind a character stays behind it.
Pieces made as separate objects become one part by sharing a part name
(
pxr.part). - A part whose materials are all on one layer (the default, 0) is drawn by depth, exactly as before.
- Give the bright layers no lines (Lines off): the bands are what you want to see, not a line round each.
Hide a part on some frames
A part can be hidden on the frames a clip says, and shown again: the
spark of a hit, a muzzle flash, a piece that breaks off. Pixor reads glTF’s
KHR_node_visibility keyed through KHR_animation_pointer. A hidden part
is not drawn and does not count when the sheet is fitted, so a spark
flying far out on two frames does not shrink the rest on every frame. A
node hidden in the file and shown by no clip is not loaded at all; one that
some clip shows is drawn at rest and stays hidden in the clips that leave
it alone.
Fade a part away
A part, or a material, can be drawn part-way: keyed from 1 down to 0, smoke and dust thin out instead of only shrinking. Pixor draws the part whole, draws the frame again without it, and then takes away exactly the share of the part’s pixels its opacity says, showing what is behind in their place. Nothing is blended, so the colours stay on the palette, and however small or thin the part is the share is kept: a puff of three pixels at half opacity keeps one or two, a ring one pixel wide thins all round. A part keyed fully away is hidden, and not fitted either. While a part fades it has no lines: a line round every gap would draw the gaps.
- On a part:
/nodes/N/extras/pxr/opacity, keyed; orpxr.opacityfor always. - On a material: its base colour’s alpha (
baseColorFactor), keyed. It is measured against the material’s own alpha, so a material that is half see-through to begin with fades from there.
Which pixels go first is the part’s or the material’s pxr.fade
(pxr_fade in FBX, Fade in the Blender add-on, --fade NAME=SPEC on the
command line, which names a material, else a part):
pxr.fade |
|
|---|---|
erode (the default) |
from its silhouette inwards, ring by ring, each ring going as an ordered dither: smoke thins to a smaller, ragged cloud, never a checkerboard |
dither |
an even 4 × 4 ordered dither, fixed to the part where it is on screen, so a part that turns does not crawl |
rim |
from its middle outwards, its outline last: a shield or a bubble that clears and keeps a solid rim |
shrink |
nothing is dropped: the part is scaled down about its own middle as it fades |
Along a length: AXIS:FROM:TO makes the opacity fall along the part, a
column of light thinning out towards its top. AXIS is up, down, +x,
-x, +y, -y, +z or -z in the model’s own axes (glTF’s: up is
+Y); FROM and TO are shares of the part’s length along it in its rest pose:
whole up to FROM, gone at TO. up:0.35:1 is whole for the first third and
thins out to nothing at the top; with erode (the default) the part
narrows as it fades, with dither it is an ordered gradient. Both together:
dither:up:0.4:1. The fade follows the part through every pose, turning or
skinned, and a keyed opacity fades the whole of it on top.
pxr render light-pillar.glb --fade "Pillar core=up:0.4:1"
pxr render blast.glb --clip Explode --fade "Smoke=erode" --fade "Shield=rim"

fades.glb (a fixture): a beam fading along its length, smoke and a small
puff eroding, a thin ring fading as it grows, a turning pool of light
dithered at 0.55 and a shield at 0.6 clearing from its middle round the
block inside it.


The campfire’s clip “Burn”: the spark is born on frame 3 and gone after
frame 6, the smoke thins out, the ash on the log fades by its material’s
alpha, and the core cools down its ramp.

Soft smoke made of balls
Smoke, dust and steam are often built from a heap of balls. Lit ball by
ball, each gets its own lit cap and shadow band, and a cloud reads as a
pile of boulders. A material marked soft (pxr.soft, 0 to 1;
pxr_soft in FBX, Soft in the Blender add-on, --soft MATERIAL[=S] on
the command line) is shaded as one billow: all its pixels take their light
from the shape the whole material makes on screen, a dome rising from its
silhouette, mixed with each ball’s own by the softness, and its balls cast
no shadow on each other. At 1 the cloud is one smooth form; 0.6 to 0.8
keeps a few lumps of the balls in it. Combine it with a fade
(above) and the cloud erodes as it thins.
pxr render blast.glb --clip Explode --soft "Smoke" --soft "Dust=0.5"

smoke_balls.glb (a fixture): the same eleven balls, soft on the left and
eroding away over the clip, lit ball by ball on the right.
Thin working parts: at least a pixel, and spin stripes
A small sprite loses what is thinner than a pixel: at 3 pixels a metre a drone’s arms, its tools, a rider or a gatling’s barrels cover a fraction of each pixel, the background or the hull behind wins it, and what is left is buried under the lines either side. Two part hints keep them (on the node: Object › Pixor in Blender):
- At least 1 px (
pxr.least): wherever the camera sees any of the part, across the line it makes, it takes the pixel, so it stays an unbroken 1 px line in its own colour, over the background or over the part behind it. No line is drawn on it or beside it. A part wide enough at the size you draw does not grow, but it has no lines either: give it to parts that are thin at your sprites’ size. - At least 2 px (
pxr.least: 2; At least 2 px in Blender): the same, and wherever the part is one pixel across it takes the pixel beside it, on the side more of it covers, in its own colour: gun barrels, legs and tails at 5 to 8 pixels a metre stay two pixels wide. - Spin blur (
pxr.blur; Spin blur in Blender and in a part’s Inspector;--blur PART): the part turns too fast to draw sharp (a rotor, a fan, a propeller, a saw turning 60 to 90 degrees a frame strobes as a jittering cross). Each frame draws motion streaks, as a pixel artist does: three thin arcs round its spin axis (the way its vertices spread least), in the blade’s colour, each trailing a blade tip so they turn with the blades every frame, and a faint 1 px rim a shade darker where the tips run against the background; the blades stay solid over them. Nothing is dithered, and the rim is not drawn over the body under the disc, which keeps its colours. No lines on it. - Spin stripes (
pxr.spin): the part spins about its own axis (a gatling’s barrels, a cable reel, a drill). Seen across its axis, from above, the spin does not change its outline, so it reads as still. Half its surface is drawn a ramp step off its shade in diagonal stripes fixed to the surface, and as the part turns the stripes roll across it. Give it a clip that turns the part; the stripes move as it does.
Glow falloff: suns, beams and tails
A glowing material keeps its shading by default: a glowing ball is lit
like any ball, only never into shadow. A sun, a beam or a comet’s tail
wants its light to fall off instead, whatever the key light says. Give
the material a glow falloff (pxr.glow_falloff, −1 to 1; Material ›
Pixor › Glow falloff in Blender):
- Above 0: the top of its ramp where it faces the camera, stepping down the ramp towards its silhouette, in even rings on a sphere and even stripes across a beam (a white core inside cyan). 1 goes down every lit step of the ramp; 0.5 half of them, a softer edge.
- Below 0: the other way round, brightest at its rim and darkest in the middle: a shield bubble, a nebula’s edge, a ring of energy.
Each step’s edge is a narrow ordered dither fixed to the surface. Give the
material its own shades (pxr.ramp) and the rings go exactly through them.
One material does what took three nested glowing parts before.
Glows: flat, and in their own colour
A glowing ball still has a ball’s curve, so with a falloff its rings
follow the mesh: a big glowing sphere reads as a glossy bead, a teardrop
flame as one flat blob at 32 px, and a flat plate facing the camera (a
plus sign, a rune) is one shade all over, since it faces the camera
everywhere. Mark the material flat (pxr.glow_shape: "flat";
pxr_glow_shape in FBX; --glow-shape MATERIAL=flat): its ramp then
steps in even rings from its own outline on screen to a hot middle,
whatever its curve, as a pixel artist draws light. Without a falloff of
its own it goes down the whole ramp (falloff 1); with one, that share.

glows.glb (a fixture): a flat orb, the same orb lit as a ball, a plus
plate, a flame, each one mesh and one material, and a mana orb.
A glow inside glass (the star in a mana orb, a flame in a lantern) shows through all of the glass but its 1 px outline, rim included, in its own colours: at sprite sizes most of a small glass ball is rim, which used to hide the light.
A glow that lights what is near it: pxr.casts (metres) on a glowing
material puts a lamp at the middle of each part of it, riding its node, so
a lantern, a brazier or a reactor lifts the surfaces round it a step or two
up their ramps, as --add-lamp does (Settings › Lamps).
Lines per material: only the outside
Faceted on purpose (craggy cave walls, crystals, low-poly props), a
material’s folds are shading, not shape, and a crease line along each reads
as triangle edges. pxr.lines: "outer" on the material (pxr_lines in
FBX; --lines MATERIAL=outer) draws its lines only round it and where it
meets another part, none on the folds and overlaps inside one part of it.
--lines MATERIAL=none is --no-lines; all puts back what a model file
turned off.
Energy: see-through glows
A material that glows (an emission in the file) and is see-through
(pxr.see_through, 0 to 1) is drawn as light, not as glass: a shield
bubble round a ship, a tractor beam, a force field. Its 1 px edge is drawn
whole in its own colours; the rest of it is an ordered dither of its light
fixed to its surface, as dense as it is opaque where it faces the camera
(0.8 see-through: about one pixel in five) and denser towards its limb, as
a bubble is; between those pixels what is behind it shows lit by it, a
ramp step lighter, and where nothing is behind, nothing is drawn, so space
shows through. It draws no lines, and puts none on what is behind it.
Nothing is blended: every pixel is a colour of the glow’s ramp or of what
is behind.
pxr.see_throughon the material: 0.9 for a faint field, 0.5 for a thick one. A file’s alphaBLENDor transmission says the same.- Give it its own shades (
pxr.ramp) for the edge and the dither, and a glow falloff below 0 (pxr.glow_falloff, above) for a bubble whose rim is brightest. - A clip can still fade the part (
pxr.opacity) on top of it, to raise or drop the shield.
Keys on a material: glow and ramp shift
The same two keys a project has for a material in the Action step, Glow and Ramp shift, can come from the file’s own clips:
- Glow: the material’s emission keyed (
emissiveFactor, or theKHR_materials_emissive_strengthextension’semissiveStrength). How bright it is against how bright it is at rest is the glow key, 0 to 1; below one half it no longer lights itself. A material dark at rest that a clip lights glows only where that clip lights it. - Ramp shift:
/materials/M/extras/pxr/ramp_shift, whole steps along the material’s shades: down to cool a fire’s core from white through yellow and orange to red, or to char a wreck; up for a hit’s flash. Give the material its own shades (pxr.ramp) and the steps go exactly through them.pxr.ramp_shifton the material moves it always.
Eyes: drawn, not shaded
An eye is a few pixels across, and shaded like the rest of the model it
comes out as a cross, a smudge or a ring. Mark the material of the eyes
(pxr.eye, the add-on’s Eye box, --eye MATERIAL) and Pixor draws a
hand-made pixel eye where the eye shows instead, as pixel artists do: one
dark pixel on a small sprite, a dark 2 x 2 with a glint at 32 px, a round
eye with an iris and two glints on a big cute face. Give each eyeball its
own small sphere standing a little off the face: the pass measures where it
shows and how big, over the whole clip, so an eye keeps its size as the head
bobs, and only an eye that really closes is drawn shut.
How it is drawn travels with the material too: pxr.eye_style, the
add-on’s Eye style, is what --eyes takes for one material (white,
slit:2:4, dark:1:3:none:lid=on). Left empty, the style is auto: a
glowing material brighter than its face glows, a light one on a darker face
is a light eye with a pupil, anything else a dark eye with a glint. The
project’s own setting for the material wins over the file’s.
| Style | What it draws | For |
|---|---|---|
dark |
a dark round shape and a glint; from iris= px wide (7) a rim, an iris and two glints |
most faces, cute animals |
white |
a light shape with a dark pupil | dark fur, dark skin, a spider |
glow |
the eye in its own colour (its material’s base shade: a red eye is red, not pale pink) with a hot spot: one lighter pixel at the top, a lit core in the middle from 5 px | ghosts, menacing beasts |
dot |
one dark dot, or 2 x 2 with a glint, never bigger | birds, bugs, many-eyed things |
slit |
a light (or glowing) almond with an upright dark slit, 3 px wide at least | cats, snakes, dragons |
visor |
a glowing bar as wide as the material, 1 px tall (2 from 48 px) | robots, helmets |
bar |
a light almond with a dark level bar across it, 3 px wide at least | goats, frogs, octopuses |
ring |
a light ring round a dark middle from 3 px (a glint in it from 5); smaller, a light eye and its pupil | owls, lenses, robots |
compound |
an oval in the eye’s own colour, a darker shade along the bottom and in facets from 4 px, a glint | flies, bees, mantises |
socket |
a hollow in the line colour with one lit pixel in the eye’s colour (2 x 2 from 5 px), looking where the gaze says | skulls, hoods, machines |
No eye is a flat block. An open eye of four pixels or more always has
one pixel of another colour, whatever its style: a dark eye its glint
(even with the glint set to none), a light one a dark pupil on its inner
side, in the lower middle, a glow its hot spot (a lighter pixel: a dark
pupil in a 2 x 2 glow leaves an L of three lit pixels). A pair mirrors it,
and it stays put through a clip. A shut eye, an arch or a cross is one
colour.
Eyes sit in the face. Three things the pass sees to, whatever the style:
- What is in front of an eye hides it. A leg crossing a spider’s face, a wing, a hat’s brim: the eye is drawn on its own pixels and on the face at its depth, never on a surface three pixels or more nearer the camera.
- Two eyes keep face between them. Eyes side by side are drawn no wider than leaves a pixel, and half an eye’s width, of face between them; two eyeballs that touch at the sprite’s size (one patch, twice as wide as an eye) are told apart by their bulge and drawn a pixel apart. Two flat discs that touch cannot be told apart: space them in the model.
- Half an eye under a lid is shut. An eye of 3 px or more that shows half its height or less (a lid modelled over it, a brow) is drawn as a shut line, not as the half that shows.
- In profile, one eye. Seen from the side, the far eye’s rim showing past the face is not drawn, and from the back no eye is.
The rest are settings after the style: lid=on (the top row a pixel
longer outward: a person’s eye under the brow), gaze= (where a pupil
looks: facing, the way the model faces, by default; ahead, centre,
left…; motion, the way the eye is moving on screen this frame),
mood= (an expression the eyes always have), sizes, colours and
the glint’s place (star: a four-pointed sparkle on eyes of 5 px and
more); pxr help render lists them all.
| Setting | What it does |
|---|---|
brow=flat, angry, sad, raised, mood |
a dark line over each eye, as wide as the eye: level on it, down towards the nose, up towards the nose, a row clear of it, or whatever the mood asks (angry and sad their own, surprised raised, sleepy level). It carries the expression where the eye is too small to |
bloom=on |
a halo round a glowing eye (glow, visor, a slit of a glowing material): the pixels beside it go half way from the face to the glow. Never over what is in front of the eye |
left=, right= |
the model’s left or right eye in a colour of its own (#rrggbb, ink, paper): odd eyes |
blink=SECONDS |
the eyes blink on their own (below) |
In the app these are the Eyes node’s settings in the Style graph
(Brow, Bloom, Left eye colour, Right eye colour, Blink every,
Blink length, Double blinks, Blink seed, Blink rows), and in a
model file the same words after the style in pxr.eye_style
("dark:brow=angry", "glow:1:2:dark=#ff4a3a:bloom=on"). Blinking is
the look’s: one setting for all the eyes of the model.
Blinking on their own. blink=3 (or blink=on, 3 seconds) makes the
eyes of every looping clip blink about that often, with no key to set:
pxr render wolf.glb --clip all --eyes blink=3. The frames are chosen
from the clip’s name and blink_seed=, so every side blinks on the same
frame and the same render always gives the same sheet.
- A loop at least three quarters of the interval long blinks inside
itself, once for every
blinkseconds it lasts, never evenly apart. - A shorter loop would blink on every pass, like a lamp. It is left open,
and the sheet gets a second row after it,
<clip> blink(IdleandIdle blink): the same loop with one blink in it. Play the clip a few times, then its blink row once.blink_rows=offadds no rows; such a clip then never blinks. - A blink lasts
blink_ms=(120): one frame shut at 12 frames a second, half shut, shut, half shut from 25.blink_double=0.2makes one blink in five a double one (shut, open, shut). - Never on a clip’s first frame (a thumbnail shows open eyes) nor its last,
never in a clip played once, never where the clip has eye events of its
own (
--blink,--eye-mood), and never in a clip whose name says it is a blink already (Blink,Slow blink): those are the clip’s say. - A material can refuse:
blink=offin its own style (pxr.eye_style"glow:dark=#ff4a3a:blink=off",--eyes "Lens=ring:blink=off") keeps a lens or a lamp open while the creature beside it blinks. Avisorand asocketnever blink on their own (a bar and a lit pixel have no lid); a keyed lid or--blinkstill shuts them. When no eye of the model blinks, no blink row is added.
An eye shuts when the clip says so (blink=, --blink, an eyes:blink
event) or when both eyes of a pair show cut to half their height by the
model. One eye cut alone, or the one eye of a profile, is taken for a cheek,
a brow or a flame in front of it and stays open, so a model’s lid modelled as
a sliding part does not blink: key the blink instead (the library owl’s
Blink clip is --blink Blink@4).
Expressions are frame events named eyes: and the mood: eyes:happy
from a frame on (arches), eyes:angry, eyes:sad, eyes:sleepy,
eyes:surprised, eyes:hurt (crosses), eyes:open to end it, and
eyes:blink for a frame shut. eyes:gaze-left (right, up, down,
ahead, centre, facing, motion) turns the pupils from a frame on.
--blink Idle@5, --eye-mood Attack@2=angry and --eye-gaze Idle@4=left are the short forms on the command line; they are the eyes’
own and never reach the JSON’s events.
--no-eyes shades the eye materials like any other surface, for a
comparison or a look that wants none. In a project, pxr project set --eye MATERIAL marks one more material as an eye and --no-eye forgets
the ones it marked; --eyes SPEC there is the project’s own drawing.
Every hint
A glTF file keeps these in extras.pxr of a scene, a node or a material —
a place glTF keeps for any program’s own data, so every other tool loads
the file as usual. A value of the wrong type or out of range is ignored,
and so is a key Pixor does not know. pxr inspect FILE prints every hint a
file carries.
On the scene (scenes[i].extras.pxr) a hint is a default for a
new project made from the file — the app’s import, a library item. After
that the project’s own settings rule, and pxr render takes its flags
instead:
| Key | |
|---|---|
name |
the name shown for it, such as "Oak tree" |
preset, view |
the look’s preset (clean, selout, retro4, flat, wireframe) and the view (side, three-quarter, isometric, top-down) |
size, sides |
the canvas, 1 to 1024 pixels (a new project keeps to 8 to 512), and how many sides, 1 to 64 |
turntable |
an action turning the model once in so many frames, 1 to 256 |
dither, crease_angle, convex |
the dither, 0 to 1; how sharp a fold draws a crease, 1 to 179 degrees; the convex line (none, dark, highlight1…) |
fps, root_motion |
frames a second every Sprites node cuts at, 0.5 to 60; keep, in-place or in-place-sway |
once, loop |
clips that play once and clips that loop, a list of names (["Collect", "Break"]) or one string split by commas, whatever their names suggest. Without a word a clip loops unless its name says it ends: death, hit, hurt, jump, land, spawn, fall, collect, break, open, close, pop, burst, destroyed, explode, use, vanish… play once. A clip that plays once has "repeat": "1" in the JSON’s frame tags |
motion |
a loop for a model without clips: spin, bob, swing, pulse, squash or flicker |
effect, effect_at, effect_size |
an effect of its own, such as fire-loop above a torch: its kind, where it starts ([x, y, z] in metres) and its size |
On a material (materials[i].extras.pxr) and on a part
(nodes[i].extras.pxr) a hint says what the model is, so it always
applies, in the app and in pxr render:
| Key | On | |
|---|---|---|
outline |
material, part | false: no lines round it (a glow, a flame, water) |
cycle |
material | true: its shades turn on a colour-cycle action (water, lava, runes) |
unlit |
material | true: one flat colour, no light bands or highlight, as KHR_materials_unlit asks (decals, markings) |
see_through, subsurface |
material | glass or energy (above, Settings); light through wax, skin or jelly, 0 to 1 |
ramp, ramp_shift, glow_falloff, layer |
material | its own shades; steps along them; rings of light; draw order (above) |
fade |
material, part | which pixels go first as it fades, and a fall along its length (above): "erode", "rim", "up:0.4:1" |
soft |
material | 0 to 1: its balls shaded as one billow (above) |
glow_shape |
material | "flat": a glow stepping its ramp from its outline to a hot middle (above) |
casts |
material | metres: a glowing material lights what is near it (above) |
lines |
material | "outer": lines round it only, none on its own folds (above) |
eye |
material | true: an eye, drawn by the Eyes pass rather than shaded (Eyes) |
eye_style |
material | how that eye is drawn, as --eyes says it: "white", "slit:2:4", "dark:1:3:none:lid=on" |
part |
part | its name in Pixor; parts of one name are one part |
priority |
part | 0 to 9: where it covers a thin sliver of a pixel a part of lower priority won, it takes the pixel, so a sword’s blade stays a 1 px line over the hand holding it (0 changes nothing) |
blur |
part | true: spin blur, the disc its blades sweep |
least, spin, opacity, fit |
part | at least 1 px (2: two pixels), spin stripes, faded, left out of the fit |
box |
part | hit or hurt: a hitbox or hurtbox round it in every frame’s JSON |
spring |
any node | true, or {"stiffness": 0.08, "damping": 0.12, "gravity": 1}: it and everything under it swing with the motion (hair, capes, tails), as --spring does |
An FBX file has no place for a nested key, so the same keys go in as
user properties called pxr_ and the key (pxr_part, pxr_outline,
pxr_ramp as one string of #rrggbb colours dark to light…), which
Blender’s FBX exporter writes for custom properties named that way. The
scene’s (pxr_preset, pxr_size…) are read from the file’s global
settings, else from the first model that has each. Springs and an effect’s
place are glTF only.
From Blender
Blender’s glTF exporter writes how a clip moves things, but not keys that change how they are drawn. The Pixor add-on adds them to the file when it exports (Send to Pixor, Update model, the live link and batch export):
| Key this in Blender | Pixor reads it as |
|---|---|
| Object › Visibility › Renders (the camera icon) | the part hidden on those frames |
| Object › Pixor › Opacity | the part faded |
| the Principled BSDF’s Alpha | the material faded |
| the Principled BSDF’s Emission Strength | the material’s glow |
| Material › Pixor › Ramp shift | the material moved along its ramp |
Material › Pixor › Layer sets the layer. Each action is a clip, as before: the keys of an action go into the clip of that name, one key a frame over the action’s frame range.
What this page describes is in the full version; the free browser demo keeps to the default look and the PNG sheet.
Try in browser Get Pixor

