carbonian.org / manual pages
CARBONIAN-VIEW3D(1) Carbonian Manual CARBONIAN-VIEW3D(1)

carbonian-view3d - show a 3D file (OBJ, STL, PLY) in a desktop window with the VR home's renderer

carbonian-view3d FILE
carbonian-vr-home --view FILE

carbonian-view3d opens a Wayland window (app id carbonian-view3d, titled with the file's name) and draws FILE in it with the VR home's own solids, shaders, lights and textures, on the palette's background, through a Vulkan swapchain of its own. No headset and no XR runtime are needed.

It is the same binary as carbonian-vr-home(1), another entry: called by the name carbonian-view3d (a link to carbonian-vr-home), or given --view, it shows the file instead of starting the home.

FILE is an OBJ (with its MTL's colours, and its textures: the vt coordinates and map_Kd images, PNG or JPEG), an STL or a PLY, told apart by the extension. A model of more than 4 million triangles is cut to the first 4 million. Python's carbonian_vrfig.view3d(fig) opens a matplotlib 3D figure this way (carbonian-notebook(1)).

Turns the model round.
Moves it.
Brings it nearer or farther.
Spins it, or stops it.
Puts the view back.
Writes a picture of the window to $XDG_RUNTIME_DIR/carbonian-view3d.png.
Closes the window.

The keys are read by their place on the keyboard (evdev codes, no keymap): a, r, p and q of a QWERTY layout.

0 when the window is closed; 1 when the file cannot be read or has no triangles, or there is no Wayland display, no xdg-shell, or Vulkan would not start; 2 without a FILE.

A file: the first frame is written there as PNG.
Where p writes its picture (else the temporary directory).

carbonian-vr-home(1), carbonian-vr(1), carbonian-ctl(1), vr-home.conf(5), carbonian-notebook(1)

2026-11-03 Carbonian