Skip to content

BF: Stabilize 3D camera framing across loads and resizes. - #90

Open
marcotag93 wants to merge 1 commit into
FBK-NILab:ui-revampfrom
marcotag93:fix/3d-camera-stability
Open

BF: Stabilize 3D camera framing across loads and resizes.#90
marcotag93 wants to merge 1 commit into
FBK-NILab:ui-revampfrom
marcotag93:fix/3d-camera-stability

Conversation

@marcotag93

Copy link
Copy Markdown
  • Frame the 3D camera once on first content, guarded by _camera_framed, so the TrackballController pivot is set from the scene bounding sphere instead of the PerspectiveCamera defaults.
  • Reframe when a T1 is loaded so the rotation pivot is the anatomical volume centre regardless of tractogram/T1 load order.
  • Wrap ShowManager._resize to snapshot and restore the 3D camera around FURY's update_viewports reframe, so a window resize keeps the 3D view fixed in place.

- Frame the 3D camera once on first content, guarded by _camera_framed,
  so the TrackballController pivot is set from the scene bounding sphere
  instead of the PerspectiveCamera defaults.
- Reframe when a T1 is loaded so the rotation pivot is the anatomical
  volume centre regardless of tractogram/T1 load order.
- Wrap ShowManager._resize to snapshot and restore the 3D camera around
  FURY's update_viewports reframe, so a window resize keeps the 3D view
  fixed in place.
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