A NEW DIMENSION OF MOTE-ENGINE V0.56.0

Worlds beyond
the screen.

From a spark of an idea to a world you can step inside. A 3D engine for the expressive web. And the intelligence learning to see it.

Explore the engine
SCROLL TO DISCOVER
MOTE-ENGINE 0.56.0 · RECORDED

02 — SAME WORLD. NEW EXPRESSION.

One scene.
Four ways to draw it.

Surfaces become a field of moving characters. Expressive by design, and ready for browsers without WebGPU.

scene.setMode("ascii")One scene. A new way to see it.

SCROLL TO CHANGE PERSPECTIVE ↓ASCII / STUDIO RECORDING
Glass sphere under studio lighting

03 — THE MATERIAL COLLECTION

Materials that
behave like matter.

IOR 1.5. A hint of green through its depth.

512

maximum samples per pixel when the scene holds still

Auto

adaptive quality adjusts to the available GPU budget

0 deps

one engine, WebGPU rendering and an ASCII fallback

SCROLL TO EXPLORE THE COLLECTION ↓RAY / STUDIO CAPTURE

04 — ONE SCENE API · SINCE 0.38

One scene.
Your renderer.

createScene() draws the same objects, lights and effects in ASCII, Wireframe, Ray, or a renderer you write. Hand it a renderer plugin with mode: "custom" and switch back and forth with setMode().

The Toon look on this page is one of those plugins. And smoke in Ray is now a real 3D volume: objects hide it, it hides them, and the camera can fly straight through.

MODE CUSTOM / YOUR RENDERER
import { createScene } from "mote-engine";
import { toon } from "./toon.js";

const scene = createScene(canvas, {
  mode: "custom", renderer: toon,
  stages: [{ items: [knot, ring] }]
});

scene.setMode("ray");            // same world
scene.setMode("custom", "toon"); // your look
Read what changed in 0.38 ↗
RENDERER PLUGIN / TOONMODE: "CUSTOM"
A copper knot between a grey sphere and a pale ring, drawn with inked outlines and flat bands of light by the Toon renderer plugin.
Same scene. Same API. Your shaders.

A breaking rename: the old names are gone, and TypeScript points at each use. The manual has the full table, old name to new.

createScene()
One function for every renderer. Was createAsciiScene().
mode: "custom"
Your renderer plugin, by id or object.
glyphRenderer
What draws ASCII’s characters. Was renderer.

ALSO IN 0.38Smoke in Ray is a 3D volumeA finer starburst for the natural lens flareMirrors reflect again in Chrome on Apple GPUs

05 — GLTF ANIMATION · NEW IN 0.47

Bones bend.
Shapes breathe.

A glTF now moves the way its file says. A skinned mesh follows its skeleton, and morph targets reshape a mesh by their weights.

The bones are scene objects, so set, animate or a timeline track bends the skin. gltfTracks plays the file’s own animation, weights included, in Ray, Wireframe and ASCII.

GLTF TREE / ONE TIMELINE
const doc = parseGltf(await file.arrayBuffer());
const tree = gltfTree(doc); // skins, shape keys
const { items, ids } = gltfTreeItems(tree, { id: "squid" });
const scene = createScene(canvas, { stages: [{ items }] });

// The file's own animation: bones and weights.
const { timeline } = gltfTracks(doc, tree, ids, { loop: true });
await scene.setTimeline(timeline);
Read what changed in 0.47 ↗
GLTF SKIN + MORPH TARGETSRAY / RECORDED IN 0.47.0

Recorded frame by frame in Ray: one timeline plays both files’ animations, rotation tracks on the bones and a weights track on the ball.

skins
Up to four bones a vertex. The joints are objects you can move.
weights
A new timeline kind. Up to 64 shape keys a mesh.
gltfTracks()
Plays rotation, position, scale and weights channels.

ALSO IN 0.47Timeline tracks move kinematic bodies at their own speedImpulse cues fire once per crossingPicks and bounds follow the deformed mesh

06 — PUPPETS · NEW IN 0.52

Stand it up.
Knock it down.

The engine’s first characters. A puppet is a figure of rigid parts, one body for each bone: it holds its pose until a hit is hard enough, then goes limp, part by part.

