Architecture
SpatialEngine manages project state, the scene, and rendering. SpatialDrive provides shared project storage and spatial data streaming.
Client interface
Applications submit typed statements to read or change engine state. SDK methods expose these calls in Python and TypeScript.
The native engine runs in a separate process and accepts statements over gRPC. The browser engine runs as WebAssembly and exposes statements through the TypeScript SDK. The API reference covers both SDKs and the Protobuf contract.
Projects and scene
A project holds versioned spatial objects and data. Transactions group project operations into commits that support undo and redo.
The scene holds the nodes and components used for rendering and interaction. Project synchronization copies project state into scene components. Applications can also create scene nodes and edit components directly.
Synchronization is one-way: project to scene. Direct scene edits are temporary and can be overwritten by synchronization. Persistent edits belong in the project.
Rendering and input
Viewports render the scene through independent cameras. The renderer streams large datasets as it needs more detail.
The viewport sends pointer input to the engine. Applications query interaction results through statements and decide how to respond. The application supplies the surrounding UI.
Embed a viewport covers UI integration.
Shared storage
SpatialDrive stores shared project history and spatial data. The engine connects to it to load projects, save changes, and stream datasets. SpatialDrive enforces access to server data. Scene state and rendering remain in the engine.
Client integration covers the connection. Server architecture covers storage and deployment.
Extensions
The engine executes sandboxed extensions as WebAssembly components. Extensions call statements from inside the engine. The engine controls their access to host capabilities, including files and networking.