Exporting to engines
The Export window
Export (Ctrl+E) sits right after Import in the window header, and opens a window drawn like Import’s (D51):
- Asset pipeline — the one the header’s Asset select shows, to start with. What it writes is designed in the asset graph.
- Export folder — type a path, or Choose… one. The project keeps it.
- Export now — the project as it is open, saved or not: exporting never saves it, and an untitled project exports as it is.
Before you press Export the window lists every file the export will
write, as pxr names names them: each by its path in the folder and its
kind (sprite sheet, JSON, GIF…), and will replace on a file the folder
has already. The list is found again — with a small loader, never holding
the window up — when you change the Asset pipeline, the folder or the
project. A pipeline that cannot be exported as it is (two outputs writing
one file, say) says why there, and Export waits until it is fixed.
Pressed, those same rows, in their places, are the export: each with a loader until it is written, then a tick, its size, Open (in the program your system opens it with) and Show folder. What goes wrong is said on the file it stopped on. Stop ends an export half way: what was written stays, the file being written is removed. The window can be closed while it runs; Export opens it again.
It runs exactly what the command line runs: pxr render PROJECT --pipeline NAME -o FOLDER, in a process of its own, so Pixor stays
responsive — on a snapshot of the project as it is open, written to the
generated folder (with its files’ paths made absolute) and removed when
the export ends. The files are named as pxr render names that project’s:
after the project, or an untitled one after its model. Every file is written fresh from the
pipeline: what the Asset graph’s nodes Generate is never copied.
Every file goes into the folder. The sheet takes its file name from the
project’s PNG node (out/hero.png writes FOLDER/hero.png); a file whose
path is under the sheet’s folder keeps its place below FOLDER, and any
other path (an archive, an animation, icons named elsewhere)
keeps only its last part.
What an export writes
Every export writes a sheet: one row per action and side, one column
per frame, all cells the same size, with the pivot on the same pixel in each.
Add File nodes to the sheet in the asset graph (or use
--export on the command line) to get files next to it with the same
name. Each is a node wired from the sheet, with its own settings.
--export all writes every format below except p8, the console tiles
(2bpp, chr, md), video, webp, the emotes (twitch, discord,
7tv) and wallpaper, which are written only when named: a cartridge or
console tiles fit only a sheet made for one, an uncompressed video of
every clip and side can be gigabytes, and emotes and wallpapers are for a
stream rather than a game. No two
of them write one file: pxr names refuses a project where two would.
| Format | File | For |
|---|---|---|
| png | name.png |
the sheet, an indexed PNG (index 0 transparent) |
| json | name.json |
cell rectangles, frame durations, a tag per action and side, the pivot. Aseprite’s “array” layout, so importers written for Aseprite read it |
| aseprite | name.aseprite |
an indexed Aseprite file: layers final, lines, flat, and one per extra output of the style graph; a tag per action and side; per-frame durations; a pivot slice |
| normal | name_normal.png |
a normal map with the same layout, for 2D lighting |
| depth | name_depth.png |
depth with the same layout: white the nearest, dark the farthest, one scale for the whole sheet (meta.pixor.depth gives both in metres); transparent where nothing is. For sorting, fog and 2.5D lighting |
| emission | name_emission.png |
each glowing pixel in its own colour, as bright as it glows (a glowing material, or the model’s emissive map); transparent elsewhere. For glow and bloom |
| layers | name_lines.png, name_flat.png, and name_LAYER.png for each extra output of the style graph |
the line and flat-colour layers as sheets, and a node’s picture where the Style graph names one |
| palette | name.hex, name.gpl |
the palette (Lospec and GIMP formats) |
| godot | name.tres |
a Godot 4 SpriteFrames resource |
| godot-scene | name.tscn, name_events.gd, name.tres |
a Godot 4 scene that plays the sheet, wired: an animation per action and side, the frame events as calls, an AnimationTree blending the sides and idle, walk and run (see below) |
| gif | name_walk_Southeast.gif, … |
one animated GIF per action and side, holds as frame delays, for sharing and previews |
| apng | name_walk_Southeast.apng, … |
the same as animated PNGs, with exact millisecond delays |
| webp | name_walk_Southeast.webp, … |
the same as animated WebP, lossless: about a GIF’s size at 1x and a third of it scaled up, with real alpha, exact millisecond delays and the recipe in a chunk of its own. For web pages, store pages and chat emotes (7TV); written only when named |
| video | name_walk_Southeast.avi, … |
one video per action and side: an uncompressed AVI, every pixel as it is, for a trailer or a store page |
| light-kit | name_ramps.png, name_normal.png, name_light.png, shaders |
palette-correct lighting in engines (see below) |
| report | name_report.png |
the sheet with every check’s findings marked (see below) |
| p8 | name.p8 |
a PICO-8 cartridge (see Console modes) |
| 2bpp | name.2bpp, name.2bpp.pal, name.2bpp.json |
Game Boy tiles, their palette and which tiles make each frame (see Console tiles) |
| chr | name.chr, name.chr.pal, name.chr.json |
NES tiles (CHR), their sprite palette and which tiles make each frame |
| md | name.md.bin, name.md.pal, name.md.json |
Mega Drive tiles, frame by frame, and their palette line |
| twitch | name_wave_South_twitch_112.gif, _56, _28 |
Twitch emotes of each action and side (see Emotes and stickers) |
| discord | name_wave_South_discord_emoji.gif, _discord_sticker.png |
a Discord emoji and sticker of each action and side |
| 7tv | name_wave_South_7tv.webp |
a 7TV emote of each action and side |
| wallpaper | name_scene_South_1080p.gif, _1080p.webp, _4k.webp |
each action and side as a 1080p and 4K loop, checked seamless (see Wallpapers and stream loops) |
| zip | the path on its node | a ZIP archive node in the asset graph: the files wired into it, or everything the export wrote |
What the maps and layers beside the sheet hold, for one frame of the golem:
png |
normal |
depth |
emission |
layers: lines |
layers: flat |
|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
A row is named for its action and side: walk_Southeast.
Which frames a sheet takes, how they are arranged and how many files one render writes is the asset graph’s: one Sheet node and its File nodes until you rewire it.
What the frames are called, and what they are
Every frame in a sheet has a name and an id, and they answer two different questions.
The name is a template, a pattern over your project’s own words, so the plain default is what a beginner wants and a studio can obey a convention it did not choose:
{project}_{action}_{side}_{index:2}.{ext} hero_walk_East_00.png
The words are {project}, {object}, {action}, {side}, {layer},
{set} (the part set a Sprites node drew the frame with), {size}, {index} and
{ext}. {index:3} pads a number with zeros to
three digits. {{ and }} write a brace. A word Pixor does not know is
an error when you type the template, not a file called
hero_{genre}_00.png, and a word with nothing in it takes the separator
before it with it, so a sprite with no side is hero_Static_00.png.
A value that cannot be part of a file name (/ \ : * ? " < > |) is
refused rather than quietly replaced; a space becomes _. The one
exception is Pixor’s own word: a library clip called lib:walk is
lib-walk in a name, because that colon is Pixor’s and not yours.
Two frames that would land on the same name are refused before anything
is rendered. Set it with --names on the command line, or keep it in
the project:
pxr project set hero.pixor --names '{object}/{action}-{side}-{index:3}.{ext}'
pxr names hero.pixor # what it will write, without rendering
pxr names hero.pixor --json # the same, for a build script
The id says what a frame is, never where it landed. It is a hash of
the object, the action, the side, the time in the action and the layer,
and it is written beside every frame in the JSON and in the .aseprite
user data. Re-packing a sheet, adding a clip or changing the padding moves
rectangles and leaves ids alone, so a build that refers to frames by id
does not break every time the packer runs. Re-sampling a clip at another
frame rate does change its ids, because those are different frames.
Smaller sheets
On the asset graph’s Arrange node (or on the command line):
- Trim empty space (
--trim) cuts each frame down to its pixels. The JSON gives each frame’s place in the full cell (spriteSourceSize,trimmed: true) and the Godot file sets each frame’smargin, so engines still place every frame on the pivot. - Store repeated frames once (
--dedupe): frames that are exactly alike (held poses, sides of a still object) share one spot. - Max sheet width (
--max-width 4096) starts a new row before the sheet gets wider, for engines and GPUs with a texture size limit. - Max sheet height (
--max-height 2048) splits a sheet taller than that into pages, whole clips to a page:hero_1.png,hero_2.png, each with its own JSON and the other files beside it. - Wrap at height (
--wrap-height 16384) keeps a sheet no taller than that in one file: its rows go on in another column of whole rows beside the first, shared out evenly (rows filled in turn when a clip has cells of its own size), and the JSON (and the Godot file) gives every frame’s place, so engines read it as before. Godot, Unity and most GPUs load textures up to 16,384 px a side, and a ring of 32 sides with four clips is 128 rows: at 64 px that is past it in one column. - Frames per row (
--columns 8) puts that many frames on a row, every clip running on after the last: a contact sheet, or the fixed grid an engine’s importer asks for. - A side drawn from another (the asset graph’s Flip node): a
left-right symmetric model looks the same from the left as a flipped
view from the right, so the west side need not be rendered at all — take
the east camera’s sprites, flip them as
West, and the sheet haswalk_Westdrawn fromwalk_East, pixels, normals, boxes and root motion mirrored. Render only the cameras that differ; flip the rest. - Every side’s degrees are in the JSON: on each frame (
pixor.degrees) and, for all of them, undermeta.pixor.sides({"South": 0, "Southeast": 45, ...}): degrees from the front, counter-clockwise seen from above, as--sidestakes them. A game turns an angle into a row with that table. A ring of 16 is named by the winds: South, SSE (South by southeast), Southeast, ESE, East…, the eight points keeping the names a ring of 8 gives them.
Parts that turn on their own
A tower’s head aims while its base stands; a tank’s turret turns over a
hull that drives the other way. --ring-node NODE[:N] turns only
NODE — a node of the model, and every part that hangs under it — through
N headings, while the rest stands at the first side:
pxr render gatling-tower.glb --ring-node "Head joint:16" --export json
The camera does not move: the head turns on the base, counter-clockwise
seen from above, as a ring turns a whole model. Each side is named for the
heading the head shows (South, SSE, Southeast…), and its degrees are in
the JSON as any side’s. The JSON names the node under
meta.pixor.ring_node and gives where its pivot is on every frame as a
socket (pixor.sockets["Head joint"]), the point a game aims it about. A
clip that moves the node (a recoil, an idle sweep) plays on top of the
heading, and effects and sockets riding it turn with it: --socket "Gun 1" gives each heading’s muzzle.
On sheets of their own. A game that draws the base and the head apart — a hull on 8 headings, a turret on 32 at any heading over it — makes the head a paper-doll piece on a ring of its own:
pxr render tank.glb --ring 8 --paper-doll --piece turret:Turret,ring=32 --export json
tank_base.png is the hull alone on the sheet’s 8 sides; tank_turret.png
is the turret alone, at the hull’s scale, its node turned through its 32
headings from the first side. A part named in a piece may be a node,
for every part under it; the node the piece turns is its node=NODE,
else --ring-node’s, else the one node its parts name. With --export json each gets its JSON: the base’s frames carry the node as a socket —
where the turret’s pivot goes on each hull heading — and the turret’s
frames carry it too, where its pivot is in its own cells. Draw the turret
with that pivot on the base’s socket.
Shadow layer
Shadow layer (--shadow contact or --shadow drop) writes
name_shadow.png, laid out like the sheet: black where the shadow falls,
transparent elsewhere. Contact is a blob under the feet sized to the
model’s footprint; Drop is the silhouette cast on the ground away from the
key light. Draw it under your sprites with the opacity you like, or sort it
separately. An asset graph’s Layer node can name shadow, and an
Overlay puts it under the sprite in one sheet (Asset graph).
| The sprite | Its shadow layer (--shadow contact) |
|---|---|
![]() |
![]() |
Colour cycling at run time
With cycling materials, the JSON lists each one under meta.pixor.cycles
("material" and its "indices" in the palette, in cycle order), and
Pixor writes name_index.png, the sheet as palette indices. An engine can
rotate those palette entries each tick instead of storing more frames.
Other materials that share the same shades cycle with them, as in any
palette cycling; give a cycling material its own colours to keep it apart.
Scenes of several models, and parallax backgrounds
A project can hold more than one thing: models arranged on a ground plane and rendered as one picture, with one light and shadows between them — a village corner, a dungeon room, a camp, store-page art from the free library.
Each one is an item: a model, where it stands, which way it faces and
how big it is — an Item node of the Scene graph,
added to the end of its chain, which a ring or a scatter after it repeats.
On the command line, each --item is one:
pxr project new camp.pixor \
--item tent.glb@-1.8,-1.6,25,1.2 \
--item campfire.pixoritem@0,0 \
--item barrel.glb@2,1,0,1,2 \
--ground 7,5,#5d7a45 \
--size 200
pxr render camp.pixor
@x,z[,yaw[,scale[,layer]]] is where an item stands (metres, x right, z
towards the camera); add ,y=H and it floats H metres up, over another
(--item astronaut.glb@2,-1,y=1.2 over a magic circle at @2,-1).
--ground W,D[,#rrggbb] puts a ground plane under them; it needs no
item (pxr render - --shape ... --ground 200,200,#0b1026 is shapes on a
ground). Add
:clip[,phase] and that item plays a clip of its own, at its own point of
it, while the ones beside it stand still; the render’s own model plays its
--clip beside them, all on one timeline. A render of items alone
(pxr render - --item ...) is one track, scene, in which each item
plays its own clip: as long as it takes every looping clip to come round
whole (a 2 s idle beside a 1.5 s spin: 6 s, at most 480 frames), so its
GIF loops without a jump, and a clip that plays once (a Break, a Collect)
plays once and holds its end. --fps and --keys pick its frames from
that length; --clip names one clip instead. In a project, paths are
relative to the project; on pxr render’s command line an item’s file is
read from the working directory, and failing that from beside the
render’s model, so --item crystal.glb finds the crystal next to the model.
An effect rides an item when its node is the item’s: item N is where
item N stands (counted in the order the items were given), item N: BONE
one of its bones, when it plays a clip:
--effect "sparkle@Swirl:item 2,size=0.6" glints on the second item
whatever the model beside it does.
Parallax layers (a Parallax layers File node, 2 to 8 layers, or --parallax N) split the
picture by depth into layers for a scrolling background: each is rendered
alone on the same stage and palette, and farther layers fade darker and
bluer towards the haze colour (--haze), the way distance looks
(Haze far layers off, or --haze none, keeps every layer on the palette
as it is, for a game whose palette is fixed). An
item’s layer puts it in a layer (0 is the farthest); the others are
shared out by depth. Pixor writes name_layer0.png, name_layer1.png,
…, name_parallax.json (each layer’s image and a suggested scroll speed,
from 0.25 for the farthest to 1 for the nearest) and name_parallax.png,
the layers stacked. Any model can be split, not only a scene of several.
An asset graph’s Layer node names a layer as layer0, layer1, … to put it on
a sheet of its own making (Asset graph). pxr project set --parallax N --haze #rrggbb|none sets both on a project.
Console modes
For homebrew and fantasy consoles, pick a Console under Style (or
--console). Pixor then uses the console’s own colours and its limits:
| Console | Colours | Per sprite | Notes |
|---|---|---|---|
| Game Boy | the 4 green shades | 3 + transparent | shades by lightness |
| NES | the 54-colour master palette | 3 + transparent | checked per 8 × 8 tile too |
| Mega Drive | the 512 of its 9-bit colour | 15 + transparent | in 8 × 8 tiles |
| PICO-8 | its 16 | all 16 | export a .p8 cartridge (tick p8; the sheet must fit 128 × 128: set a maximum width of 128) |
| TIC-80 | its 16 (Sweetie 16) | all 16 | import the PNG with TIC-80’s import sprites |
| C64 | its 16 | 3 + transparent | multicolour sprites: pixels twice as wide; keep the width even (C64 sprites are 24 px) |
| Game Boy | NES | Mega Drive | PICO-8 | C64 |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
The same golem in five console modes: each its machine’s colours, as many as one sprite may use.
Where a sprite may use only three colours, Pixor picks the three console
colours that best cover your model in shadow, base colour and light, so
every frame and side uses the same three. The Style section says
whether the frame on screen fits; pxr console check sheet.png checks a
whole sheet (colours, colours per frame and per tile, double-wide pairs,
size) and reads the console from the recipe inside the sheet. Every
render in a console mode runs the same check on the sheet it wrote, and
fails (exit status 1, the problems listed) when it does not fit. A palette
of your own is kept under a console mode, not replaced by the console’s —
so a sixteen-colour palette on a Game Boy is said, loudly, rather than
quietly swapped for the four greens. The NES
colours are computed by Pixor from the console’s video signal, the Mega
Drive’s spread evenly over its 8 levels a channel (what SGDK reads a PNG
as), the others are the consoles’ published values.
Where sprites are made of 8 × 8 tiles, the check also counts the sheet’s different tiles — a tile and its mirror images are one, since the hardware flips them, and an empty tile is none — against what video memory holds at once: 256 on the Game Boy and the NES, 2048 on the Mega Drive (which shares them with the backgrounds). A sheet with more is said to need its animations’ tiles loaded as they play, or splitting.
Console tiles
Tick the console’s tile file (or name it in --export) to get the sprites
as the console’s own tools read them, beside the sheet:
| Console | Tick | Files |
|---|---|---|
| Game Boy | Game Boy tiles (2bpp) |
name.2bpp: 16 bytes a tile, the two bit planes interleaved row by row, as RGBDS’s rgbgfx writes and GBDK’s set_sprite_data loads. name.2bpp.pal: the OBP0 byte that gives colours 1 to 3 their shades (light to dark) |
| NES | NES CHR (chr) |
name.chr: 16 bytes a tile, plane 0 then plane 1, as YY-CHR, NEXXT and NES assemblers read CHR. name.chr.pal: the 4 bytes of a sprite palette as the PPU numbers its colours ($0F first) |
| Mega Drive | Mega Drive tiles (md) |
name.md.bin: 32 bytes a tile, two pixels a byte, each frame’s tiles column by column as the VDP lays out a sprite. name.md.pal: a palette line, 16 CRAM words |
Game Boy and NES tiles are written once each: a tile seen again, or
mirrored, is the first one flipped. The JSON beside them (.2bpp.json,
.chr.json) lists every frame of every action and side, by name, as its
rows of tiles: each a tile number with its flips, or null for an empty
one, which is the metasprite to draw. Mega Drive frames are loaded into
video memory a frame at a time, so .md.bin holds each frame whole, one
after another, and .md.json says the tile each starts at. All three
JSONs list the colours by number. A sheet whose colours the console
lacks, or with more than its palette holds, is refused with the reason.
pxr render bomb.glb --console nes --size 32 --export chr -o bomb.png
Emotes and stickers
Each action and side as the files a chat or streaming platform takes — pose a model, or let it wave — at the platform’s sizes:
| Tick | Files | Limits checked |
|---|---|---|
Twitch emotes (twitch) |
112, 56 and 28 px | 1 MB each, 60 frames |
Discord emoji and sticker (discord) |
a 128 px emoji (PNG or GIF), a 320 px sticker (PNG or APNG) | 256 KB, 512 KB |
7TV emote (7tv) |
128 px WebP | 7 MB, 1000 frames |

The sprite is trimmed to what its frames draw, centred on a square and scaled up by the biggest whole number that fits, so every pixel stays a square block. A size it is too big for is left out — a pixel cannot be split — but each platform’s main size (Twitch’s 112, Discord’s two, 7TV’s 128) must fit, so render the sprite small: a 32 px sprite is a 3x Twitch emote and a 4x 7TV one. One frame is a still PNG; more are an animation that loops. A file over a platform’s limit fails the export, saying which and by how much. The limits are the platforms’ published rules as of October 2026, and their own upload check is the last word.
pxr render mascot.glb --size 32 --clip wave --export twitch,discord,7tv -o mascot.png
Wallpapers and stream loops
Wallpaper loop (wallpaper) writes each action and side at 1080p (GIF
and WebP) and 4K (WebP), for a desktop, a phone or a stream’s background.
The frame is scaled by the biggest whole number that fits the screen and
centred over the video background (the Video settings’, or
--video-background): render at 480 × 270 (4x and 8x), 320 × 180 (6x and
12x) or 384 × 216 (5x and 10x) to fill it exactly. One frame is a still
PNG at each size.

Seamless is checked, not assumed. A wallpaper shows its last frame and then its first again, forever, so the clip must loop, and that step must be like every other step of the clip: the pixels that change from the last frame to the first are counted against the most that change between two frames in a row, and a jump (a quarter more than the clip’s biggest step) fails the export, saying how big it is. Times of day, water and wind (Worlds) make the scenes.
pxr render pond.pixor --size 480x270 --export wallpaper --video-background "#1a2433" -o pond.png
Palette-correct lighting in engines
Engines light sprites from normal maps with smooth shading, which brings in
colours your palette never had. Tick Light kit (or --export light-kit)
and sprites react to in-game light while every lit pixel stays on a step
of its own colour ramp, with Pixor’s bands, hue shift and highlights.
Pixor writes, next to the sheet:
| File | What it is |
|---|---|
name_ramps.png |
each pixel’s colour ramp (ramp number + 1 in red; 0 for pixels light doesn’t touch, like lines) |
name_normal.png |
the normals, view space: x right, y up, z towards the camera |
name_light.png |
the lookup: a row per ramp, a column per light level, then the highlight colour, then two columns that are not colours at all — that ramp’s own highlight thresholds, because a glossy or metal material takes its highlight more easily than a matte one |
pixor_palette_light.gdshader, name_light.tres |
the Godot shader and a material with every texture set: put the material on a Sprite2D or AnimatedSprite2D |
PixorPaletteLight.shader |
the Unity shader: make a material with it for a SpriteRenderer and set its three maps |
pixor_palette_light.fsh, .vsh |
the GameMaker shader; the comments show how to bind the maps |
The shaders light with one key light (light_dir, towards the light, in
the normals’ space), the preset’s fill light, and specular and rim
highlights whose thresholds come from the lookup texture, per ramp, as
Pixor’s own did. specular and rim at 0 (the default, and what
GameMaker gives a uniform the game never sets) use the lookup’s; any other
number between -1 and 1 overrides them for the whole sprite; above 1 turns
those highlights off. A highlight is drawn only where one of the four
neighbouring pixels takes one too, which is Pixor’s own rule against a lone
bright pixel — min_highlight 1 turns that off (0 or 2 keeps it). In
GameMaker also set texel to one texel of the sheet (the shader’s comment
shows how), or that rule cannot look at the neighbours, and set fill and
fill_dir from meta.pixor.light_kit for the preset’s fill light. Move the
light from a script, for example towards a torch:
material.set_shader_parameter("light_dir", dir).
Import the three maps with no filtering, no compression and no mipmaps.
To see it before exporting, turn on the 2D lighting preview (L) over the
sprite and choose Light as: the light kit: the light turns towards the
pointer and the frame is lit through the same lookup, by the same rules
(highlights only beside another, pixels with no ramp untouched), as the
shaders light it.
With the render’s light a frame looks exactly as Pixor drew it (the
exceptions are a few pixels at band edges); cast shadows, dithering and the
flicker smoothing of animated sheets are Pixor’s alone, so turn cast
shadows off for sheets you light in the engine. The JSON lists the files
and the light under meta.pixor.light_kit.
Palette variants
Add variant (--variant NAME, repeatable) exports the same sheet in
other colours. Pixor draws in palette indices, so a variant changes only
the palette: every pixel, line and shade stays where it is.
hit-flash |
frozen |
poisoned |
night |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- Effects:
hit-flash,frozen,poisoned,petrified,burning,silhouette,selected, the times of daydawn,noon,dusk,night, and the seasonsautumnandwinter(greens turn orange, or pale and snowy). - Team colours:
team:blue(orred,green,yellow,purple,orange,teal,pink,white,black, orteam:#3050e0) recolours only the team colour — the materials or colours marked with--teamor under Materials — and leaves skin, steel and gold as they are. Each shade keeps its lightness, so the ramp still reads. Four teams from one sprite:--team cloth --variant team:red --variant team:blue --variant team:green --variant team:yellow. The JSON lists the team’s palette indices undermeta.pixor.team, for engines that recolour at run time through the lookup texture below. - Every colour turned:
hue:120turns every coloured shade by 120 degrees; greys stay grey. - Other palettes:
palette:pixor-8orpalette:my-colours.hexmoves every colour to that palette’s nearest one, keeping light and dark apart.
Each variant is name_<variant>.png. With any variant, Pixor also writes
two files for swapping palettes at run time, so one sheet serves every
tier and team:
name_index.png: the sheet with each pixel’s palette index as a grey value (0 is transparent);name_lut.png: a lookup texture 256 pixels wide, one row per palette (row 0 the sheet’s own, row k variant k).
A shader looks up lut(index / 255, row). The JSON lists the variants and
their rows under meta.pixor.variants.
Lighting variants
A lighting variant is the same sheet at night, by torchlight, underwater or poisoned. Unlike a palette variant it is not the same pixels in other colours: Pixor draws every frame again under another light, so the shadows fall where that light puts them, and then puts the sheet in that light’s colours. A game that tints a sprite at run time gets one colour multiplied over the daylight shading; this gets pixel art made for that light.
light:night |
light:torch |
light:underwater |
light:poison |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
night: cool, dim moonlight from high on the far side; deep blue shadows.torch: a warm light held low in front; more of the model in shadow, no fill light.underwater: light from straight above through blue-green water, softer (no highlights) and darker.poison: the Style’s own light, sickly green and a little darker.
Choose them in the Palette variants list (Add variant → Light
night, …), or on the command line with --light-variant night,torch
(the same as --variant light:night --variant light:torch); pxr project set --light-variant … keeps them in the project and --no-light-variants
removes them. Several at once each make their own sheet.
What each light changes: the key light’s direction (except poison), the
shading bands (moved so more of the model falls into the darker ones), the
fill light’s strength and, for underwater, the highlights — in the
fixed look and in every lighting node of a Style graph alike.
The palette. A lit sheet is in the Style’s palette with the light’s tint: the same number of colours and the same ramps, each colour darkened and moved towards the light’s colour as a coloured light would move it (a blue under a torch goes grey-brown). Snapping to the Style’s own colours would lose the night, since a warm palette has no dark blues; tinting it keeps the sheet indexed pixel art with every pixel one of its palette’s. It is worked out the same way every time.
Each light is written beside the sheet as a variant is named,
name_light-night.png, with every file the sheet has (its JSON, GIFs,
Aseprite file, palette variants: name_light-night_frozen.png). Every
sheet of the render gets one. The sheet’s JSON lists them under
meta.pixor.lights (name and image); a lit sheet’s own JSON says which
light it is in meta.pixor.light.
The recipe inside every export
Every file Pixor exports remembers the project that made it: the sheet,
its layer sheets and maps (_lines, _flat, _normal, _depth,
_emission, _shadow), its palette variants and index sheet, the
.aseprite, and each GIF (in a comment) and APNG. Drop any of them on Pixor (or choose it in Open project) to get the
project back: the .pixor file if it is still there, or a new project
rebuilt from the recipe. Paths are stored relative to the exported file;
a path that can’t be made relative keeps only its file name, so a sheet you
share doesn’t show your folder names. Untick Recipe in files (or pass
--no-recipe) to leave it out.
Godot 4
- Copy
name.pngandname.tresinto your project, side by side. - The
.tresloads the sheet fromres://name.png. If you put it somewhere else, pass--godot-path res://path/name.pngwhen exporting from the command line, or edit the path at the top of the.tres. - Create an
AnimatedSprite2Dand set its Sprite Frames toname.tres. Every action and side is an animation, looping, with its frame holds. - For crisp pixels set Texture > Filter to Nearest.
The Style in Godot, in real time
A baked sheet is one way to use a look. The other is to draw a 3D game
through it, frame by frame: pxr shader writes the Style as Godot 4
shaders, so a 3D level, a vehicle or a boss a sheet could never hold is
drawn in the same ramps, bands and palette as the baked characters
beside it.
pxr shader knight.glb --preset selout --size 64 -o my-game/pixor
pxr shader game.pixor -o my-game/pixor --res res://pixor
The folder (-o, inside the Godot project; --res is the same folder as
a res:// path) gets:
| File | What it is |
|---|---|
pixor_look.gdshader |
the material: each pixel takes the ramp of its colour, the step of its light band and the highlight as a baked sprite would, in the palette’s own colours. Unshaded: the look is the light |
pixor_lines.gdshader |
the lines, a screen pass: the silhouette on the empty pixels around the model, inner lines where one surface stands in front of another, in the Style’s line colours |
pixor_view.tscn |
the pixel grid: a viewport at the sprite’s size, scaled up --view-scale times (default 4) with nearest filtering, Pixor’s camera and the lines in it |
pixor_look.gd |
PixorLook.apply($Level) gives every mesh under a node the look, keeping each material’s colour and texture |
pixor_shader.json |
the size, the scale, the palette, and what of the Style a shader leaves out |
Put pixor_view.tscn in your main scene; it draws the 3D world it is in.
The look is baked into the shaders, so nothing needs setting up.
In real time the frame is drawn the way a baked one is, with three
differences: no cast shadows, no lines between parts that touch without a
step in depth, and none of the steps that read the whole frame or compare
frames (the cleanups, the hand-drawn atoms marked so). pxr nodes says of
every Style node whether it runs in real time; a Style whose graph has a
node that does not is refused, naming it, unless --partial writes the
shader of its settings anyway.
Unity
- With the Aseprite Importer package (2D Aseprite Importer): drop
name.asepriteinto Assets. Each tag becomes an animation clip; use thefinallayer. - Without it: import
name.pngas a Sprite (Multiple), Filter Mode Point, Compression None, and slice it by cell size (the cell size is inname.jsonundermeta.pixor.cell). The pivot is inmeta.pixor.pivot, in pixels from the cell’s top-left. A clip whose effect counts toward the fit has cells of its own size: slice its row by itspixor.cell, its pivot its frames’pixor.pivot, or use the.asepriteimporter, whose canvas holds every clip.
GameMaker
A GameMaker sprite is one animation. Export a Strip layout
(--layout strip) per animation and side, at an even Frames/s, and
end its name with _strip and the frame count (-o hero_walk_strip8.png):
GameMaker splits a file named that way into frames as it imports it. Or
cut a grid sheet in the Image Editor with Image › Convert to Frames,
one row at a time, by cell size (a row with cells of its own size by its
frames’ pixor.cell). Set the origin (Custom) to the pivot
from name.json, counted from the frame’s top-left as GameMaker counts it,
and the sprite’s speed to the frame rate. See
Sprite sheets in GameMaker.
Aseprite
Open name.aseprite, or click Open on the Aseprite file node (Pixor
finds Aseprite on the PATH and in the usual Steam and itch folders, and
asks where it is otherwise). The tags list every action and side. The
final layer is visible; lines and flat are hidden helpers for
touching up by hand, and so is each extra output the style graph names, above
final. The file is in indexed mode with Pixor’s palette.
Paint over it and keep your work. Add your own layers and paint, then change the model or the look in Pixor and re-bake:
pxr rebake out/hero.aseprite
Pixor owns what it wrote, and nothing else. A re-bake renders the project again and:
- replaces the pixels of the layers Pixor made (
final,lines,flat), where nobody has painted on them; - leaves your layers exactly as they are — never moved, renamed, reordered
or recoloured — with each painted cel on the frame it was painted on.
Every frame carries an id made from what it is (action, side, time), so
if the walk gains three frames in the middle, your painted eyes stay on
their own poses rather than sliding onto new ones — and the re-bake says
so, frame by frame:
moved your paint on frame 1 is on frame 2 now, and which frames are new (movedandnew_atin--json); - keeps every colour you painted with at its index, adding new colours at the end of the palette — or, on a sheet you turned greyscale or RGB in Aseprite, writes the render in greys or in colours to match;
- keeps your slices, their keys on the frames they were on, wherever those frames went;
- marks frames where the model moved out from under your paint with a tag,
pxr check, and leaves the paint where it is.
Two things it will not decide alone, and keeps both of until you do:
| What happened | What the re-bake does |
|---|---|
| You painted on one of Pixor’s own layers | Pixor’s layer gets the new render; your edit moves to a layer of your own, final edits, right above it; the frame is tagged pxr conflict |
| A frame you painted is not in the new render (the clip got shorter) | the frame is kept at the end, with your paint, tagged pxr removed |
Nothing is lost either way. pxr rebake then exits with code 7 until you say
which way it goes: --resolve keep keeps your edits as your own layers,
--resolve pixor takes Pixor’s render and drops them. --dry-run says
what a re-bake would do without writing anything, and --json says it for a
tool; the extension asks you the same question in a dialog.
GIF and APNG
Each action and side becomes its own looping file (a clip that doesn’t
loop plays once). The frames use the sprite’s palette, with index 0
transparent. Scale, on the GIF or APNG node (--anim-scale K), enlarges
them by a whole number, from 1 to 16, so a 64 px sprite can go out as a
256 px GIF with every pixel still sharp. Each GIF frame after the first
stores only the box where it differs from the one before, so a clip where
part of the sprite stays still is smaller; where pixels turn transparent the
frame before is cleared after it is shown, so every viewer plays exactly the
frames of the sheet.

GIF stores delays in hundredths of a second, so each frame’s delay is rounded,
but the total length of the clip is kept. Browsers show delays under 20 ms as
100 ms, so no GIF frame is shorter than 20 ms: above 50 fps the GIF leaves
out the frames that would be on for less, and plays as long as the clip.
APNG stores the exact milliseconds, rounded on the running total like the
JSON’s, so a 12 fps clip’s frames are 83 and 84 ms. Rename a .apng file to .png if a site only accepts PNG.
A clip an asset graph’s Layer node drew animates that layer — the lines
alone, the flat colours — as the sheet shows it; a Layer of the normal,
depth or emission maps animates the sprite, since a GIF holds palette
colours only.
Reels and turning GIFs
A store page or a devlog wants one GIF of a character playing all its
clips, or of a ship flying while it turns. --gif ORDER says what the
animated files play (GIF, APNG and WebP alike; asking for it writes a GIF
unless --export names APNG or WebP):
clips, the default: a file per clip and side.reel[,hold=MS]: a file per side,name_reel_South.gif, every clip in turn, each once, its last frame held MS longer (400 by default).turn[:F]: a file per clip,name_Fly_turn.gif, the clip playing on while the sides go by, F frames on each (2 by default).
pxr render dragon.glb --clip all --gif reel,hold=300 --anim-scale 3
pxr render ship.glb --clip Fly --ring 32 --gif turn:2
pxr render hero.glb --clip all --ring 8 --gif clips --gif reel --export gif,webp
Clips whose cells differ in size (one grown by its effect) stand pivot on pivot on one canvas, so nothing jumps between them.
Video
Video per clip writes each action and side as name_walk_Southeast.avi: an
uncompressed AVI, 24-bit colour, which every editor and converter opens and
which loses nothing — no codec smears a pixel. Its node has three settings:
- Scale (1 to 16, 4 to start with): how many video pixels an art pixel is.
- Frames a second (1 to 100, 30 to start with): a video runs at one rate, so a sprite frame is written as many times as it lasts, and the clip keeps its length to within one video frame.
- Background: what is behind the sprite. A video has no transparency.
--export video on the command line takes the starting values, or
--video-scale K, --video-fps N and --video-background #RRGGBB.
--export all leaves videos out: name them.
It is not compressed, so it is big — a 64 px sprite at scale 4 is about
200 KB a frame — and a video over a gigabyte is refused rather than
written. To put it online, convert it: ffmpeg -i hero_walk_South.avi -crf 0 hero_walk_South.mp4.
Plain engines and your own code
Read name.json: frames[i].frame is the cell rectangle and
frames[i].duration its hold in milliseconds; meta.frameTags groups
frames into animations, and a tag that plays once rather than looping
carries "repeat": "1", as Aseprite writes it. frames[i].pixor names the
frame’s tag (its frame tag’s name), its index in it, its action and side, its id,
and its pivot — the point in the cell the engine stands the sprite on,
which is the sheet’s unless a Tag node gave the clip its own. The
pivot slice in meta.slices has a key wherever the pivot changes, and the
.aseprite file’s pivot slice the same keys.
Root motion
A clip exported In place has two more values per frame, in pixels with
fractions kept (x to the right, y down):
frames[i].pixor.root: where the model’s root would be, measured from where it was at the start of the clip.frames[i].pixor.root_delta: how far the root moves until the next frame. For the last frame it is the move until the end of the clip, so looping walks keep going at the same speed.
To move the character as the clip did, add root_delta to the sprite’s
position each time a frame ends.
Inventory icons
pxr icons (or an Icons node in the asset graph, made when the project
is exported) turns models into matching
inventory icons: every model from the same ¾ angle under the Studio light
rig, at 16, 24, 32 and 48 pixels (or --sizes), with the silhouette in the
colour of its rarity (--rarity common|uncommon|rare|epic|legendary) and,
with --framed, on a framed tile like an inventory slot. Each icon is a PNG,
and each size gets an atlas icons_N.png with icons_N.json saying where
each icon is. Point it at a folder to turn a whole pack into an icon set —
in the app, drop the folder on the window and turn on Icons instead of
sprites: the sizes, the rarity (from each file’s name unless you pick one)
and the frame are there, and the recipe is saved beside the icons as
icons.pixoricons:
pxr icons library/pickups --out icons --rarity epic --framed
A pose, a slot and a tilt. An icon is the model at rest unless
--clip NAME[:FRAME|peak] names a frame of a clip: Attack:3, or peak
for its fullest frame (bright pixels counting most, so an explosion shows
its fireball rather than the smoke after); all is each model’s first
clip, so a folder of effects becomes skill icons at their peak. --slot skill sinks each icon in a dark bevelled slot, as an action bar draws
one, instead of --framed’s rarity frame. --tilt DEG turns each model
in the picture, counter-clockwise: weapons and tools modelled upright for
a hand bone are one-pixel sticks from the ¾ angle, and --tilt -45 lays
them on the diagonal as icon sets show them. A model can ask for both
itself (the scene hints icon_clip and icon_tilt, connectors),
and the Icons node has Pose, Tilt and Skill slot:
pxr icons fx/ --clip all:peak --slot skill --sizes 32,48 -o skills
pxr icons weapons/ --tilt -45 --rarity from-name -o icons
--rarity from-name gives each model the rarity a word of its file name
says (potion_rare.glb, Sword-Epic.glb; no such word is common), and the
JSON says each icon’s. Files are taken in name order, so the atlas is the
same however the folder lists them.
A recipe keeps the pack: --save pack.pixoricons writes the folders and
the settings (paths relative to the recipe), and pxr icons pack.pixoricons
makes the pack again, byte for byte. A prop added to the folder joins the
next run; a flag after the recipe changes one setting for that run
(pxr icons pack.pixoricons --sizes 64).
Voxels and sprite stacks
A MagicaVoxel .vox opens like any other model: every model of its
scene where the scene graph puts it (turned and moved as MagicaVoxel shows
it), its palette, and the voxels of a glowing material glowing. A voxel is
read as a tenth of a metre, +Z up.
pxr voxels MODEL -o hero.vox --height 32 turns any model into voxels,
32 tall: the surface sampled from its textures and colours, the inside
filled, every voxel in the look’s own palette (--preset, --palette and
the other look options), so the voxels match the sprites. With --stack it
also writes a sprite stack: hero_stack.png, the model cut into
horizontal slices side by side, bottom first, each seen from above, and
hero_stack.json with the slice size and count. A game draws slice k one
pixel above slice k - 1 and turns them all together, which is how sprite
stacking fakes 3D.
pxr voxels knight.glb -o knight.vox --height 32 --stack --preset selout
Checking that everything matches
pxr audit folder --style game.pixorkit reads every exported PNG and
.aseprite file in a folder and checks it against the kit, using the recipe
inside each file: preset, light rig, view, camera pitch, key light, light
bands, lines, palette and pixels per metre, and that every colour it uses is
in the kit’s palette. Without a kit, the first file is the reference. Each
difference is listed; any difference makes the exit status 1, so it can
guard a build.
In the app, the consistency board (the three-figures button, Consistency board: every side at once, or B) shows the current frame from every side side by side on one ground line, with each silhouette’s top marked and its width, height and colour count below. Under the button:
- Silhouettes draws every side as its shape alone, in one colour: a pose that does not read as a silhouette does not read at game size.
- Pivots marks the pixel each side stands on and turns about. A side whose feet are off it slides when the sprite turns.
- Colour counts writes each side’s count; the board says when the heights differ by more than a pixel between sides (Heights differ … between sides), or one side has several more colours than another (usually a light only one side catches).
pxr audit above is the folder-wide half: every sheet against one kit.
What the checks found, on the pixels they mean
Every check Pixor makes — stray pixels, line corners drawn in one pixel, thick lines, a colour off the palette, a tile or a frame with more colours than a console mode allows, something cut at the canvas’s edge — marks the pixels it is about instead of only printing a line of text at export time.
- In the app: the Checks button over the sprite (the warning triangle) draws the marks on the frame, and the Report section in the Style and Asset steps lists every finding of every frame rendered so far. Click one and Pixor goes to that frame and side with the marks on. Under the list, each kind of finding says which setting decides it — stray pixels the cleanup, jagged corners the lines, colours the palette, console limits the console mode, a flipped side that does not match the export’s mirroring — and Go to opens that setting.
- Mirrored sides: with a Flip node in the asset graph, a side that will be drawn flipped is compared with the one it flips, and where the model is not symmetric enough for that the pixels that change are marked, while you are still choosing — not only a warning at export.
- At export: tick report (or
--export report) and Pixor writesname_report.pngbeside the sheet: the sheet with every finding marked. Single pixels are filled; a tile or a frame is boxed, so what it is about still shows through.
| Colour | What |
|---|---|
| cyan | a stray pixel (an orphan) |
| yellow | a line turning a corner in one pixel |
| magenta | a two-by-two block of line: a thick line |
| red | a pixel off the palette |
| orange | an 8 x 8 tile with more colours than the console allows |
| deep orange | a frame with more colours than the console allows |
| pink | a colour the console does not have |
| violet | a pixel that differs from the side it is mirrored from |
| green box | a part drawn in its plain colour because its texture file is missing: put the file beside the model |
| lime | a pixel on the frame’s outermost row or column: something runs past the canvas and is cut there (a frame with no transparent pixel at all, a world or a background, is drawn to its edge on purpose and is not marked) |
Pixel effects
An Effect node of the Scene graph (listed under Effects in the Outliner) adds an effect drawn from 3D particles: forty-three kinds.
| Use | Kinds |
|---|---|
| Hits and bursts | Explosion, Hit spark, Slash, Magic burst, Smoke puff, Dust, Debris, Blood, Confetti, Coin burst |
| On the ground | Shockwave, Ground slam, Frost nova, Splash, Ripple, Level up, Teleport, Poison cloud, Aura |
| In flight | Fireball, Magic missile, Muzzle flash, Breath, Jet, Lightning, Beam |
| Magic and status | Charge up, Heal, Portal, Sparkle, Stun stars, Soul, Trail, Shield |
| Loops and weather | Fire loop, Embers, Steam, Spark shower, Whirlwind, Rain, Snow, Fireflies, Falling leaves |
It is rendered through the same pipeline as the model, so it takes the sprite’s palette, pixel size, light and lines: it looks like it belongs in the same game. Each kind is drawn the way pixel artists draw effects: a tight palette of its own, dark to light; flames and sparks flat in one colour of it, stepping down it as they cool; smoke round and banded, with a dark rim and no glint; every particle grows in and shrinks to nothing, so a burst has a start, a peak and a fade and leaves nothing behind; sparks drawn stretched along where they fly, with a bright head.
The particles are shaped for what they draw: round puffs (smoke, dust,
a fireball with a hot core two steps brighter drawn over its shell from
any camera), flames round at the foot and drawn out to a point, thin
streaks, flat rings that swell out fast and thin away as they go
(a shockwave, a ripple, a ring of light; Upright, standing to face
the front like a portal), four-pointed twinkles (the pixel-art glint),
chunks, shards and coins that tumble as they fly, flat
hearts, five-pointed stars and crescents that read from any
side (never smaller than five pixels across), and smooth bubbles. They move by closed-form rules, so every frame is the same every
time: thrown out and slowed, falling and bouncing where they land on
the ground (rocks, coins, sparks), drawn in to the middle (charging
up), turning round the axis and widening as they rise (a whirlwind),
going round an orbit (stars over a dazed head), or left behind as a
trail while the effect flies on (a fireball, a soul rising). A
Fireball, Magic missile and Muzzle flash fly along +X when they are
on their own and along their bone’s axis on a node (axis=), drawn in
place for the game to move.

Inside a clip. Pick the clip under In clip and the effect is drawn
over that clip’s own frames, in the same row and for the same number of
frames, from its Start frame: a muzzle flash on the frame Fire
shoots, sparks on Hurt, an explosion on Destroy and a fire burning on
after it. With Follows it rides a bone or a part of the model, moving
and turning with it, so a flash stays at the gun on every side of a ring
and as a turret turns. It starts where the bone pivots (a bone’s head), as
the clip poses it, through the model’s own transforms and its import fix;
Breath, Jet, Lightning, Fireball, Magic missile and Muzzle flash start at the far end of what the bone
carries along their axis instead (a jaw’s tip, a barrel’s end), so a breath
on the jaw leaves the mouth. A kind that loops (fire, jet, embers, snow…) fills
the rest of the clip with as many of its loops as fit at about its own
frame count (fire-loop:8 in a 96-frame clip plays twelve times), so it
keeps its speed however long the clip is and closes with the clip’s own
loop (stop=F puts it out on frame F of the clip instead: a fireball
gone where it lands, a loop dying down by then, none of its particles
born to outlive it; Once plays a loop a single time over its own
frames, from nothing to nothing); a kind that plays once plays its frames
once. A loop laid over a one-shot simulation (@volume) stops on the
volume’s last drawn frame unless it says otherwise, so the effect ends at
nothing. With Its own action
the effect is an action of its own (fx-explosion, …), and Effect
only draws it without the model, as its own layer aligned with the
character’s sheet.

Effects get cells of their own. A sheet is fitted to the biggest
pose of every clip and side, the model alone, so a breath or a column of
smoke never shrinks the creature; an effect then gives the clip it is
drawn in cells of its own (Counts to fit: on for an effect drawn
in a clip unless it says fit=no, off for snow, rain and falling leaves,
which fall round the frame, and for an effect of its own unless it says
fit): as
much bigger as the effect reaches, at the sheet’s scale, the model on the
same pixels, while every other clip keeps the sheet’s cell. With fit=no
what runs past the cell is cut at its edge (--margin PX keeps that many
empty pixels round the fitted sprite and its outline for it).
A thruster’s jet is whole on the missile’s Fly row and its idle row
stays small; an effect of its own (fx-explosion) gets its own cells the
same way. Its row is as tall and its cells as wide as they are, packed
on the grid, wrapped, trimmed and shared like any other, and the files say
so: the JSON gives the frame’s size (sourceSize), its pixor.cell and
its pixor.pivot; the .aseprite file and the Godot frames put every
clip on one canvas, lined up on the pivot. The checks mark in
lime whatever is cut at the frame’s edge, so a shard that a stronger
gravity throws out of a fixed canvas shows on the frame while the
setting is changed, not first in the exported sheet. An effect with nothing
else in the scene is always fitted to. Parts of the model can be left out
of the fit the same way: pxr.fit: false on a part in the model file
(connectors), or --fit-ignore PART,... on pxr render
and pxr project set (--fit-all puts them back), for a thrown snowball or
a flash made of geometry.
Colours. Colours swaps the kind’s own palette for a ramp, step for
step: fire, frost, snow, poison, lightning, sparkle, magic,
shadow, water, smoke, dust or blood; on the command line also a
list of #rrggbb colours, dark to light, or the name of a material of the
model, whose ramp it takes. A smoke puff in snow is a blue-white puff of
snow, a breath in frost is a frost breath.

Directional kinds. Breath streams from its emitter along an axis,
widening and rolling as it goes, white at the mouth and cooling down its
ramp; the last of it flies off after the mouth has stopped. Jet is a
narrow flame that keeps burning: a thruster. Lightning is a jagged bolt
with a white core and a coloured rim, forking, flashing on and off over a
few frames, a new bolt each flash: on its own a strike from 1.5 m up down
to the ground, on a bone a bolt from a staff’s tip or a jaw. All three
point along their bone’s length (its +Y, as Blender draws bones), or where
axis= says, in the bone’s own space. A breath in lightning is a
crackle of bolts from the mouth, a new one each frame. Embers rise off
something burning, drifting and thinning, with smoke that fades as it
climbs.
Which way is which. at= and axis= are read in the model
file’s own axes, glTF’s: +y up, the model facing +z, so its right is -x
(and on a node, that node’s axes as the file stores them). A model built
in Blender is Z up facing -Y, and its exporter turns it, so Blender’s -y
(forward) is +z here and +z (up) is +y: axis=-y points down. Say the way
instead, axis=forward, back, up, down, left or right (the
model’s own), or add axes=blender and give at= and axis= in
Blender’s axes: lightning@Attack:Gun+8,axis=-y,axes=blender fires
forward.
A slash faces its axis. Slash sweeps a curved swipe in the plane
facing axis=: left as it is, it faces the model’s front (+z), which a
camera in front sees whole and a camera beside the model sees edge-on, as
a thin upright bar. For a side view turn it to that camera: axis=+x for
East (a platformer’s side), -x for West. Set on a node, the axis is in
the node’s space and the swipe turns with it.
Strokes of light. Trail draws a stroke along a path: its head runs
the path, thick and white-hot, and what it leaves behind cools down its
colours and thins away, the way the fuel a moving flame leaves burns out.
A comet, a rune drawn in the air, the wing or the claw of a spell of fire,
with no simulation. Its path is points in metres from the emitter, a
smooth curve through them, X,Y,Z split by colons, as they stand in the
node’s rest pose: riding a node that turns (a turret’s head aiming), the
path turns with it; a trail is also a
particle shape any effect can use, so one effect can draw several strokes:
pxr effect "trail,ramp=frost,1.path=0,1.2,0:0.3,0.3,0:-0.3,0.3,0:0,1.2,0"
pxr effect "trail,1.path=-1,0,0:0,0.8,0:1,0,0,2.path=-1,0.4,0:0,1.2,0:1,0.4,0,2.birth=0.2,0.65"
At any scale. Size spreads an effect, and its particles grow only as
its square root while there are as many more of them as it has grown: a
fire at size 3 is three times the tongues of flame, each under twice as
big, not three big blobs, and falling leaves round a big tree stay leaves.
Density (density=) is how many particles against its own number,
for an effect that has to read at a small scale, or a sparse one. Drawn
at a few pixels a metre, no particle comes out smaller than a pixel (a
spark, a streak’s width) or two (a puff, a flame, a leaf), so a jet at
3 pixels a metre is a flame, not two loose pixels. A bolt is a line one
pixel wide (two, for a wide bolt drawn big) with a one-pixel rim, at any
scale; in an effect that does not point (a burst, a zap) each flash’s bolt
goes its own way out from the middle, and a strike or a burst of bolts
ends on a dark frame.
Again and again. Every (every=N) starts the effect again every
N frames of its clip from its start frame, and On event (on=NAME)
at every frame event of that name in the clip (with
every, both): dust under a foot on every step, sparks on each hit of a
combo. Each play has particles and a seed of its own, so no two puffs
are alike, and up to eight overlap; a play that starts near the end of a
looping clip goes on into its first frames, so the loop closes. A loop
repeated this way plays once each time.
pxr render raptor.glb --clip Walk --event Walk@3=step --event Walk@11=step \
--effect "dust@Walk:Toe.L,on=step" --effect "dust@Walk:Toe.R+7,every=8"
Left behind. In the world (world) leaves each particle where the
emitter was when it was born, rather than carrying it along: smoke from
a drifting car’s tyres, a rocket’s exhaust, the puffs a running dog
kicks up stay behind as it goes. With root motion taken out
(--root-motion in-place) the world moves past the model instead, so the
smoke still streams away behind it.
Flown along a path. Path (path=X,Y,Z:X,Y,Z:..., metres from
where it starts, in the model’s space) flies the emitter along a smooth
curve through the points over its frames, and Arc (arc=H) lifts it
H metres at the middle of the way, as a thrown thing rises and falls; a
fireball, a missile or a jet points along where it is going. Lands
(land=KIND) starts another effect where the path ends, as this one
ends: a glob of acid that splashes, a shell that bursts.
pxr render spitter.glb --clip Spit --effect "fireball@Spit:Jaw+4,ramp=poison,path=0,0,0:3,0,0,arc=1,land=splash"
Effects made of effects. A recipe chains effects with >, each step
KIND[:N][@land][+F][,KEY=V...]: started F frames after the first
starts, or with @land F frames after the first lands, where its path
ends. On its own, the recipe’s action lasts until its last step ends.
pxr effect "fireball:12,path=0,3,0:4,0,0>ground-slam@land>fire-loop@land+2,once"
Sizes in pixels, or from the model. Size takes 64px (as many
sprite pixels across at its biggest, at the sheet’s scale), 1.1h (that
many times the model’s height: an explosion that fits any mech) or
node / 1.5node (that many times the width of the node it rides: a
Jet on a nozzle is a thruster flame as wide as the nozzle, a Shield
round a hull), as well as a plain number.
On the ground. at=ground puts the effect on the floor under where
it would be: a flyer’s Explosion on its death clip bursts where it
falls, not in the air (--effect "explosion@Death:Torso+8,at=ground").
Beams and pinned bolts. Beam is a straight line from its emitter
along its axis: a white core in a coloured rim that fires out over its
first frame, holds, thins to a pixel of its colour and is gone, turning
with its node (a laser or a railgun tower’s shot). Length
(length=M) is how long it is. to=X,Y,Z (a point of the model) or
to=NODE (a node or bone, where the clip puts it every frame) pins a
Beam or a Lightning bolt from the emitter to there: the bolt is
redrawn every frame and crackles the whole time, ending on its point
(a tesla coil’s arc, chain lightning between two enemies).
pxr render railgun.glb --clip Fire --effect "beam@Fire:Muzzle+2,axis=+z,length=3,ramp=energy"
pxr render coil.glb --clip Zap --effect "lightning:12@Zap:Tip,to=Target"
Shields. Shield is a bubble of light round where it is: its rim
bright, its face clear enough to see what it guards through it, popping
up and fading out. hit=F flashes it on frame F and sends a ripple
across it. Sized to what it rides with size=1.3node, or to the model
with size=1.2h. See-through (N.see=) makes any glowing particle
light over what is behind it in the same way.
pxr render tank.glb --clip Hurt --effect "shield@Hurt:Hull,size=1.4node,hit=2"
Light from an effect. Light (light=R) makes the emitter a lamp
reaching R metres while the effect plays, lifting what faces it up its
ramps (as an added lamp does):
a fireball lights the floor it flies over, a muzzle flash the gun.
Weather round a model. Snow, Rain and Falling leaves left where they start fall through the model’s own box, however big the model is, so a winter creature at 32 px has its one- and two-pixel flakes all round it on every frame of its loop.


Set its frames, size, energy, where it is (in metres along its bone’s own
axes from where it starts, when it follows one) and its seed (the same seed always gives the same pixels).
Hit frame marks the frame that lands the hit: the JSON lists it under
meta.pixor.hits, on the clip it is drawn inside. On the command line each
--effect has its own settings:
pxr render mech.glb --clip Fire --clip Hurt --clip Destroy \
--effect "smoke-puff@Fire:Gun+1,size=0.4" \
--effect "hit-spark@Hurt:Body+2,hit=0" \
--effect "explosion@Destroy:Body+3,size=2" \
--effect "fire-loop@Destroy:Body+8,size=0.8"
pxr render dragon.glb --clip Breath --effect "breath@Breath:Head+2,ramp=frost,size=1.5"
KIND[:FRAMES][@CLIP[:NODE]][+FRAME] (NODE a bone or part of the model,
or item N or item N: BONE to ride an item), then any of size=, energy=, density=,
seed=, ramp=, at=X,Y,Z, axis=X,Y,Z (or +x…-z), node=,
hit=, stop=, once, every=, on=, world, path=, arc=, land=, to=,
length=, light=, fit or fit=no, alone and its particles’ own N.KEY= (below), in any order (axis=+y,fit is the same as
fit,axis=+y). Make an effect on an empty project’s screen,
beside Import… and Browse free models (or
pxr effect explosion -o fx.png, which takes the same settings:
pxr effect breath,ramp=poison), makes an effect with no model at all.
Its own particles. Under Particles the Inspector shows every
setting of each kind of particle the effect is made of (a fire is flames
and the embers over them): the same 38 settings for every kind, those
that change nothing for its shape left out (a bolt has a length, a width
and forks, and no flight). Change any of them and the particles are the
effect’s own, a copy of its kind’s: more embers, flames that fall, a
fire in frost colours with gold twinkles over it. Add particles adds
another kind of particle, a copy of the last to change; Delete takes
one out; Back to the kind’s undoes every change. The project keeps
them, and they still loop, point or start on the ground as the kind does.
On the command line, N.KEY=V sets one of them on the effect’s Nth kind
of particles, and the number one past its last adds one:
pxr effect "fire-loop,1.colours=frost,1.count=30,3.shape=twinkle,3.count=6,3.colours=sparkle"
pxr render knight.glb --clip attack --effect "hit-spark@attack:hand.r+6,1.gravity=-4,1.bounce=0.5,1.floor"
A pair takes two numbers (1.life=0.2,0.4) or one for both; a setting
that is on or off is on by its name alone (1.glow) and off with =off;
colours are a ramp’s name or #rrggbb colours, dark to light; steps are
which of them a particle goes through, hot to cool, from 0 the darkest.
| Inspector | N.KEY= |
What it does |
|---|---|---|
| Shape | shape= |
What each particle is drawn as: a puff, a spark, a shard, a streak, a ribbon, a bolt, a flame, a ring, a twinkle, a chunk, a coin, a trail along a path, a heart, a five-pointed star, a crescent or a bubble (a big smooth ball). |
| How many | count= |
How many particles there are. |
| Colours | colours= |
Its colours, dark to light: #rrggbb colours split by commas, or a ramp’s name. The effect’s own Colours, when set, are used instead. |
| Steps | steps= |
Which of its colours a particle goes through over its life, hot to cool, by number from 0 (the darkest): 4,3,2. |
| Glows | glow= |
One flat colour whatever the light, with no lines round it: fire, magic, sparks. |
| Born from, Born until | birth=A,B |
When the first particle is born, a share of the effect’s length (0: at its start); when the last particle is born: near the first a burst, far from it a stream. |
| Shortest life, Longest life | life=A,B |
The shortest a particle lives, a share of the effect’s length; the longest a particle lives, a share of the effect’s length. |
| Spread | radius= |
How far from the emitter particles are born, in metres; for a bolt, how jagged its forks are. |
| Flat | flat= |
Born on a flat disc and thrown out across it, rather than in a ball. |
| On the edge | shell= |
Born on the edge of the ball or disc, not inside it: an orbit, a ring of flames. |
| Drawn in | inward= |
Born round the edge and drawn in to the middle over its life: charging up, being sucked in. |
| From the ground | floor= |
Born on the ground under the emitter, rather than round it. |
| Slowest, Fastest | speed=A,B |
The slowest a particle is thrown, in metres over the effect’s length; a bolt’s length; the fastest a particle is thrown, in metres over the effect’s length. |
| Upward | up= |
How much particles go up, or along the axis for an effect that points: 1 all one way, 0 every way. |
| Backward | back= |
Thrown back against the axis rather than along it: a trail. |
| Gravity | gravity= |
How hard particles are pulled: less than 0 they fall, more than 0 they rise. |
| Drag | drag= |
How soon particles slow down in the air: 0 never. |
| Bounce | bounce= |
How much of its speed a falling particle keeps when it lands (0: it stops there). |
| Swirl | swirl= |
How many times particles turn round the axis over the effect: a whirlwind. |
| Funnel | funnel= |
How much wider their turning gets the higher a particle is (less than 0: narrower). |
| Wobble | wobble= |
How far particles roll from side to side as they go, in metres: embers drifting. |
| Travels | ride= |
How far the emitter goes along its axis over the effect, in metres: particles born on the way stay behind as a trail. |
| Tumble | tumble= |
How many times chunks, coins and shards turn over as they fly. |
| Size at birth, Size at end | size=A,B |
How big a particle is born, in metres; how big a particle is at the end of its life, in metres. |
| Grow in | grow= |
The share of its life a particle takes to grow from nothing. |
| Shrink out | fade= |
The share of its life a particle takes to shrink to nothing at its end. |
| Height | squash= |
A puff’s height against its width: 1 round, less a flat splat. |
| Stretch | stretch= |
A streak’s length, as far as it flies in this share of the effect; a ring’s band, a share of its radius. |
| Bright head | head= |
A streak gets a head in the brightest colour; a puff or a flame a hot core two steps brighter. |
| One colour each | scatter= |
Each particle keeps one of its colours all its life (confetti), rather than all going through them together. |
| See-through | see= |
How much of what is behind shows through a glowing particle: its rim stays whole, its face thins to light over what is behind. |
| Upright | upright= |
A ring stands up facing the front, as a portal does, rather than lying round its axis. |
| Forks | forks= |
A bolt’s forks: 0 the main bolt, else how many forks branch off it. |
| Path | path= |
A trail’s path: points X,Y,Z in metres from the emitter, split by colons (0,0,0:1,1,0:2,0,0), drawn as a smooth curve through them. |
Hitboxes, hurtboxes and sockets
A part’s Box in the Inspector (or --hitbox, --hurtbox) makes it a
hitbox (it deals hits: a sword) or a hurtbox (it can be hit: the body), and
a bone’s Socket in the JSON (or --socket) makes it a socket (a hand, a
muzzle). Every frame’s JSON
then carries pixor.boxes (part, kind, x, y, w, h in cell
pixels, from the pixels each part really covers) and pixor.sockets (each
bone’s position in cell pixels), so game code can check hits and attach
effects without guessing. A model file can mark parts too (pxr.box).
Pictures through a Style
A picture can take a look as a model does: a painting, a photo cut out,
concept art, an icon drawn at a large size. pxr render with a picture
instead of a model draws it through the Style — downscaled to the size
asked for, its colours taken to the palette (each patch of colour keeps a
ramp of its own), the lines drawn around it, the cleanup done — seen level
and from the front whatever view the look was made for. Clear pixels stay
clear.
| A picture | Through the selout look at 64 px |
|---|---|
![]() |
![]() |
pxr render concept.png --preset selout --size 48 -o concept-sprite.png
pxr render potion.png --palette dusk-12 --size 24 -o potion.png
pxr batch paintings/ -o sprites/ --style my-look.pixorkit --size 64
pxr batch takes a folder of pictures with one look for them all; in a
folder that also holds models, a picture is taken for a model’s texture
and left alone. A picture is lit as it was drawn: the Style’s light
does not shade it again.
A turnaround sheet
pxr turnaround makes a model sheet on one page: the character from
the front, three-quarter, the side and the back, at one scale, standing on
one line, each with its size in pixels; its palette, dark to light; a
height chart with a rule every half metre, the character beside every model
named with --with, all at that same scale and seen level so the rules
are true; and a small “Made with Pixor”. For a pitch, a commission, a wiki,
handing a character to another artist, or a pack page.

pxr turnaround knight.glb --preset selout --with goblin.glb --with troll.glb -o knight-sheet.png
pxr turnaround game.pixor --height 48 -o sheet.png
--height is how many pixels tall the character is drawn (default 64);
--ppu gives the pixels per metre instead. The page is drawn in whole
pixels and scaled up --page-scale times (default 3), over --background
(default a dark slate); --title names it (default the file’s name). A
project brings its own model and look; a model takes any of pxr render’s
look flags. Beside the page, PAGE.json gives the scale, each view’s size,
the palette as hex and the heights.
Dialogue portraits
Dialogue portraits (a File node of the Asset graph, --portraits on
the command line) draw an RPG’s or a visual novel’s bust of the character
in each of its expressions, with its mouth opening beside each for the
talk loop, on a sheet of their own: a row per expression, every cell the
portrait’s own size, drawn through the sprite’s Style and written in the
sprite’s palette, index for index, so the portrait and the sprite are one
set of colours. NAME_portraits.png beside the sheet, and
NAME_portraits.json naming every cell.

- The bust is framed from the head: a bone or node called
head(Head,mixamorig:Head), from the top of the model down past the neck by four tenths of the head, square about it, so the shoulders show and a shield held out is cropped rather than shrinking the face. A model with no head node is framed on its top two fifths. Every cell is framed from the one box at rest, so the face stays on the same pixels from cell to cell. The camera looks at the face (Turn 0) from a little above (Look down, 10 degrees), whatever view the Style has; the Eyes pass draws the eyes at the portrait’s size. - An expression is the face’s morph targets of its name, set full
on:
happyis every target calledhappy(orsmile,joy),angry(anger),sad,hurt(pain),surprised,blink, or any name of your own, as Blender’s shape keys export them.neutralis the face as it stands. Or a pose:hurt:hit@2is frame 2 of thehitaction, cut as the sheet cuts it, with thehurttargets on top if the face has any; a pose is moved so the head is where it is at rest, so a crouch is still framed on the face. Left empty, the expressions areneutraland those ofhappy,angryandhurtthe face has. - The talk loop opens the mouth by its morph target (
mouth_open,jawOpen,aa,open…) or, with none, by turning a bone whose name hasjawin it about its own X axis (Jaw opens, 14 degrees; negative for a rig whose X points the other way). Talk frames 3 is the mouth shut, half open and open; 2 shut and open; 0 the expressions alone. The first frame is the expression itself. A model with no mouth gets no talk frames, and says so.

pxr render hero.glb --portraits 96 -o hero.png
pxr render hero.glb --portraits 128,neutral,happy,angry,hurt:hit@2,talk=2 -o hero.png
pxr render hero.glb --portraits 64x80,neutral,surprised,turn=25 -o hero.png
pxr project set game.pixor --portraits 96,neutral,happy
The JSON gives the size, what opens the mouth, each expression with its
row and its pose, every cell’s name (happy, happy_talk1,
happy_talk2), place, expression and how far its mouth is open, the
palette, and talk, the order a dialogue box plays the loop in: shut,
half, open, half ([0, 1, 2, 1]) for three frames. An expression the face
has no target for and that names no pose is an error that lists the
targets it has. The portraits are the same pixels on every run.
A Godot scene, wired already
Eight sides by a dozen actions is a lot of wiring by hand. godot-scene
(Godot scene in the Asset graph) writes it: name.tscn, with
- an AnimatedSprite2D on the sheet’s SpriteFrames (
name.tres, written with it), its origin at the pivot; - an AnimationPlayer with an animation per action and side, each frame
stepped at its own hold, and every frame event a call to
eventon the scene’s root, whose script (name_events.gd) gives it out as the signalpixor_event(name); - an AnimationTree: a state per action, each blending its sides by
facing (South is
(0, 1), East(1, 0)), and, when there is a walk, amovestate that blends idle, walk and run by how far out the blend position is: the facing times the speed, 0 to 1.
$Knight/Tree.set("parameters/move/blend_position", facing * speed)
$Knight/Tree.get("parameters/playback").travel("attack")
$Knight.pixor_event.connect(func(name): if name == &"footstep": $Steps.play())
Every blend is discrete: a sprite shows one frame, never a mix.
Frame events
A frame can carry events for the game: footstep on the frames a foot
lands, hit on the frame a blow connects, spawn where a projectile
leaves the hand. They are set on the action (the Timeline’s Events
field in the Asset step, or --event CLIP@FRAME=NAME, the frame counted
from 0 in the clip’s own frames, as a hold is), so every Sprites node that
cuts the clip carries them, a Frame range keeps them on the frames they
were set on, and a re-bake that moves the frames moves them along. The
clip’s own frames are its frames at the frame rate (--fps, 12 in a
project): with smart frames or picked frames, which keep other
moments, an event goes on the kept frame on screen at its frame’s time
(attack@7 at 12 a second is the moment 0.58 s in, so the frame that
shows it carries the event), and one past the clip’s end is left out
with a warning. Every
frame’s JSON then lists them under pixor.events, and the sheet’s
meta.pixor.events gives them again by animation and frame number, for
game code that looks them up without walking the frames; a text output’s
{events} word writes them into a template of your own.
A hit-stop is an event with a hold on the same frame: --event attack@7=hit+300 says hit at frame 7 and holds that frame at least
300 ms, so the sheet, the GIF and the .aseprite all pause on the impact,
and the JSON’s duration says how long the game should freeze with it. A
hit-stop only ever lengthens its frame: one already shown longer (a smart
frame held 400 ms) keeps its own hold. --event attack@7= takes the
frame’s events and hit-stop off, --no-events all of a project’s.
pxr render knight.glb --clip walk --event walk@1=footstep --event walk@5=footstep --export json
pxr project set game.pixor --event attack@7=hit+300 --event attack@3=swing
Paper-doll layers
With props attached, Paper-doll layers (--paper-doll) also writes
name_base.png, the model without its props on the same canvas, and one
layer per prop (name_sword.png), its visible pixels with the lines around
them. Stacked base first, they give the full sheet; swapping a prop’s layer
swaps the equipment. name_stacked.png is them stacked that way, as the
engine will stack them: the preview that shows they line up. Every piece’s
pixels are the sheet’s own; the base is the body drawn without the pieces,
so it differs from the sheet only within a few pixels of a piece’s edge,
and where a piece casts a shadow on the body — turn cast shadows off
(--no-shadow) for layers that stack exactly. Rows a Sprites node draws with a
part set belong to that node’s own sheet, not to the layers. (The app makes
them with pxr from the saved project, saving it first when it has
changed, so the layers are what is on screen.)
Equipment that is part of the model — a helmet, a shield, a cape modelled with the character rather than attached as a prop — is a piece:
pxr render knight.glb --clip all --paper-doll --piece helmet:Knight_Helmet --piece gear:Round_Shield,1H_Sword
pxr project set knight.pixor --paper-doll --piece helmet:Knight_Helmet
Each piece names the parts it is made of (as the Outliner lists them) and
becomes a layer of its own, name_helmet.png, exactly like a prop’s (in the
app, a part’s Its own paper-doll layer makes it one, named after it): only
the pixels of it that show, so a shield behind the body is hidden where the
body hides it. The base is rendered without every piece and prop, so what a
helmet covered — the head under it — is drawn there. --no-pieces clears
them from a project. An asset graph’s Layer node names base or a piece or prop
by its name as its layer, to lay the layers out as it likes
(Asset graph).






















