Raycast issue with nested scene #2786
-
Hi ! I have created a mainScene that contains a plane Mesh which has an FBO texture map of an offscreen scene (Scene2). This offscreen scene has 2 boxes with an onPointerOver event, and each scene has its own perspective camera. The issue is that when I move the offscreen scene with the Orbitcontrols, the raycaster seems to be tied to the main camera instead of the offscreen scene's camera, causing the ray to no longer sync with the cubes but still sync with their initial position. You can see the issue here: https://cp5dlm.csb.app. Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
could you make a minimal repro as a codesandbox? |
Beta Was this translation helpful? Give feedback.
-
Solved here |
Beta Was this translation helpful? Give feedback.
Solved here