Replies: 1 comment
-
I'm not really sure I get what you are trying to do, but sounds like a good idea to have two cameras. Use the first camera when rendering the main scene, and the second camera when rendering the axis at the upper right corner. Maybe the screen example can be of help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A tiny feature of my 3D viewer would be to have an axis displaying the current rotation of the world space at a fixed location on the window such as the upper right corner.
I have been experimenting with this a bit and it seems to me, that a way to achieve this would be to use the
position_at_pixel
function of theCamera
struct. When I place the axis geometry outside of the frustum however, the axis will not get displayed.I also tried to play around with a second camera, however I did not know if a second camera could be of any use, as the window render loop only can make use of one camera at a time.
Does someone have some tricks for that?
Beta Was this translation helpful? Give feedback.
All reactions