Clipping distance changes with zoom in arbitrary mode
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.
- create a node
- move in z by a few slices
- reduce the clipping distance so that it is not visible anymore
- click at the position where the node is in XY
- -> 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=trueinapplication.conf) - [ ] Specific to webknossos.org (set
isDemoInstance=trueinapplication.conf)
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 In #7732 you wrote that that PR contributes to this issue. What parts are still missing?
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.
Great, thanks for the clarification!