Scene Core¶
The scene core is the one camera and scene model of the views: an entity tree with cameras, bounds and fitting, which it compiles into a draw list of the graphics layer, with a pick pass.
| Field | Value |
|---|---|
| ID | REN-11 |
| Status | Shipped |
| Scope | Core |
| Pillar | Rendering and 3-D |
| Sprint | None |
| Depends On | WGSL Shaders Through Naga (REN-10) |
| Unblocks | Scene View (REN-12)Picking ( REN-15)Mesh Files ( REN-18)Trails ( REN-20)Slice Planes ( REN-26)Thick Lines and Ribbons ( REN-30)Points View on the Scene Core ( REN-32)Scene Model Additions ( REN-34)Arrows and Boxes in Scenes ( REN-37)Entity Transforms ( REN-40)Class Table and Labels ( REN-41)Index-Pair Edges ( REN-42)Culling Flag ( REN-58)Lights and Materials ( REN-63)ROS 2 Import ( STR-22) |
| Docs | Scene Rendering, Scene Core |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Branch
sprint4-build, 165 commits, none outside sprint4-integ3. Head of pull request 1 (546bacaa): sprint 4 through demo 0 with every review fix. - Branch
sprint4-build-pre-rebase, 134 commits, none outside sprint4-integ3. Build branch before the rebase on main. - Branch
sprint4-integ, 34 commits, none outside sprint4-integ3. First integration of the renderer core streams. - Branch
sprint4-integ3, 209 commits not on main, the superset of the finished build branches; the six branches draws, rec, tex, time, ts9, points hold 30 commits outside it. Third integration branch: every finished build branch (protocol 3.2 series, step 5, 7, 9, scale bar, up-axis, rest of scene calls, first draws commit). - Branch
sprint4-pr1-main2, 165 commits, none outside sprint4-integ3. Pull request 1 candidate, 546bacaa with main merged in. - Branch
sprint4-scene, 21 commits, none outside sprint4-integ3. The scene core. - Branch
sprint4-integ3, 1040e56d, fb4b247c, 55d34c5a, 89f855ae, a98ff142, 34b3205e, 9035f2e8, 82d95d25, 5dacca8b, ad12132b. The scene core, the one camera and scene model: store, world matrices in double, orbit cameras and fits, compiler to draw lists, BackendResources over the graphics layer, built without floating-point contraction. - Branch
sprint4-integ3, f82fc769, e2d54a0b, 470fcb4a, 8eb830cf, dbec1773, 8f1635d9, 2c4b8ea3, 138aa0c0, e4a3cf20, 0c936c7f, 4a15b7aa, 37f524eb. Scene core rows of the graphics suite on Metal: the one-entity fixture, the 41 by 41 surface row, an opt-in timing row, and the design pages and Rendering docs for the scene core. - Branch
sprint4-integ3, 5a46367b, c9246111, cc6361f3, c8625f37, e16160e9, ecbfd01b, 48455f31, 53ee2499. Step 7, the points view on the scene core: its payload becomes one points batch of a scene, with the depth cues and exact colours ported, the old Metal staging deleted, and rows against the old path's images. - Branch
sprint4-integ3, 092ff248. Clearing named parts of an entity or a subtree in the scene core, the first commit of the draws series. - Branch
sprint4-draws, 78dd925e, 8af6d51f, be193a50. Every remaining scene primitive drawn natively and in the browser: arrows, boxes with class ids, labels and fill, index-pair edges, meshes with normals or a texture, colour, grey, depth and segmentation images, cameras, entity transforms, class tables, with a CPU reference of every draw and browser scene rows. - Branch
sprint4-points, 6a40dab8, ce979e26. Points step 7 closing commits (deletion of the old path, pixel-difference row wording), reworded copies of e16160e9 and 48455f31 on integ3. design/renderer-core.mdon the branchsprint4, under Drawing worlds. Four drawing worlds share no camera or scene model: ImGui and ImPlot, the geometry service, texture views and the TypeScript views.design/renderer-core.mdon the branchsprint4, under The scene core. Section heading for the scene core.design/renderer-core.mdon the branchsprint4, under Conventions. One statement of conventions: right-handed, +y up, clip z in [0, 1], column-major, top-left origin.design/renderer-core.mdon the branchsprint4, under Entity tree, cameras and bounds. The entity tree with world matrices, the orbit, pan and zoom, and pinhole camera models, bounds and fitting.design/renderer-core.mdon the branchsprint4, under Compiling primitives into a draw list. The core walks the visible entities and compiles batches into draws with per-draw uniform blocks.design/renderer-core.mdon the branchsprint4, under Interface outline. The caliper_scene interface outline: SceneTree, Orbit, PanZoom, ThroughPinhole, fit, compile and Picker.design/renderer-core.mdon the branchsprint4, under The steps. Step 3, scene core: tree, matrices, cameras, bounds, fitting, compile, ID target and picks; 6 days.design/roadmap.mdon the branchsprint4, under Scenes and recordings. The new section: 3-D scenes and recordings are designed and not built, built by sprint 4 as increments, with five parts (renderer core, scenes, timelines and recordings, scenes in the browser, the two demos).design/roadmap.mdon the branchsprint4, under Scenes and recordings. The renderer core part: one graphics layer, one shader source, a shared scene core, zero-copy as an import capability, GLEW retired early, views moved onto the layer, TypeScript WebGPU views removed, a scene service replacing the geometry service, one version of each graphics service with one epoch bump.design/scenes.mdon the branchsprint4, under What is built and what is planned. The page states that nothing on it is built; it rests on built pieces and on the planned renderer core.design/scenes.mdon the branchsprint4, under What is built and what is planned. The renderer core, planned and built first in sprint 4: a graphics layer and a scene core.design/scenes.mdon the branchsprint4, under Scene Model. Section heading for the scene model: spaces, entities, transforms, cameras, the class table, primitives, clearing and limits.design/scenes.mdon the branchsprint4, under Scenes and spaces. A scene is one live view of the new kind scene (kind id 6 proposed), 2-D or 3-D, with up, units and a right-handed 3-D space; the native scene view draws it.design/scenes.mdon the branchsprint4, under Entities and entity paths. Entities named by entity paths of up to 16 segments, holding one transform, one camera and one batch per primitive type; logging again replaces; missing parents are created.design/scenes.mdon the branchsprint4, under Primitives. The index-clamp contract holds for scenes: an out-of-range index draws the last vertex, through a clamp compute pass.design/scenes.mdon the branchsprint4, under The scene core and the graphics layer. The native scene view is the scene core compiling entities into a draw list; the points live view becomes a scene of one entity.design/scenes.mdon the branchsprint4, under From primitives to draws. Points and lines as instanced quads, arrows, boxes, meshes, images, cameras, entity axes and labels drawn through the graphics layer; entity transforms as per-draw matrices.design/scenes.mdon the branchsprint4, under What the scene view needs from the renderer core. The seven things the view needs from the graphics layer and the scene core: import, instanced draws, indexed draws, texture fills, depth, per-draw uniforms and an ID target.design/scenes.mdon the branchsprint4, under Changes to the Shared Contracts. Contract changes: 2-D up axis, camera entities hold no primitive, 2-D transforms, depth scale, additive arrays, additive blending and instanced meshes.design/scenes.mdon the branchsprint4, under Decisions. Decisions on the 1,024 entity limit, device-given transforms read on the CPU, a pick pass for hover and click with CPU lasso, and a mesh over budget becoming its bounding box.design/scenes.mdon the branchsprint4, under Open decisions. Open decision: 1,024 or 4,096 entities per scene.design/sprint-4.mdon the branchsprint4, under 0. The renderer core's minimum cut. Increment 0 as a whole: a quad and a one-entity scene drawn through the graphics layer on Metal and read back byte for byte, scene programs compiled on Metal and in a browser, the sprint 2 heatmap and points drawn unchanged in a browser through the layer (22 days).design/sprint-4.mdon the branchsprint4, under 0. The renderer core's minimum cut. Step 3, the scene core (6 days).- Orchestrators' notes,
_notes/HANDOFF-sprint4.md. Pull request 1 content is finished and held on sprint4-pr1-main2 at 44840c5b: graphics layer, shader generation, scene core, scene view, WebGPU backend, colormap by keys, protocol 3.2 subset, caliper.scene and demo 0. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. The reviewer's major findings were fixed with tests: the hub's retained scene state bound, a queued Metal write ordering, index clamps of an unsubmitted frame, scene buffer release on reset, the viewer queue never dropping a reset, the browser recolour check, and the demo grid orientation. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. Decisions: the double-precision camera is the scene core's convention and the scene view's default camera is the points view's from camera_defaults.h. - Orchestrators' notes,
_notes/SPRINT4-BUILD.md. Rule that each migration step replaces the old code and deletes it in the same series, with no dual paths and no backwards compatibility in the graphics API. - Orchestrators' notes,
s4-scene/STATUS.md. The scene core: store, matrices, cameras and fits, a compiler to draw lists, picking, and BackendResources over a Backend; it never calls a Backend itself. - Orchestrators' notes,
s4-integ/STATUS.md. The first scene is drawn on Metal through the whole renderer core, checked against a CPU rasterisation with 0 failing pixels. - Orchestrators' notes,
s4-points/RESULT.md. A payload above 4,194,304 points a batch continues on child entities; labels go through the colormap keys with the palette at every level rather than the class table.