Declare one in a stage and its parts are ordinary objects, drawn in Ray, Wireframe and ASCII from the same bodies. limpOnImpact sets how hard a hit must be; goLimp() lets the whole figure fall.

Read about puppets in the manual ↗
PUPPET / MANNEQUIN · 15 PARTSRAY / RECORDED IN 0.52.0
STAGE / PUPPETS
const scene = createScene(canvas, {
  physics: { scale: 1.5, jointSolver: "chain" },
  stages: [{ items: [plinth], puppets: [{
    id: "actor", spec: "mannequin",            // 15 parts
    limpOnImpact: { impulse: 6, spread: 1 },  // N·s, joints
  }] }],
});
await scene.ready;
scene.item("actor.head");          // a part, an object
scene.puppet("actor").goLimp();    // all of it

Recorded frame by frame in Ray, on the scene’s stepped clock: every ball is the “Throw a ball” button’s, and a hit hard enough turns that part limp, and everything that hangs from it.

humanoid()
A mannequin of 15 parts or a dummy of 11, with a human body’s shares of the mass.
limpOnImpact
The part a hit lands on goes limp, and what hangs from it.
"actor.head"
Every part is an object: events, picks and materials name it.

ALSO IN 0.50 – 0.52Joints that break and say when they reach a limitRobots from description files, in a world or a sceneScene JSON keeps parents and groups

07 — CUSTOM SHADERS · SINCE 0.37

Write the surface.
Grow the fur.

Bring your own shaders. The api: 1 contract for volumes, lights, post passes, layers and lenses is now stable, and validateRayManifest() checks a manifest before it ever meets a GPU.

New, as a candidate: the surface part. Ray grows shells over your object and a few lines of WGSL decide where each strand stands and what colour it takes. No textures. Soft shadows included.

SURFACE PART / RAY
// Ray grows 24 shells over the item.
{ kind: "surface", name: "fur",
  item: "creature", fn: "strands",
  shells: 24, length: 0.16, gravity: 0.35 }

// Your WGSL decides every strand.
fn strands(s: FxSurfaceIn, c: FxCtx)
  -> FxSurfaceOut { … }
Read the custom shader guide ↗
SURFACE PART / FURRAY / RECORDED IN 0.38.0

Recorded frame by frame in Ray. Coverage, colour and occlusion come from WGSL; shadows see an engine-made stand-in.

api: 1
Stable for volume, light, post, layer and lens.
validateRayManifest()
Check a manifest on the CPU, no GPU needed.
surface
Candidate kind. Shells over one item, in Ray.

ALSO IN 0.37ASCII keeps scaled-up objects denseRay settings rebuild without a freezeHeat haze, scanlines and glitch on the GPU

08 — WHAT WILL YOU BUILD?

A little engine.
Some big ideas.

A product to explore. An idea to play with. A world to learn from. Here are six places you could take mote-engine.

BRANDS & CAMPAIGNS

Make your next
launch move.

Let a visitor’s scroll reveal a product, change its surroundings or unfold a story. Turn a campaign page into an experience they can explore.

Think: an interactive product launch.

Explore the opening scene
COMMERCE & PRODUCT DESIGN

Let them find
their finish.

Build a configurator for jewellery, furniture or a new device. Let people compare glass, metals and colours in the same light, from their own point of view.

Think: a watch with six material options.

Explore the material collection
APPS & PLAYFUL EXPERIENCES

Give interaction
some character.

Make a mascot react, a reward burst into confetti or a small browser game feel tactile. Combine illustrated rendering, live effects and physical motion.

Think: a playful onboarding moment.

Explore the effects ↗
EDUCATION & EXPLAINERS

Make the idea
click.

Let students change gravity, move a joint or drop an object. Build a virtual lab where trying something is part of understanding how it works.

Think: the same experiment on Earth and the Moon.

Step into the physics lab
COMPUTER VISION

Build the world
your model sees.

Generate controlled variations of an inspection scene. Change lighting, materials and camera angles, then capture images and scene data for your training or evaluation pipeline.

Think: testing recognition under unfamiliar lighting.

View captured variations
ROBOTICS & PHYSICAL AI

A place to practise.
And try again.

