When trying to implement a Raycaster for selection, I encountered an issue where it worked fine with a PerspectiveCamera but not with a CombinedCamera.
It appears that the Raycaster does not support CombinedCamera, so I made some modifications in the three.js file by adding the following code:
if ( camera instanceof THREE.CombinedCamera ) {
if( camera.inPerspectiveMode ) {
camera = camera.cameraP;
} else if ( camera.inOrthographicMode ) {
camera = camera.cameraO;
}
}
if ( camera instanceof THREE.PerspectiveCamera ) {
...
However, this approach did not solve the issue because it seems that the nested cameras' position, quaternion, and rotation are not updated. How can I modify this to make the Raycaster work seamlessly with both Ortho and Perspective modes of a CombinedCamera?