Seeking assistance with a three.js project. I have set up a camera inside a SphereGeometry at position (0,0,0) and am projecting an image on the sphere's wall.
My goal is to create interactive JS elements outside of the threejs framework that respond to the direction in which the camera is facing. Given theta & phi as parameters representing the rotation angles around x & z, and y & z, respectively, I aim to trigger JS events when those specific points are within the camera's view. These points are not physical objects but rather defined by rotation angles. The camera itself is controlled by mouse or device orientation, so I need the JS events to be triggered only when manually rotating the camera.
I initially tried using Frustums.containsPoint method but realized it may not fit my needs since I'm looking for camera angles, not physical points in space. I then attempted to use camera.getWorldDirection() or camera.rotation but haven't made much progress.
If anyone has insights or solutions, I would greatly appreciate your help.