Prototype a balance, articulation or navigation task. Drive joints, read virtual LiDAR and replay a starting state. Connect actions, observations and rewards to your own learning loop.

Think: an agent learning to balance a mechanism.

Explore the training API
YOUR IDEA. YOUR STACK. ONE ENGINE.Find your starting point

09 — TAKE CREATIVE CONTROL

Your light.
Your point of view.

MATERIAL STUDY / 001RAY TRACING / STUDIO

Hybrid WebGPU ray tracing brings physical materials, reflections and soft shadows into the browser. Hold a scene still for path-traced refinement.

Explore the effects ↗

10 — SHAPE THE UNEXPECTED

Reality, with
a playful twist.

EFFECT / JELLYTOON / STUDIO RECORDING

Waves travel through the mesh. A solid form becomes something wonderfully elastic.

Choose an effect to see its recorded motion in the Toon renderer.

Explore the full effects library ↗

11 — A WORLD WITH CONSEQUENCES

Give it weight.
Let it learn.

Objects that collide. Sensors that see. Joints that respond.
A physical world you can control, measure and put to work.

PHYSICAL WORLD LABPHYSICS / STUDIO RECORDING
9 DYNAMIC BODIES / GRAVITY 9.81 m/s²

One impulse.
Three worlds.

Choose the gravity, then replay the same impulse. Watch how high the balls rise and how long they take to fall.

Read the physics API ↗

BUILT FOR YOUR TRAINING LOOP

Control the world.
From code.

Run the physics API headlessly in Node.js or in the browser. Add bodies, drive joints, query sensors and restore a snapshot. Combine physical state with image capture for your own learning pipeline.

The downloadable adapter defines reset, action, observation and reward using the public physics API. Training and policy optimization stay in your stack.

PUBLIC PHYSICS API / JAVASCRIPT
import { createPhysicsWorld }
  from "mote-engine/physics";

const world = createPhysicsWorld({
  jointSolver: "chain"
});
// Add bodies and hinges to your world.
const checkpoint = world.snapshot();

joint.setDriveTarget(action[0]);
world.step(1 / 60);
world.raycastBatch(origin, rays, 4, distances);

const observation = [joint.angle,
  joint.angularVelocity, joint.torque];
world.restore(checkpoint);
FIXED STEPS · SENSORS · SNAPSHOT / RESTORE

12 — VIRTUAL ENVIRONMENTS

Before AI sees the world.
Build it one.

Create controlled scenes for computer vision experiments. Vary the light, materials and viewpoint. Capture an image. Repeat with the same scene.

SYNTHETIC VISION LABRAY / CAPTURED FRAME
An inspection scene recorded with seed 42
CAM_01 / INSPECTIONSEED 0042

YOUR NEXT TRAINING GROUND

A new world.
One seed away.

Compare three captured inspection scenes. Each seed changes the arrangement, lighting and camera.

Scene
Object inspection
Objects
9 / procedural
Output
Captured RGB frame

01 / SIMULATE

A world that moves.

Rigid bodies, hinge chains, position drives and friction. Build articulated mechanisms with the engine’s physics APIs.

02 / OBSERVE

More than a camera.

Batch raycasts for LiDAR-style sweeps. Draw sensor rays and hit points directly in the scene with 3D debug primitives.

03 / REPEAT

Keep the conditions.

Scene JSON, fixed-clock capture and physics snapshots give your experiments a reproducible starting point.

An environment for your vision workflow. Model training, dataset annotation and sim-to-real validation belong to your own pipeline.

13 — FROM IDEA TO INTERACTION

Less setup.
More possibility.

A canvas. A scene. Your imagination.
Embed mote-engine in your own stack and make the browser your creative medium.

Read the documentation
your-next-world.ts
import { createScene, torusKnot,
  materials } from "mote-engine";

const world = createScene(canvas, {
  mode: "ray",
  stages: [{ items: [{
    source: torusKnot(2, 3),
    material: materials.copper,
    motion: "tumble"
  }] }],
  lights: [{ kind: "environment",
    preset: "studio" }]
});

WHAT WILL YOU BRING TO LIFE?

Your world.
Starts here.↗

mote-engine 0.56.0
Built for the web. Ready for your next idea.