webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Allow to rotate viewports individually

Open philippotto opened this issue 1 year ago • 2 comments

Detailed Description

The orthogonal mode always renders the planes axis-oriented at the moment. In the arbitrary mode, the user can rotate the viewport, but there is only one. The user should be able to rotate the viewports in the default "ortho" view (~could need some renaming then~ name would be alright as long as the viewports are orthogonal to each other).

Todo

  • [ ] adapt bucket picking (reuse picker for arbitrary mode)
  • [ ] adapt shader
  • [ ] adapt mouse interactions
    • [ ] mapping of mouse position to voxel position
    • [ ] ...
  • [ ] disable or support rendering of segmentation data in rotated viewport (how to interpolate?)
  • [ ] disable or support volume tools
  • [ ] UI
    • [ ] expose rotation value
    • [ ] ~allow "synced" mode where the rotation of one viewport, rotates the other viewports, too, so that the angles between them stay constant~ always keep viewports orthogonal to each other
    • [ ] "warn" user when angles are not axis aligned

Context

  • [ ] Specific to long-running jobs (set jobsEnabled=true in application.conf)
  • [ ] Specific to webknossos.org (set isDemoInstance=true in application.conf)

philippotto avatar Jan 18 '24 15:01 philippotto

I don't think the viewports should be rotateable individually but rather always stay orthogonal to each other.

normanrz avatar Jan 18 '24 19:01 normanrz

Great, then we can keep the name "orthogonal" mode for now.

philippotto avatar Jan 19 '24 08:01 philippotto