GPU physics and spatial workflows
The graph module's GPU physics and spatial workflows keep large data sets and simulation state on the GPU. They support WebGPU rigid-body and sphere simulation, vehicle suspension, collision and scene queries, mesh preparation, point-cloud filtering or indexing, and bounded reuse of many physics worlds. Separate ANARI scene-graph adapters prepare retained render scenes and convert them to or from ANARI worlds; they do not replace the graph module's physics worlds. These workflows build on the command-graph model described in GPU graph and domain systems; GPU graph workflows, experimental GPU workflows, and GPU geospatial workflows provide related context.
Workflow scope
The module groups several GPU workflows that share typed data views and explicit graph scheduling. Physics advances world state. Geometry and point-cloud operations transform spatial data for rendering, analysis, or later queries. The ANARI module provides a separate scene representation for rendering and interchange.
| Workflow | Main purpose | Result |
|---|---|---|
| Sphere dynamics | Simulate many sphere bodies and their contacts | GPU-resident poses, motion, sleep state, and bounded diagnostics |
| Rigid-body dynamics | Simulate oriented primitive, convex, and mesh bodies | GPU-resident body state, contacts, events, triggers, joint constraints, and query results |
| Vehicle dynamics | Simulate four-wheel suspension and tire forces on a rigid chassis | Chassis motion, wheel poses, and wheel motion telemetry |
| World batching | Keep independent rigid-body worlds resident and reuse bounded GPU slots | Streamed world state, active-world submission groups, and residency statistics |
| Physics ensembles | Run many fixed-topology local worlds through one shared graph | Per-instance state, status, reset, and shared-step failure reporting |
| Scenegraph physics | Turn authored scenegraph geometry into physics bodies and render bindings | A body snapshot with transforms and publication bounds |
| Scene queries | Ask which colliders a ray, sphere, or sphere sweep reaches | Hits with body and collider identity plus completeness state |
| Mesh geometry | Build normals or smooth vertex positions | GPU-resident mesh attributes |
| Point-cloud processing | Downsample, filter, and index points | Voxel representatives, neighbor masks, and octree records |
| ANARI scene adapters | Move between retained scene graphs and ANARI worlds for rendering or interchange | Scene surfaces, instances, lights, and copied scene snapshots |
The physics entry point is experimental and WebGPU-only. Geometry and point-cloud workflows are also graph-based and use the active WebGPU device rather than the portable evaluator path.
Physics worlds
Physics is exposed through two separate worlds because sphere-heavy scenes and general rigid bodies need different state and collision tradeoffs. Both worlds are added to a GPUCommandGraph, stepped by the application, and designed to publish GPU buffers directly to rendering.
Sphere dynamics
GPUSphereWorld is a specialized solver for sphere bodies against other spheres and static plane-like surfaces. It supports linear and angular motion, friction, rolling and spinning resistance, sleep and wake behavior, persistent contacts, bounded continuous motion, and optional event or trigger output. Its state buffers remain caller-owned, so a renderer can consume the same positions and orientations without a CPU pose bridge. References: modules/…/gpu-sphere-world.ts• L39-118, modules/…/gpu-sphere-world.ts• L120-187, modules/…/README.md• L14-16
The application owns the fixed-step clock, graph submission, and any readback. A sphere step predicts motion, finds nearby candidates, creates bounded contacts, applies iterative response, and publishes updated state. A grid broad phase suits larger fields; an all-pairs mode provides a bounded reference path for small scenes.
The sphere path reports dropped contacts, candidate exhaustion, invalid bodies, and exhausted continuous-impact work. These counters are part of the result contract because a rendered frame can look valid even when the bounded solver did not inspect all required work.
References: modules/…/sphere-world-shaders.ts• L59-104 modules/…/sphere-world-shaders.ts• L106-190 modules/…/gpu-sphere-world.ts• L120-144
Rigid-body dynamics
GPURigidBodyWorld handles bodies with one or more colliders. It supports spheres, boxes, planes, tapered primitives, cooked convex hulls, and cooked triangle meshes. Bodies can be static, kinematic, or dynamic, and their mass, center of mass, and inertia define how contacts change linear and angular motion. Bodies can also publish pose matrices and visual bounds for downstream render use. The world owns its state buffers after graph attachment. References: modules/…/gpu-rigid-body-world.ts• L123-186, modules/…/gpu-rigid-body-world.ts• L207-225, docs/…/gpu-rigid-body-world.md• L89-129
The world chooses an all-pairs reference path for small scenes or a size-aware hierarchical discovery path for larger collider sets. It then builds persistent contact manifolds and uses an ordered solver by default. An opt-in parallel solver groups connected bodies into contact islands, computes per-contact changes, and gathers those changes per body before advancing motion. Parallel mode has a narrower joint contract than ordered mode.
The rigid-body path is bounded and experimental. It exposes capacity estimates and lifetime diagnostics so callers can reject incomplete results, rebuild with larger budgets, and replay from known state. It does not turn finite capacity into a general guarantee for dense piles, arbitrary mesh containment, or all fast-moving shapes.
References: modules/…/gpu-rigid-body-world.ts• L785-817 modules/…/gpu-rigid-body-world.ts• L1249-1423 modules/…/gpu-rigid-body-world.ts• L3194-3239 docs/…/gpu-rigid-body-world.md• L151-181
Vehicle dynamics
The optional vehicle workflow adds a four-wheel suspension model to a rigid-body world. A dynamic chassis samples one static terrain collider for each wheel during every fixed step. Spring and damping forces provide suspension load, while bounded tire grip, steering, drive torque, and braking change chassis linear and angular motion.
Applications provide throttle, steering, and brake controls before upcoming substeps. The world exposes GPU wheel transforms for rendering and can read wheel speed, spin angle, suspension length, and normal load for telemetry. The vehicle has a fixed four-wheel layout and is not available with rollback failure handling or ensemble scheduling.
References: modules/…/rigid-body-vehicle.ts• L5-36 modules/…/rigid-body-vehicle.ts• L38-98 modules/…/gpu-rigid-body-world.ts• L515-539 modules/…/gpu-rigid-body-world.ts• L1272-1385 modules/…/gpu-rigid-body-world.ts• L2139-2207
Resident world batches
GPUPhysicsBatch manages independent rigid-body worlds under a shared residency budget. A template defines the world shape once, while handles identify temporary resident instances that can be activated, paused, reset, stepped, rendered, or released for reuse. Worlds in a batch never collide with each other; the batch manages residency rather than spatial partitioning.
The batch can stream state out to the CPU and stream it back into a reusable GPU slot. It groups active worlds into bounded submission sets and tracks resident memory, slot reuse, and evictions. World origins also support small render-relative translations, which helps large scenes avoid loss of float precision.
References: modules/…/gpu-physics-batch.ts• L18-47 modules/…/gpu-physics-batch.ts• L68-179 modules/…/gpu-physics-batch.ts• L187-300
Physics ensembles
GPUPhysicsEnsemble runs many local worlds with the same body layout through one shared rigid-body allocation and graph. It is suited to repeated independent simulations where each instance has the same topology but different dynamic state. Stable index mapping connects an instance and local body to its poses, controls, queries, and events.
An ensemble trades flexible membership for lower repeated graph and storage cost. It uses a shared contact budget and rollback policy, so a shared capacity failure rejects the ensemble step and requires reconstruction before affected instances can be reset. It reports per-instance activity and accepted or rejected steps while encoding one graph step for the whole ensemble.
References: modules/…/gpu-physics-ensemble.ts• L13-61 modules/…/gpu-physics-ensemble.ts• L64-105 modules/…/gpu-physics-ensemble.ts• L112-198
Joint constraints
Rigid-body joints keep selected body frames together while the solver advances the world. The supported joint types cover fixed links, target distances, general constraints, and hinge or slider motion with optional limits, springs, or motors. A joint can be enabled between submitted steps, and connected bodies do not collide unless that behavior is requested.
Joint setup is intentionally bounded. The current contract supports at most 64 joints and requires the ordered solver for general and dynamic-dynamic joint cases, with at least one dynamic body in each joint. Parallel mode supports only anchored distance joints. Joint limits constrain selected axes with optional stiffness and damping. Joint drives target position or velocity with a force or acceleration mode and an optional force limit. These limits make joint state part of the same explicit capacity and solver-choice contract as contacts and queries.
References: modules/…/rigid-body-joints.ts• L13-46 modules/…/rigid-body-joints.ts• L48-127 modules/…/joint-types.ts• L5-21
Scenegraph assembly
The engine physics scenegraph adapter turns authored geometry and accumulated scene transforms into a snapshot that the physics world and renderer can share. PhysicsGeometryNode marks geometry as physical or opt-out, while makePhysicsScenegraph derives body placement, collision shape, render binding, and publication bounds from the scenegraph.
The default path uses simple box or convex-hull shapes where suitable. A caller must request triangle-mesh cooking for concave surfaces. The snapshot is a build-time view of geometry, so topology or geometry edits require an explicit rebuild rather than an automatic change to the active physics world.
ScenegraphPhysicsSession keeps that snapshot connected to a borrowed engine scene and an owned GPU world. A step samples animation, updates the physics-owned transforms, and publishes the resulting body state back to the scenegraph. The session serializes steps, queries, captures, restores, resets, and rebuilds so that borrowed bindings do not outlive their world revision.
Rebuild is the explicit cooking boundary for mesh, skin, morph, topology, and other scene edits. It can preserve physics state, while reset returns the authored scene and physics state to their saved starting point. Capture and restore include both physics state and scene-node state, which keeps visual transforms and simulation state aligned.
References: modules/…/physics-scenegraph.ts• L10-32 modules/…/physics-scenegraph.ts• L35-111 modules/…/scenegraph-session.ts• L21-85 modules/…/scenegraph-session.ts• L119-238
ANARI scene-graph adapters
The ANARI module has a separate retained-scene path for rendering and scene interchange. ScenegraphSurfaces traverses an engine GroupNode tree and groups visible SceneMeshNode leaves into reusable surface batches. It preserves shared geometry and material identity, collects world transforms, and can retain GPU matrix placements for render passes. This adapter prepares render surfaces; it does not create physics bodies or advance a physics world.
The conversion boundary works in both directions. makeANARIWorldFromScenegraph snapshots CPU-transform PBR scene graphs into ANARI geometry, materials, instances, lights, and a world. makeScenegraphFromANARIWorld creates an independent engine scene snapshot from committed ANARI surfaces while retaining shared geometry and material relationships. These conversions are explicit snapshots, so unsupported GPU transforms, connections, deformation state, or geometry forms must be resolved before conversion.
ANARI renderers use the same scene-surface view for forward, deferred, and ray-traced scene paths. The result is a parallel scene-graph workflow: graph physics and spatial operations produce or consume spatial data, while ANARI adapters organize retained renderable data and support interchange with the engine scene graph.
References: modules/…/scenegraph-conversion.ts• L15-23 modules/…/scenegraph-conversion.ts• L50-121 modules/…/scenegraph-surfaces.ts• L20-125 modules/…/scene-mesh-node.ts• L8-27 modules/…/scene-renderer.ts• L76-108
Collision and query pipeline
Collision work narrows a large set of possible interactions into bounded shape tests and then into stable contact response. The same cooked shape data supports simulation, gameplay queries, sensors, and continuous sphere sweeps.
Candidate discovery
The broad phase uses bounds to find pairs that may touch. Small worlds can compare all pairs. Larger worlds assign each collider to a size-aware hashed-grid level, sort the spatial keys, and inspect nearby cells at matching or coarser levels. Exact bounds tests then remove false candidates. Oversized objects use a separate bounded list instead of forcing every object into a large cell. Ensemble scheduling can restrict this work to active local worlds without making their colliders interact.
This stage produces canonical collider pairs and records dropped pairs, invalid bounds, candidate work, and incomplete traversal. Those records distinguish a complete empty result from a result that stopped because its work budget was too small.
References: modules/…/rigid-body-broad-phase.ts• L23-61 modules/…/rigid-body-broad-phase.ts• L137-191 modules/…/rigid-body-broad-phase.ts• L251-303
Shape contacts
The narrow phase tests the candidate shapes with the method that matches their geometry. Analytic shapes use direct distance or separation tests. Convex shapes use support-based contact queries. Triangle meshes use cooked local geometry and a bounding-volume hierarchy to limit triangle work. Mesh contacts remain surface contacts, so a point deep inside a closed mesh is not automatically treated as an overlap.
Geometry is cooked before graph execution. Cooking provides bounds, triangles, hierarchy data, closure state, volume, center, and inertia information. Dynamic mesh bodies require closed positive-volume geometry because the solver needs valid mass properties.
References: modules/…/rigid-body-mesh.ts• L7-19 modules/…/rigid-body-mesh.ts• L149-153 modules/…/rigid-body-mesh.ts• L185-287 modules/…/rigid-body-query-geometry.ts• L25-76
Contact response
The solver turns contacts into impulses that prevent inward motion and add bounce or friction. Persistent manifolds retain contact identity and prior impulses between steps, which improves stability for resting and sliding bodies. Sleep state removes settled work and wakes connected bodies when a control or new contact changes their motion.
The physics step follows this high-level sequence:
flowchart LR
A[Body state and controls] --> B[Predict motion]
B --> C[Discover candidate pairs]
C --> D[Generate shape contacts]
D --> E[Match persistent manifolds]
E --> F[Solve normal and friction response]
F --> G[Integrate poses and sleep state]
G --> H[Render buffers, events, and diagnostics]
Continuous motion extends this path for selected fast-moving bodies. The default sphere-static mode sweeps dynamic spheres against supported static surfaces. A convex mode supports selected dynamic convex bodies and moving convex obstacles. Both modes use bounded candidate and impact work, so exhausted work marks the step incomplete and the transactional path rejects it instead of claiming that no collision occurred.
References: modules/…/sphere-persistent-contacts.ts• L7-12 modules/…/sphere-persistent-contacts.ts• L43-97 modules/…/rigid-body-continuous.ts• L16-25 modules/…/rigid-body-continuous.ts• L28-119 modules/…/rigid-body-continuous.ts• L184-225 modules/…/rigid-body-continuous.ts• L343-382 modules/…/rigid-body-query-geometry.ts• L202-259
Scene queries
Rigid-body queries provide gameplay and interaction access without advancing the simulation. A raycast keeps the nearest hit. A sphere overlap returns selected colliders in collider order. A sphere cast sweeps a translated query sphere with bounded conservative advancement. Each query runs collider tests in parallel and then reduces the results to the requested output.
Query results include hit data, total hit count, output truncation, and a complete flag. Callers must check complete before using results because mesh traversal or sweep advancement can stop early. Only one query can be pending for a world, and query selection is separate from physical collision filtering.
References: modules/…/rigid-body-queries.ts• L5-34 modules/…/gpu-rigid-body-world.ts• L2779-2895 docs/…/gpu-rigid-body-world.md• L251-302
Events and triggers
Optional GPU rings turn physical state into game-facing signals. Contact events report begin, thresholded impact, and end phases with stable body and collider IDs. Trigger groups use spherical sensor colliders to report enter and exit state for selected target bodies. Both preserve sequence and step information and report dropped or saturated records.
Trigger and event publication is ordered after the simulation result. With rollback enabled, rejected steps do not publish their contact or trigger events. These APIs are bounded streams, not a replacement for simulation diagnostics or an unbounded event queue.
References: modules/…/rigid-body-events.ts• L5-22 modules/…/rigid-body-events.ts• L56-92 modules/…/rigid-body-triggers.ts• L15-39 modules/…/rigid-body-triggers.ts• L186-201
GPU geometry workflows
The GPU geometry entry point provides small graph operations for mesh attributes. These operations keep vertex and face data in graph views and write results into caller-provided output views, so they can feed later compute or render work without a CPU round trip.
Mesh attributes
GPUMeshNormals computes one normal per triangle from indexed positions. GPUMeshVertexNormals combines incident face normals through a compressed row layout and normalizes the result. The face stage can preserve cross-product magnitude for area-weighted vertex normals.
GPUMeshSmoothing performs one neighbor-mean interpolation step. Pinned vertices stay fixed, and repeated smoothing is expressed by chaining output buffers rather than by hiding multiple iterations in one operation.
References: modules/…/index.ts• L5-8 modules/…/gpu-mesh-normals.ts• L9-18 modules/…/gpu-mesh-normals.ts• L47-80 modules/…/gpu-mesh-smoothing.ts• L9-23
Point-cloud workflows
The point-cloud entry point provides bounded operations for reducing and indexing position data. Each operation preserves source row identity through representative IDs or packed node ranges, which lets downstream rendering and analysis relate spatial results back to the original cloud.
Voxel and radius processing
Voxel downsampling maps points to a fixed grid, keeps the lowest source row ID in each occupied voxel, counts its population, and gathers the representative position. The output has one row per voxel, so empty cells remain explicit through their count and representative state.
Radius filtering counts valid neighbors within an inclusive distance for each point and writes a mask for points that meet the minimum neighbor count. It is an exact all-pairs operation for bounded clouds. It does not silently truncate neighbor work, so its cost grows with the square of the point count.
References: modules/…/index.ts• L5-10 modules/…/gpu-pointcloud-voxel-downsample.ts• L10-25 modules/…/gpu-pointcloud-voxel-downsample.ts• L43-81 modules/…/gpu-pointcloud-radius-filter.ts• L9-22 modules/…/gpu-pointcloud-radius-filter.ts• L40-60
Octree indexing
GPUPointCloudOctree builds a sparse octree over points inside a native-coordinate cube. Morton keys group points by cell, and each node stores its level, parent or child links, point range, and subtree count. Nonterminal nodes can keep a bounded sample while leaves retain the remaining points. The status view reports required nodes, retained points, rejected points, and overflow.
The octree is useful when later work needs hierarchical spatial selection rather than a flat point list. Its results are valid only when the status output reports no overflow, and its point-index ranges retain the original source IDs.
References: modules/…/gpu-pointcloud-octree.ts• L14-40 modules/…/gpu-pointcloud-octree.ts• L88-136 modules/…/gpu-pointcloud-octree.ts• L198-353
Execution and ownership
Graph workflows separate resource declaration from repeated execution. A caller supplies or imports data views, adds the workflow nodes to a command graph, compiles the graph, and encodes it for each desired step or batch. The graph orders dependent passes and owns transient scratch resources.
Physics worlds keep evolving state across encodings. Sphere worlds borrow the state buffers supplied by the caller. Rigid worlds allocate and own their state buffers. Geometry and point-cloud operations write to caller-provided output views. A render binding can borrow a world or operation buffer, but it does not take ownership of that buffer.
The engine also has separate table-backed render adapters for prepared path and polygon data. They consume GPU table batches or storage views and bind them to render models, while the graph workflows remain responsible for spatial preparation and GPU data production. This keeps render batching and picking concerns separate from physics state and spatial analysis.
The normal data path is therefore:
flowchart LR
A[CPU setup or imported GPU data] --> B[Graph data views]
B --> C[Physics, geometry, or point-cloud nodes]
C --> D[Compile dependency plan]
D --> E[Encode and submit]
E --> F[GPU-resident outputs]
F --> G[Rendering or next GPU workflow]
F --> H[Optional asynchronous readback]
CPU work remains important for asset parsing, mesh cooking, capacity planning, graph setup, and control submission. Readback is an explicit boundary for inspection or gameplay; it is not required for each physics step or spatial transform.
References: modules/…/README.md• L26-35 modules/…/gpu-spatial-operation.ts• L20-36 modules/…/gpu-pointcloud-octree.ts• L37-41 modules/…/gpu-physics-batch.ts• L163-179 modules/…/gpu-physics-ensemble.ts• L165-198 modules/…/path-storage-model.ts• L324-380 modules/…/polygon-storage-model.ts• L40-55 modules/…/gpu-table-model.ts• L76-112
Change checklist
When these files or sections are changed, remember to consider these:
- Keep physics state layouts aligned with render bindings, readback decoders, event records, query outputs, and joint control state.
- When broad-phase, continuous-motion, or mesh traversal limits change, preserve explicit dropped-work and incomplete-result diagnostics.
- When a collider shape changes, update geometry cooking, mass properties, query behavior, and contact support together.
- When persistent contact or joint identity changes, verify warm starts, event phases, trigger state, and sleep or wake behavior.
- When vehicle layout or force controls change, keep chassis and terrain validation aligned with wheel poses, wheel telemetry, suspension state, and rebuild motion transfer.
- When scenegraph shape inference, transform rules, or session revisions change, keep body snapshots, render bindings, publication bounds, and borrowed query lifetimes aligned.
- When ANARI scene traversal or conversion changes, keep shared surface identity, transform publication, material mapping, and snapshot ownership aligned between the engine scene graph and ANARI world.
- When batch residency or ensemble layout changes, keep handle validity, state transfer, instance indexing, shared capacity, and reset behavior aligned.
- When a graph operation changes its view format or output size, keep all input, output, chunk, and alias checks aligned.
- When point-cloud capacity changes, preserve source-row identity and keep octree status or voxel validity visible to consumers.
- When ownership changes, update graph scratch cleanup, world destruction order, render buffer borrowing, and readback lifetime.
- When table-backed path or polygon inputs change, keep GPU input schemas, batch layouts, shader bindings, picking paths, and render adapter ownership aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Physics pair, contact, mesh, event, trigger, or joint capacity is exhausted | The step or event stream loses work and may look plausible | Check simulation diagnostics and stream counters before accepting results. |
| Continuous candidate or impact capacity is exhausted | The fast-motion step is incomplete or rejected | Check continuous status and provide a larger bound or a smaller fixed step. |
| A scene query has incomplete mesh traversal or sweep advancement | Returned hits are partial | Require complete before using query results. |
| A fast body crosses a surface between discrete steps | The collision is missed | Use smaller fixed steps or the supported continuous sphere or convex path. |
| A dynamic mesh is open or has no positive volume | Body construction or mass setup fails | Cook closed, valid geometry or provide suitable explicit mass properties. |
| A vehicle does not have one dynamic chassis, one static terrain collider, or four valid wheels | The rigid-body world rejects the vehicle configuration | Validate the vehicle layout and keep vehicle use outside rollback and ensemble modes. |
| A scenegraph geometry edit is not followed by a session rebuild | Physics uses stale shape or transform data | Rebuild the physics scenegraph after topology or geometry edits. |
| A joint uses an unsupported solver, invalid body pair, or exceeds the joint bound | Joint setup is rejected | Use the ordered solver for general or dynamic-dynamic joints and keep joint inputs within the validated contract. |
| A scene graph contains unsupported GPU transforms, connections, deformation, or geometry during ANARI conversion | The snapshot cannot be converted or loses the required scene state | Resolve those features to a supported CPU scene representation before conversion. |
| A batch handle is released or recycled before a later operation uses it | The operation addresses no world or a stale world identity | Treat handles as leases and finish graph work before release or residency changes. |
| An ensemble shared contact budget fails | The ensemble step is rejected and affected state needs reconstruction | Check ensemble status and reconstruct before resetting after a shared failure. |
| A point-cloud octree exceeds node capacity | Node and point-index output is not valid | Check the status overflow word and rebuild with a larger output view or simpler tree. |
| A radius filter is used for a large cloud | All-pairs neighbor work grows rapidly | Use it only for bounded clouds or choose a hierarchical spatial workflow. |
| A caller destroys a borrowed buffer before graph work or readback finishes | Later GPU work reads released data | Keep caller-owned inputs alive through graph destruction and pending reads. |
| A table-backed render batch has incompatible rows, layouts, or color mode | The adapter rejects the batch or binds the wrong data | Preserve batch row alignment, input schemas, and one color mode across appended batches. |
Key files
| File | Why to read it |
|---|---|
| modules/…/package.json | Shows the public gpu-physics, gpu-geometry, and gpu-pointcloud entry points. |
| modules/…/index.ts | Shows the public graph exports for worlds, queries, events, controls, recovery, and vehicle configuration. |
| modules/…/gpu-sphere-world.ts | Defines the sphere-world state, controls, diagnostics, and graph boundary. |
| modules/…/gpu-rigid-body-world.ts | Defines general rigid-body setup, vehicle integration, simulation stages, queries, controls, and ownership. |
| modules/…/rigid-body-vehicle.ts | Defines the four-wheel suspension and tire-force contract. |
| modules/…/rigid-body-shaders.ts | Shows the rigid-body collision, contact, ordered solve, and pose-advance flow. |
| modules/…/rigid-body-parallel-shaders.ts | Shows contact-island scheduling and the parallel solver path. |
| modules/…/gpu-physics-batch.ts | Shows bounded residency, world streaming, slot reuse, and grouped submissions. |
| modules/…/gpu-physics-ensemble.ts | Shows shared storage and graph execution for repeated fixed-topology worlds. |
| modules/…/physics-scenegraph.ts | Shows how the engine scenegraph adapter turns authored geometry into physics bodies and render bindings. |
| modules/…/scenegraph-session.ts | Shows session stepping, scene publication, capture, restore, and rebuild boundaries. |
| modules/…/scenegraph-conversion.ts | Shows explicit conversion between engine scene-graph snapshots and ANARI worlds. |
| modules/…/scenegraph-surfaces.ts | Shows how engine scene-graph leaves become retained render surface batches. |
| modules/…/scene-mesh-node.ts | Defines the declarative mesh leaves consumed by ANARI scene adapters and renderers. |
| modules/…/anari-scene-adapter.ts | Shows how committed ANARI objects become cached render surfaces and pick placements. |
| modules/…/scene-renderer.ts | Defines the shared scene surface contract used by forward and deferred rendering. |
| modules/…/rigid-body-joints.ts | Defines joint types, drives, limits, and solver constraints. |
| modules/…/rigid-body-broad-phase.ts | Defines bounded hierarchical candidate discovery and its failure counters. |
| modules/…/rigid-body-mesh.ts | Defines cooked convex and triangle-mesh geometry used by contacts and queries. |
| modules/…/rigid-body-continuous.ts | Defines bounded sphere and convex continuous-motion stages. |
| modules/…/rigid-body-query-geometry.ts | Defines shared surface and sphere-sweep geometry for queries and bounded sweeps. |
| modules/…/rigid-body-queries.ts | Defines ray, overlap, and sphere-cast query contracts. |
| modules/…/rigid-body-diagnostics.ts | Defines lifetime completeness and bounded-work reporting. |
| modules/…/gpu-mesh-normals.ts | Illustrates indexed mesh attribute generation on the GPU. |
| modules/…/gpu-mesh-smoothing.ts | Illustrates graph-based neighbor processing for mesh positions. |
| modules/…/gpu-pointcloud-voxel-downsample.ts | Defines deterministic voxel representatives and population counts. |
| modules/…/gpu-pointcloud-radius-filter.ts | Defines exact bounded-cloud neighbor counts and masks. |
| modules/…/gpu-pointcloud-octree.ts | Defines hierarchical point-cloud indexing and overflow status. |
| modules/…/path-storage-model.ts | Illustrates a separate engine adapter for storage-backed GPU path rendering. |
| modules/…/polygon-storage-model.ts | Illustrates a separate engine adapter for storage-backed polygon rendering and picking. |
| modules/…/gpu-table-model.ts | Shows how engine models consume and rebind GPU table batches. |
| modules/…/gpu-spatial-operation.ts | Defines shared packed spatial-operation graph plumbing. |