Physel

A physel is one small, solid piece of matter with an exact shape. Move the dials and watch one equation become a box, a cylinder, a cone, a ball or anything between. Then pick a brick wall or a table made of physels, and pull it apart.

The demo

Drag the picture to turn it; scroll or pinch to zoom. With the picture selected, the arrow keys turn it and + and − zoom.

The physel's dials

One physel on a floor of physels.

Start from
Shape bytes 13–15

Roundness, 0 to 15 each: 0 is a diamond, 7 is round, 15 is square. Sides is the cross-section; ends is the profile from bottom to top.

Size bytes 10–12

Each size is one byte on a logarithmic scale from 1 mm to 16 m, in steps of 3.9%.

Turn bytes 6–9
Carve a second physel that cuts
Matter bytes 16–19
Shape kind
Volume
Mass
The physel's 32 bytes

Every physel is one 32-byte record. These are the selected physel's bytes, in hexadecimal, in the version 2 layout (designed; bytes 0–23 are the same in today's build). The dials above change them.

The selected physel's record, field by field
BytesFieldValue

About the project

A physel has an exact surface, a volume and a mass, and is made of one or two materials. The same physel is drawn, collides, breaks, warms and makes sound, so there is no separate mesh, collision shape or sound file to fall out of step with it. When something breaks, the pieces are the physels that were there.

We are building an engine on physels, from scratch in Rust on Vulkan. The goal is real-time worlds in virtual reality where anything can be broken, burned, flooded or built. It is early work: the engine runs on one laptop so far, and much of its newest design is not built yet.

We publish our methods openly, so anyone may use them and no one can patent them. Read them on the white papers page. AI assistants (Claude, by Anthropic) help design, build and write this work; a person directs it and checks the results.

Questions and ideas are welcome: hello@physel.com

What the demo leaves out

The demo runs in your browser with a small script of ours, not in the engine. It uses the engine's shape equation, record layout, material table and table of tones, and keeps the rest simple.

  • Simpler light. One sun, an even sky and one mirror bounce. Light does not bounce between surfaces, and see-through matter does not focus light. The sky is a plain gradient; the floor is made of physels.
  • A simpler solver. The demo finds each hit by stepping along the ray and halving the step, in 32-bit numbers. The engine uses closed forms where they exist and a guarded Newton solver elsewhere, with a written error allowance.
  • No physics. Pulling a thing apart only moves its physels outward. In the engine, bonds break under force and the pieces fly by rigid-body physics.
  • No heat or sound. In the engine a physel warms, glows, burns or melts, and rings with tones from its own shape and material. The demo leaves both out.
  • Mass ignores the bevel and carves. The volume is the closed form of the physel's shape without its bevel, as in the engine; carves are not taken away from it.
  • Four samples per pixel when still. While you drag, each pixel gets one sample; when the picture stops, it is drawn again with four. Nothing is upscaled, and no earlier frame is reused.

The script sends nothing anywhere and stores nothing.