Skip to content

Feat/multi scenes - #214

Draft
MaxNumerique wants to merge 22 commits into
nextfrom
feat/multi_scenes
Draft

MaxNumerique wants to merge 22 commits into
nextfrom
feat/multi_scenes

Conversation

@MaxNumerique

Copy link
Copy Markdown
Contributor

No description provided.

MaxNumerique and others added 22 commits November 30, 2026 11:37
Split VtkPipeline into the shared data side and a per-scene SceneObject
render side; one render window per Scene, registered in the vtkWeb
ObjectIdMap. Replace the global renderer shared object with scenes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Field data scalar modes keep each scene's array on its own mapper and
leave the shared datasets' active scalars untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
create_scene, delete_scene, add_to_scene and remove_from_scene. register_* now only
create the shared db pipeline, deregister_* drop the data from every scene, import_project
disposes the scenes and render targets one scene.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Camera, picking, widgets, filters, ruler, preview and render RPCs require a scene_id and act on
that scene only. render is per scene, basemaps_dirty is a per-scene flag and the basemap update
reads the scene objects. remove_from_scene and deregistration relayout the scalar bars of the
scene. Removing a data absent from a scene is a structured 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mesh, model and image style RPCs take a scene_id and style the scene's
own render objects. Cell attributes now colour through field data, so the
requested component is honoured: cell_color_map_item and
polygon_attribute_item references previously showed component 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reset_scenes (no params) disposes every scene, as delete_scene does,
and keeps the data pipelines in the db. A front that connects again,
after a reload or to a viewer that outlived it, starts from no scene
and creates scene_1 without a conflict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The vtkWeb publisher keeps one stale timestamp and one re-push slot for all
views, so a second scene rendered right after the first never got its final
image. Track both per view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The filter chain, the explode factor and the filtered blocks move from the
shared VtkPipeline to a SceneFilters held by each SceneObject. A basemap
drapes over the clipping and the explosion of its own scene.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…viewer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ontext

Deleting a viewer dropped its mappers while another viewer's EGL context was
current, so their OpenGL names were freed in that other context: on a GPU,
the remaining viewer then rendered an empty image once resized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenGL keeps a texture in the context of one render window: a texture
shared by the viewers showed in the first one only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Registering a data no longer shows it: the base map is added to every
viewer, those created later included; a detail stays in its own viewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd again

On Windows without a GPU driver, vtkRenderWindow probes a Win32 window that
fails, then falls back on OSMesa. The failed probe resets the OpenGL functions
the windows already created use: the first viewer crashed on its next render
once a second viewer was created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first create_viewer detected it: on Windows the GPU probe, before the
OSMesa fallback, takes seconds, and three viewers starting at once went
past the request timeout. The server detected it as it started before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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