caliper.scene¶
caliper.scene builds 3-D and 2-D scenes of points, lines, meshes, arrows, boxes, images and cameras, with entity transforms, a class table, clears and a starting camera, checked on the device and sent by both senders with the state a late viewer needs.
| Field | Value |
|---|---|
| ID | STR-10 |
| Status | Shipped |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | None |
| Depends On | Network Streaming (STR-05)Wire Protocol 3.2 ( STR-09) |
| Unblocks | 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)Starting Camera of a Scene ( REN-45)Loss Landscape Demo ( STR-11)Scenes Through Shared Memory ( STR-24)Scene Piece Form ( STR-57) |
| Docs | Scene Calls, Primitives |
| 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-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-proto3, 175 commits, none outside sprint4-integ3. All of protocol 3.2 in the three codecs, every caliper.scene call, both senders and the hub. - Branch
sprint4-proto32, 23 commits, none outside sprint4-integ3. Scenes subset of protocol 3.2 and the first caliper.scene calls. - Branch
sprint4-integ3, 5a69b9f4, 3a22baac, 4ad8fdc1, efc1aeed, 078cedde. Caliper LIB caliper.scene, the first calls (scene.points, scene.lines, scene.mesh) on both senders, with a default budget gathered on the device, retained static items and rate limits, and a nothing-attached cost of about 2.5 to 3 microseconds. - Branch
sprint4-integ3, 9b8405c4. The rest of the caliper.scene calls (arrows, boxes, images, depth and segmentation images, cameras, entity transforms, class table, clears, index-pair edges, class ids, labels, normals, textures and view_camera). - Branch
sprint4-integ3, e4bd1496. Costs of the scene calls and the benchmark rows for demo 0. - Branch
sprint4-integ3, 092ff248. Clearing named parts of an entity or a subtree in the scene core, the first commit of the draws series. design/roadmap.mdon the branchsprint4, under Scenes and recordings. The scenes part: entities with transforms, points, lines, arrows, boxes, meshes, images and pinhole cameras, with a text log and a bar chart whose drawing moved to sprint 5.design/scenes.mdon the branchsprint4, under Primitives. Points primitive with colours, values through a colormap, class ids, radii, labels and additive blend.design/scenes.mdon the branchsprint4, under Primitives. Lines primitive as segments, strips or index-pair edges, with width, colours and values.design/scenes.mdon the branchsprint4, under Primitives. Mesh primitive with indices, normals, colours, values or a texture, and instance poses with instance colours or values.design/scenes.mdon the branchsprint4, under Clearing and static items. Clear (recursive or static) and static items that are present at every position and retained by the producer for late viewers.design/scenes.mdon the branchsprint4, under Caliper LIB. Section heading for the Caliper LIB calls of scenes, text and bars.design/scenes.mdon the branchsprint4, under scene. caliper.scene(name, space, up, units, rate, data_view, view_camera) creates a scene; caliper.remove and caliper.widget(kind="scene") work with it.design/scenes.mdon the branchsprint4, under The scene's calls. scene.points, lines, arrows, boxes and mesh calls with static and rate arguments, and checks run on every call.design/scenes.mdon the branchsprint4, under The scene's calls. scene.camera, transform, classes and clear calls.design/scenes.mdon the branchsprint4, under A worked example. A robot simulation example with a static cloud, a stereo rig and an arm of three links.design/scenes.mdon the branchsprint4, under Scene Data on the Device. Section heading on keeping scene data on the device.design/scenes.mdon the branchsprint4, under Copies per Route. A scene snapshot is one device-side copy per route (in-process window, shared-memory session, network) and drawn in place from the slot; applet routes are zero-copy.design/scenes.mdon the branchsprint4, under Decisions. Decisions on images under cameras, retained static items, per-call checks, one copy per snapshot and no borrowing.design/scenes.mdon the branchsprint4, under Open decisions. Open decision: borrowing static tensors without a copy, always copy or a copy=False flag.design/sprint-4.mdon the branchsprint4, under 1. A loss landscape in a notebook. The Caliper LIB subset: caliper.scene with space, up, units, rate; scene.mesh, scene.lines, scene.points, static= and rate=, caliper.widget(kind='scene') (3 of 6 days).design/sprint-4.mdon the branchsprint4, under 3. Every primitive natively, through shared memory. The rest of the Caliper LIB scene calls (3 of 6 days).design/windows-parity.mdon the branchsprint4-pr1-main2, under 5. The web viewer and notebooks. Scenes reach a browser on Windows before the native app: the loss-landscape demo in Chrome and Edge through caliper.serve().- 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 remaining parts of protocol 3.2 (transforms, class tables, stamps, recording messages, split updates), every caliper.scene call, both senders and the hub are finished on sprint4-proto3 and carried onto sprint4-integ3. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. Caliper LIB still refuses items= on points, so linked selection of scene points is covered by the native test only. - Orchestrators' notes,
s4-proto32/STATUS.md. caliper.scene with points, lines and mesh, on both senders, with cheaper scene calls and per-device budget sampling. - Orchestrators' notes,
s4-proto3/STATUS.md. Caliper LIB scene calls on both senders and the hub's class tables, transforms, cameras and split updates.