I would like to create a “gizmo” which shows the rotation of the arcrotate camera (similarly as in blender or in other 3d modeling tools)
I struggle to set the rotation of this gizmo to reflect the camera rotation.
If I rotate on a single axis it works, but if I rotate on two axis the rotation is not correct anymore.
I’m struggling with it for a while to set the beta and alpha values of the camera to the gizmo mesh, but I’m lost a little bit.
Interesting problem. I would approach is a bit differently, trying to utilise secondary camera and perhaps rendering layers.
(…2 hours later after bunch of reading and research)
Came here to ask question but got dragged into yours.
I have approached it from the perspective of having a gizmo layer. I have worked through it with assumption it would be much easier to calculate actual rotation from given reference (main camera in this case) It took few minutes to get the basics going but with my rubbish math spend almost 2 hours trying figure out following two lines of code.
Thanks, I did not know about these!
These are very useful for the editing part of your project, I had a similar goal in mind with this gizmo.
(However it is not attached to a mesh, but to the camera)