Open 3D Stream

Alastair Macleod, 2022-2026

Open3DStream provides a simple and unified way to stream realtime animation (skeletons, rigid bodies and cameras) between devices, applications and locations. Data is sent unmodified and annotated with its axes, units and time; a receiver can ask for it converted into its own coordinate space.

Why it exists

Every 3D application has its own idea of what a position means. MotionBuilder is right-handed with X right, Y up, Z back, in centimetres. Unreal is left-handed with X forward, Y right, Z up, also in centimetres. Maya, Blender, game engines and capture systems each choose differently again, and may work in metres, millimetres or inches. Stream raw numbers between two of them and the character lies on its back, faces the wrong way, is mirrored, or is a hundred times too large or too small.

The usual fix is a hand-written conversion in every plugin, which then has to be right about axis permutations, sign flips, handedness and units. Open3DStream puts that in one tested place.

How it works

The sender describes its data and sends it unmodified. Each packet carries a context: which direction X, Y and Z point (left, right, forward, back, up, down) and the distance unit. Nothing is converted on the way out, so no information is lost and the sender needs no knowledge of its receivers.

The receiver converts on request. A receiver names the context it wants, for example Unreal’s, and the library works out the axis remapping, sign flips and unit scale between the two and applies it as it parses. A receiver that wants the data as sent gets exactly that. Different receivers can take the same stream in different spaces.

Handedness is handled. Converting between right- and left-handed systems flips the winding of rotations, which is where hand-rolled conversions usually go wrong. Rotations are carried as quaternions, so they are free of euler-order ambiguity, and the conversion adjusts them for the handedness change.

Time is annotated, never converted. Packets carry the sender’s clock, timecode, frame rate and drop-frame flag, so a receiver can line data up with its own timeline rather than guessing.

What is streamed

  • Performers (skeletons), rigid bodies and cameras, each as a hierarchy of transforms identified by a stable UUID.

  • Named curves, such as blendshape or facial values.

  • After the first full frame only the transforms that changed are sent, using a compact FlatBuffers encoding.

  • Transport is nng: pub/sub, pair or pipeline, over TCP, IPC or TLS.

A typical use is capturing in MotionBuilder (or any source that can describe its own axes and units) and driving a character live in Unreal through Live Link, with no per-application conversion code.

Limits

Conversion currently applies to world matrices. Local translation, rotation and scale values stay in the sender’s space. Rotations are quaternion-only on the wire, so a sender whose source data is euler converts before sending. See the project ROADMAP.md.

Indices and tables