Skip to content

Ariadne views: transform: overrides, volumes in views, shared VTK arrays, shadows in the demos - #1039

Merged
transfix merged 1 commit into
masterfrom
feat/ariadne-views-leftovers
Nov 7, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/ariadne-views-leftovers

Conversation

@transfix

@transfix transfix commented Nov 7, 2026

Copy link
Copy Markdown
Owner

The leftovers of #1007, and the docs for its components and demos.

Overrides

  • transform: { position, rotation, scale } on an override: entry moves, turns and scales what it covers in that view, in the frame of the node it names: a group scales about its own origin, a tag entry applies in each tagged node's frame, and "*" in world space.
  • mode: replace starts over from the node's own look.
  • Entries now apply in order, "*" included. material: { color, opacity } spells the look fields too.

Volumes in views

  • volslice: a view from its own camera draws slices swept for that camera (VolSliceNode::viewProp). They are drawn over the node's shaders, textures and uniforms; a mapper can share those through GeometryNode::observeShaderInputs.
  • volren: raycast for the main view and composited into its pixels, so no view draws it. Before, it drew wrong from another camera and not at all on camera: main.
  • type: volume: takes opacity (a stand-in with its own property and mapper, every opacity point scaled) and transform.

Shared VTK arrays. An asset's nodes draw from the first node's points, cells, normals and texture coordinates (GeometryNode::shareArraysFrom), so VTK uploads them once. It is copy-on-write: updateVertices / updateNormals give the writer arrays of its own first, the donor included. Colours stay each node's own.

Scenes' shadows. A scenes: entry's viewport stops drawing while the UI is hidden too. On the first frame a view shows it again, its maps are baked for whatever moved meanwhile, whatever its update_interval.

Shadows in the demos

  • On in clip_planes, mesh_lab, fem_gallery and terminal_scene.
  • A volume casts nothing into the scene's maps, so the volume demos use volren's own volumetric shadows instead, through a new volren: { shadows: true | { enabled, strength } } key. It is on in volren_bunny and transfer_function. volslice_bunny has no shadows of either kind.

Docs

  • ARIADNE.md: §5.1, §5.4, §5.18 and §6.5.
  • The scene_view component takes scene, shadows and caption.
  • examples/README.md lists the five views demos.
  • The browser gallery gets cards and thumbnails for them.
  • Roadmap §9.5 status.

Tests: all on Windows Release:

  • cvcgl_ariadne_views 56, 13 of them new.
  • cvcgl_ariadne_scenes 29, 8 of them new.
  • AriadneScene.VolRenShadowsParse.
  • Unchanged and passing: loader 222, runtime 260, host 46, cvcgl_ari_golden 34, and the realize, switch, viewport, lod, update_normals, world_geometry, stream, volslice, shadow_casters and streaming_geometry suites.

Not checked

  • The views demos haven't been run in a browser.
  • mesh_lab / fem_gallery with shadows need a libigl build; this one wasn't.

… shared VTK arrays, shadows in the demos

The leftovers of #1007, and the docs for its components and demos.

Overrides. An override: entry may move, turn and scale what it covers
(`transform: { position, rotation, scale }`), in the frame of the node it
names (a group scales about its own origin; a tag entry in each tagged node's
frame; "*" in world space), and `mode: replace` starts over from the node's
own look. Entries now apply in order, "*" included. `material: { color,
opacity }` spells the look fields too.

Volumes in views. A volslice node's slices face the camera they were swept
for, so a view from its own camera draws slices of its own
(VolSliceNode::viewProp: its own polydata and mapper over the node's shader
property, property, textures and uniforms, GeometryNode::observeShaderInputs).
A volren node is raycast for the main view and composited into its pixels, so
no view draws it (it drew wrong from another camera, and not at all on
camera: main). A `type: volume` node takes opacity (a second vtkVolume, with
its own property and mapper, every opacity point scaled) and transform.

Shared VTK arrays. An asset's nodes draw from the first node's points, cells,
normals and texture coordinates (GeometryNode::shareArraysFrom, wired through
SceneAssetCache::donors), so VTK uploads them once. Copy-on-write:
updateVertices / updateNormals first give the writer arrays of its own, the
donor included. Colours stay each node's own.

Scenes' shadows. A scenes: entry's viewport stops drawing while the UI is
hidden too (no widget walk), and on the first frame a view shows it again its
maps are baked for whatever moved meanwhile, whatever its update_interval.

Shadows in the demos: on in clip_planes, mesh_lab, fem_gallery and
terminal_scene. A volume casts nothing into the scene's maps, so the volume
demos get volren's own volumetric shadows instead: a new `volren: { shadows:
true | { enabled, strength } }` key, on in volren_bunny and transfer_function.

Docs: ARIADNE.md §5.1 (assets, scenes), §5.4 (volumes and shadows), §5.18
(the demos, transform / replace, volumes in views, shared arrays, the scenes'
bake, limits), §6.5; the scene_view component takes scene, shadows and
caption; examples/README.md lists the views demos; the browser gallery gets
cards for the five (web/demos.json, thumbnails); roadmap §9.5 status.

Tests: cvcgl_ariadne_views 56 (13 new: transform in a group's frame, replace,
a volume's opacity stand-in, volslice and volren in own-camera and camera:
main views); cvcgl_ariadne_scenes 29 (8 new: shared arrays and their
copy-on-write, the bake on showing a scene again); AriadneScene.
VolRenShadowsParse.
@transfix
transfix merged commit 19423da into master Nov 7, 2026
27 checks passed
@transfix
transfix deleted the feat/ariadne-views-leftovers branch November 7, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant