Repository navigation
Ariadne shell SH3: scenes of mounted documents, scene windows, a world clock per scene - #1597
Merged
Merged
Conversation
…d clock per scene
A mounted document keeps its scene, for load: and mounts: alike
(docs/roadmap/ARIADNE_SHELL.md 4.3, 4.4).
- Loader: parse_scene_blocks is shared by a document and its fragments;
expand_load keeps a fragment's scene:, scenes:, data:, assets: and keys: on
the mount (Widget::mount_scene, mount_scene.h) and adds its scene window.
load: takes view: window and in_background: run|hold; mounts: takes
in_background: (a value or { bind }).
- Runtime: a mount's datasets are bound at its sub-prefix before its init:;
Runtime::scene_mounts lists the mounts with a scene and whether each world
holds in the background.
- AppRuntime realizes and clears the mounts' scenes from that list
(SceneAdapter::realize_mount / clear_mount / hold_mount).
- cvcGL: each mount gets a SceneGraph at its sub-prefix on a viewport of its
own (camera at <sub>.viewers.main.camera); its scene window draws that
viewport into the window's texture; viewport scene: { mount: <as> } is a
further view; fill: fills a window.
- Clocks: cvc/core/scene_clocks.h keeps a clock per mounted scene on the app;
each world steps at its clock: hz or the shell's rate, and a held world
stops while its scene is drawn nowhere. cvcGL's water, weather, L-system,
world, swarm and vehicle nodes read their scene's clock.
- Tests: AriadneLoader.AFragmentsSceneIsParsed,
AriadneMounts.AMountsSceneIsRealizedAtItsSubPrefix,
cvcgl_ariadne_mount_scenes, golden scene_windows.
- Docs: ARIADNE.md 5.18, 6.3, 6.8, 11; "As built in SH3" in ARIADNE_SHELL.md.
… proxy shape The viewer argument SH3 added to ViewportManager::addSceneViewport made SWIG wrap it with *args, so the hook's bare 'scene' was undefined: pycvc_proxy_hooks failed and pycvc_gl_viewport / pycvc_gl_keepalive crashed adding a viewport. The hook now reads the scene from the proxy's locals, under 'scene' or args[1].
The image written here came from a VTK without cvc.7's lighting-uniform patch, so the back window's shapes were lit as the front window left them. CI's Windows and Linux jobs draw it the same (largest channel difference 2); this is the Windows job's image. The macOS image is from the ci/full run's package-macos / libcvc-release-grpc job: 759 px beyond 40 against llvmpipe, at the shapes' and the volren's edges.
docs/ARIADNE.md: the mounts entry keys keep both SH3's background and SH11's net_policy, credential_store and e2ee_store.
…s drawn On a host that draws no mounted scene (ari on FTXUI or tvision, with no scene adapter; arigl's terminal scene, whose realize_mount says no) a load:'s scene is ignored with a warning and its scene window stays hidden, but the Windows menu still offered it, an item that opened nothing. The menu item of the loader's scene window now carries its <sub>.ariadne.scene key and is listed only while that is 1. AriadneMounts.AHostThatDrawsNoSceneListsNoSceneWindow covers no adapter, an adapter that draws no mounted scene, and one that draws it. ARIADNE.md 5.18 says what each host does with a mounted scene.
…shell-sh3-scenes # Conflicts: # src/cvc/tests/ariadne_runtime_test.cpp
transfix
added a commit
that referenced
this pull request
Nov 28, 2026
Conflicts kept both sides: the mounts: slot's grants:/deny: next to its in_background: (widget.h, the schema), a load:'s command line and keys' defaults next to its datasets (emit_container, open_mount, hot reload), a load:'s grants next to its scene plan (plan_windows_menu), grants.cpp next to table_emit.cpp, and the docs' shell.apps entry list. load_mount_checked keeps SH7's prefix-aware message for gl.scene and drops the "not drawn in a mount yet" warning, as SH3 did. As agreed for whichever of #1597/#1598 merged second, a fragment's keys: are SH7's alone (MountGrants::keys, held with delegate.keys): MountScene::keys, its parse in parse_mount_scene, its term in the null check and its two asserts in AriadneLoader.AFragmentsSceneIsParsed are gone, and the docs and comments that listed keys with a mount's scene and datasets say so.
This was referenced Nov 28, 2026
transfix
added a commit
that referenced
this pull request
Dec 1, 2026
…1628) #1597's recipe / ubuntu-22.04 / Release job (run 46117980396) failed in "Install cvcpkg" when cvcpkg.org answered one 503 to `curl -fsSL https://cvcpkg.org/install.sh | sh`; the site was back minutes later. .github/actions/cvcpkg-cli already re-runs the installer up to five times (20/40/60/90 s apart), but 18 steps still piped install.sh (or install.ps1) straight to a shell. - ci-recipe.yml: its POSIX and Windows install steps become one `uses: ./.github/actions/cvcpkg-cli` with the same 2.5.14 pin. The action installs to the same $RUNNER_TEMP/cvcpkg-bin and adds it to GITHUB_PATH, as those steps did. - ci.yml (12 jobs), publish-cvcgl-wasm.yml (3) and publish-pycvc-gl-wasm.yml (1): each gets an "Install the cvcpkg CLI" step with the old step's `if:`, and the old step loses its curl line and its ~/.local/bin PATH lines. These jobs never pinned a version, so they pass `version: latest` and keep taking the registry's newest (2.5.15+cvc.1 today), not the action's 2.5.14. - cvcpkg-cli/action.yml: `version: latest` leaves CVCPKG_VERSION empty, which both installers read as "newest". The description cites the 503. ci.yml stays CRLF.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase SH3 of the Ariadne shell (
docs/roadmap/ARIADNE_SHELL.md4.3, 4.4): a mounted document keeps its scene, forload:andmounts:alike, and shows it in a scene window of its own. Each world steps on a clock of its own.What it does
Loader (
loader.cpp)parse_scene_blocks, shared by the document and its fragments.expand_loadkeeps a fragment'sscene:,scenes:,data:,assets:andkeys:on the mount, asWidget::mount_scene(MountScene, newinc/cvc/ariadne/mount_scene.h).scene:gets its scene window: a windowariadne_scenein its own tree, titled by its name, holding oneviewport(scene_window,fill). It shows once<sub>.ariadne.sceneis1.load:takesview: windowandin_background: run|hold.mounts:takesin_background:(a value or{ bind }).background:already names every widget's backdrop, hencein_background.Runtime (
ariadne.cpp)state:/init:: aload:as it is first drawn, amounts:entry as it opens (and again when parsed again).Runtime::scene_mounts()lists the mounts with a scene, datasets or keys: everyload:not underrepeat:and every open entry, less quit applications. Each comes withhold: the load'sin_background, else the entry'sbackground, else the slot'sin_background. The list is false while a new tree is pending.AppRuntime
SceneAdapter::realize_mount(id, scene, scenes, sub_prefix)).clear_mount), and passeshold_mount.<sub>.ariadne.scene.mounts:entry with a scene is still refused, naminggl.scene, on a host without one.cvcGL adapter (
AriRuntime.cpp)mount:<sub>. Its camera is<sub>.viewers.main.camera(newviewerargument onaddSceneViewport/addMirrorViewport), framed on its scene as the main view is.scenes:getmount:<sub>|scene.<id>, with state at<sub>.scenes.<id>.AriRuntime::mounted_scenes()lists them; the golden harness waits on their volren raycasts and pending work as on the document's.Views (
scene_views.cpp)scenes:.scene: { mount: <as> }is a further view (a mirror) of the scene atincludes.<as>.<sub>.viewers.<view>.camera).fill: truemakes a viewport fill the rest of its window.SceneViews::scene_drawnsays which scenes a view drew last frame.Clocks
cvc/core/scene_clocks.h: the app's per-scene clocks by state prefix (add_scene_clock,remove_scene_clock, andscene_clock(app, prefix): the nearest clock at or above the prefix, elseapp.world_clock()). They are kept in anapp.slot, not a static.clock: hz, else at the quantum of the clock above it (the shell's).RealizedScene::scene_world_clock,SceneClockDriverandSceneWorld::buildgiven a clock,use_vehicle_clock(clock, ...)). Its physics, animations and<sub>.sim.*are therefore its own.holdand no view drew it last frame) runs no time; itson_tick:and actions still run.cvc::scene_clock(app, their prefix). For a document's own scene that is stillapp.world_clock().Hosts that draw no mounted scene (2e7df5f)
arion FTXUI or tvision has no scene adapter: amounts:slot refuses a document with a scene (it needsgl.scene, SH1's check), and aload:runs without its scene, with a warning.<sub>.ariadne.sceneis 1, so these hosts no longer offer an item that opens nothing.Shell and docs
components/shell.aribinds the slot'sin_backgroundtoshell.settings.hold_background. No settings page yet; that is SH14.Tests (the SH3 row of section 5)
AriadneLoader.AFragmentsSceneIsParsed: a fragment's scene, scenes, data (relative to its own directory), assets, keys,view/in_background, and its scene window, for aload:andload_mountalike. Also the slot'sin_background, and an argument dataset left out with a warning.AriadneMounts.AMountsSceneIsRealizedAtItsSubPrefix(stub adapter):load:are realized at their own sub-prefixes with their own scenes;init:reads it;load:, the slot's key and an entry's ownbackground;cvcgl_ariadne_mount_scenes: four applications in a slot, 63 checks.scene: { mount: a }viewport is a further view.visible: showfollows<sub>.show, not the shell'sshow.AriadneMounts.AHostThatDrawsNoSceneListsNoSceneWindow: with no adapter (ari), with an adapter that draws no mounted scene, and with one that does. The scene window is listed in the Windows menu only in the last case, and the first warns.scene_windows: two applications' scene windows overlapping, the front one with avolrennode, each with its own background and lights.Local results (Windows, MSVC Release, cvcGL + ImGui, RTX 4070)
AFragmentsSceneIsParsed,AMountsSceneIsRealizedAtItsSubPrefix,AHostThatDrawsNoSceneListsNoSceneWindowandcvcgl_ariadne_mount_scenes(63/63) all pass.ctest -R "^cvcgl_(ariadne|viewport|imgui|ari_switch|volren|lowmem)"passes 57 of 58. The one failure iscvcgl_imgui_context_menu, whose 16 clipboard checks fail on this box only: an agent session has no Windows clipboard, as noted for SH8. The cvcGL physics, entities, swarm, wheeled-look, world and tree tests all pass.cvc::planar/libigl here), and view_stacking and volren_views. This box's VTK lacks the lighting-uniforms and finish-every-render patches that CI's cvc.7 has (SH2's notes).Not verified / not built
scene_windows.pngis now the Windows job's image.scene_windows.macos.pngis from theci/full/shell-sh3-scenesrun (46079742689, at 8547151), job package-macos / libcvc-release-grpc. It has 759 px beyond 40 against llvmpipe, at the edges of the shapes and of the volren.scene_windows, except macOS libcvc-release-grpc. That job also failedPhysicsFieldWakeShore.CrossPlatformGoldenHashandPhTrain.TheTapesDerivativesMatchFiniteDifferences, master's macOS FMA failures that tests: the wake, boat-plant and tape tests without FMA contraction (master's macOS lanes) #1606 addresses.cvcgl_lowmem_fastdrawfailed once and passed on retry.world:block (vehicles);keys:(SH7);view: main(SH6);load:'s scene (warned);realize_mount, so the scene is ignored with a warning. TerminalScene providesgl.scene, so amounts:slot there opens such an application rather than refusing it.nav_swarmnode's navigator (scene_swarm.cpp) still steps on the app's clock, so in a mounted scene it follows the shell's.