I’m writing a class that uses
ofCamera to alternate between the standard top-down view and an isometric orthographic view.
However, I’ve noticed that when I’m using the isometric view, the
screenToWorld function in
ofCamera gives a result that’s slightly inaccurate on some parts of the screen.
I’ve recorded a short video to illustrate what I mean. In the standard top-down view,
screenToWorld works perfectly. In the isometric view, it’s only accurate in the centre of the screen. Incidentally, the purple plane in the video is the viewport.
Can anyone suggest a solution for this?