Currently, I am utilizing Three.js to implement a video display where users can navigate through the video using their mouse. You can see an example of this functionality here:
You can find the code for this project here: https://github.com/mrdoob/three.js/blob/master/examples/webgl_video_panorama_equirectangular.html
I am interested in displaying the user's current position and direction within the container, much like the example shown here:
In the top left corner of the layout, there is a small square that indicates the current viewing angle. I am trying to determine how to capture both the position and direction of the view in a 2D format.
Is there a way to achieve this?
edit:
The orientation aspect has been resolved.
Now, my focus is on determining the position of the viewer within the video layout. Is there a way to achieve this? For reference, here is an image depicting what I am aiming for: https://i.sstatic.net/AEmPp.jpg