webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Clipping distance changes with zoom in arbitrary mode

Open philippotto opened this issue 1 year ago • 4 comments

Context

Skeleton nodes are only rendered when they are within the configured clipping distance. Further context in this GH discussion.

Expected Behavior

Only nodes that are visible should be selectable by the user.

Current Behavior

The clipping distance is not perfectly respected which is why you can sometimes select nodes that are not rendered.

Steps to Reproduce the bug

  • [ ] Cannot reproduce the bug anymore / needs deeper investigation.
  1. create a node
  2. move in z by a few slices
  3. reduce the clipping distance so that it is not visible anymore
  4. click at the position where the node is in XY
  5. -> wk jumps to the clicked node even though it was invisible

Your Environment for bug

  • Browser name and version: e.g. Chrome 39
  • Operating System and version: e.g. Windows 10
  • Version of WEBKNOSSOS (Release or Commit):
  • [ ] Specific to long-running jobs (set jobsEnabled=true in application.conf)
  • [ ] Specific to webknossos.org (set isDemoInstance=true in application.conf)

philippotto avatar Mar 27 '24 08:03 philippotto

Not sure if this is related, but I noticed that the clipping in oblique and flight mode changes when zooming. If the clipping distance were in nm (which it is supposed to be) this shouldn't happen.

daniel-wer avatar Mar 27 '24 10:03 daniel-wer

@daniel-wer In #7732 you wrote that that PR contributes to this issue. What parts are still missing?

philippotto avatar Apr 08 '24 15:04 philippotto

I wrote this, because my fix didn't explain this observation

Not sure if this is related, but I noticed that the clipping in oblique and flight mode changes when zooming. If the clipping distance were in nm (which it is supposed to be) this shouldn't happen.

However, I did a quick test again and although the clipping changed during zooming I wasn't able to select invisible nodes, so I guess this particular issue (mismatch between what's displayed and the node picking) is resolved. What remains to be investigated is why the clipping distance in oblique/flight mode changes during zooming and doesn't seem to be in nm.

daniel-wer avatar Apr 08 '24 15:04 daniel-wer

Great, thanks for the clarification!

philippotto avatar Apr 08 '24 15:04 philippotto