Repository navigation
arigl: --set's camera keys hold over the scene's first framing - #1307
Merged
Merged
Conversation
--set writes its keys before the document loads, so its nodes can seed from them. Realizing the scene then frames the main camera (AriRuntime::realize -> CameraController::frameBounds), which wrote the framed pose over viewers.main.camera.orbit.* and fly.*, so a camera set from the command line never took. Track mode survived only because frameBounds leaves it alone. - host_cli: view_state_sets(sets), the --set entries under viewers. (relative or absolute), in order. - arigl, in a window and with --terminal: once the document has loaded, it writes those again. The camera re-reads its state on the write (handleStateChanged), so the orbit and fly poses hold. Other keys are not written again, so nothing the document changed while loading is undone. - The usage text and ARIADNE.md list the camera's keys, with examples. - ariadne_host_test: ViewSetsAreTheOnesUnderViewers.
transfix
enabled auto-merge (squash)
November 16, 2026 07:39
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
…#1307) One conflict, in ariadne_runtime_test.cpp's ActionCapsAreTreeSettingsAndChargeAsyncCalls: this branch cut its loop to 20 rounds so it fit the 0.1 s time cap on Linux debug CI, and master (#1282) rewrote the test, raising the time cap to 30 s wherever the loop must finish. Master's fix covers the same flake, so the test is master's as it stands, 200 rounds again. tools/singleton_scan is master's (#1276); the auto-merged net, CI, test and doc files keep both sides.
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.
Setting the camera from the command line didn't work for orbit or fly poses.
--setwrites its keys before the document loads, and realizing the scene then frames the main camera (AriRuntime::realize→CameraController::frameBounds, AriRuntime.cpp:157), which overwroteviewers.main.camera.orbit.*andfly.*. Track mode survived only becauseframeBoundsleaves it alone.Change
host_cli:view_state_sets(sets)returns the--setentries underviewers.(relative or absolute), in order.arigl, in a window and with--terminal: once the document has loaded, it writes those again. The camera re-reads its state on the write (handleStateChanged→readAllFromState→applyToCamera), so the pose holds. Keys outsideviewers.are not written again, so nothing the document changed while loading is undone.Checked (MSVC Release, Windows)
ariadne_host_test: 12/12AriadneHostClitests, including the newViewSetsAreTheOnesUnderViewers.arigl snapshotof terrain_lab withorbit.center=(22,180,0),distance 45,elevation 18,azimuth -120now frames the crates' lake. Before, it showed the default whole-world framing. The track-mode snapshot still works.Not checked: Linux, macOS, and arigl-web (the same code path; the browser passes its boot args the same way).