Repository navigation
cvcGL: a 3D scene in the terminal — TerminalScene over the terminal backends - #712
Merged
Merged
Conversation
transfix
force-pushed
the
feat/ariadne-tvision-backend
branch
from
October 19, 2026 05:09
d004cfd to
98e2372
Compare
transfix
force-pushed
the
feat/ariadne-terminal-gl
branch
from
October 19, 2026 05:09
f626d6c to
d15800e
Compare
transfix
force-pushed
the
feat/ariadne-tvision-backend
branch
from
October 19, 2026 06:15
98e2372 to
74b1bc9
Compare
transfix
force-pushed
the
feat/ariadne-terminal-gl
branch
from
October 19, 2026 06:15
d15800e to
141c887
Compare
transfix
force-pushed
the
feat/ariadne-tvision-backend
branch
from
October 19, 2026 06:29
74b1bc9 to
b553c5f
Compare
transfix
force-pushed
the
feat/ariadne-terminal-gl
branch
from
October 19, 2026 06:29
141c887 to
b2b6837
Compare
transfix
force-pushed
the
feat/ariadne-tvision-backend
branch
from
October 19, 2026 16:05
b553c5f to
fa2e152
Compare
transfix
force-pushed
the
feat/ariadne-terminal-gl
branch
from
October 19, 2026 16:05
b2b6837 to
c098f34
Compare
…ackends The terminal backends stay GL-free in libcvc; cvcGL extends them (roadmap §16.6). cvc::gl::ariadne::TerminalScene is a SceneAdapter: it realizes the document's scene: into its own SceneGraph, renders it with an OFFSCREEN SceneRenderer (X / EGL / OSMesa, no display) at the terminal's half-block grid (two pixels a cell, 2x supersampled) every tick, and hands the frame to the backend as its background, so widgets, menus and windows draw over the scene as ImGui draws over the GL canvas. handle_input (as RunOptions::background_input) turns background drags into orbit, middle-drags into pan and the wheel into zoom. Generic hooks in the base backend for it: FtxuiBackend::set_background (a published image behind everything; the desktop in hosted / tvision mode, and a new frame under the same name invalidates the resampled copy), screen_width / screen_height, and RunOptions::background_input (input no widget used, offered before the document; both the FTXUI and tvision loops call it). A click on empty background is no longer reported as consumed. Host: ariadne_terminal (the terminal sibling of ariadne_hello, with --backend tvision and --snapshot [--ansi] [--png]); example terminal_scene.ari. Test: cvcgl_terminal_scene.
transfix
force-pushed
the
feat/ariadne-terminal-gl
branch
from
October 19, 2026 17:32
c098f34 to
ee43e8b
Compare
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.
A 3D scene in the terminal (roadmap §16.6), built as a cvcGL extension of the terminal backends: the libcvc backends stay GL-free and cvcGL plugs a real renderer into them. It builds on the terminal backends merged in #708, #709 and #711.
What it does
cvc::gl::ariadne::TerminalSceneis acvc::ariadne::SceneAdapter. Hand it toAppRuntimeand the document'sscene:goes through four steps:SceneGraph.SceneRendererdraws it. There is no window and no display needed: VTK picks X, EGL or OSMesa at run time.Background drags orbit the camera, middle-drags pan, and the wheel zooms. Anything else still goes to the document's
on_key/on_pointer.The generic hooks it needs in the base backend (libcvc, GL-free)
FtxuiBackend::set_background(image)draws a published image behind everything, stretched over the screen. In hosted mode (tvision) it is the desktop background.screen_width()/screen_height().RunOptions::background_inputreceives input no widget used, before the document does, and returns true to take it. Both the FTXUI and the tvision loops call it.on_pointer).Host and example
ariadne_terminal(src/cvcGL/examples) is the terminal sibling ofariadne_hello:ariadne_terminal doc.ari [--backend tvision];--snapshot [--ansi] [--png]for headless capture.terminal_scene.ari: the embedded Stanford bunny with a Scene window whose checkbox drives the node'svisible:binding.Verification
cvcgl_terminal_scene(new cvcGL test), offscreen box scene:ariadne_ftxui_test42/42, including the backdrop, the background-click and the frame-invalidation cases.DISPLAYunset (EGL), in tmux:ariadne_terminal --pngmatchesariadne_hello --pngof the same document pixel for pixel, so the adapter realizes and frames exactly like the GL host.Not in this PR