I’m trying to use 2 cameras in a scene, one to render the 3D world (perspective view), and one to render a 3D UI (orthographic view).
The seconds overlays the first (scene.activeCameras = [persp_camera, ortho_camera]).
I can interact with my meshes viewed by the ortho_camera as expected, but objects on my second camera never receive the mouse.
From what I saw here and here, this is an expected behaviour.
I can choose to pick on one camera or the other, but not both.
How could I achieve picking on both ? Is there a limitation that wouldn’t allow it (focus issue…) ?
Here is a snapshot of my scene if that help to understand my goal :
- The blue lines on the piece of paper are InputText.
- The 4 objects (cube to sphere) on the bottom are 3D objects to control the scene “mode”.
Currently, I can either choose between :
- Having the 4 buttons at the bottom working, but the InputText never receive any pointer event
- Having the InputText working, but the buttons stop receiving pointer events (if I set scene.cameraToUseForPointers = persp_camera).