Pointer events and section cuts #1436
Unanswered
hector-crean
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Screen.Recording.2021-06-16.at.14.03.24.mov
Section cuts (using clipping planes) are implemented by fragment shaders that discard the rendering of pixels of an object, if the pixel's position is beyond the 'section cut' plane. However, pointer events still fire on the section of the object beyond the clipping plane. [see the video, where cursor picks up on the invisible bit of the geometry).
Does anyone have a good solution for this ?
I assume we could just reconfigure the raycaster function to ignore objects within a particular domain? Or else assign objects beyond the clipping plane to particular rendering layers (although this probably wouldn't be a good solution...). It occurs to me that you could also rewrite the clipping plane vertex shader to 'squash' the part beyond the clipping plane into a very thin veneer. Will write some code this evening, and give my best stab at it, but would be useful if anyone had any insights on the path of least resistance
Beta Was this translation helpful? Give feedback.
All reactions