Ok so I am working on a project where I have a rendering of the earth. I have created some mouse movement and keypad controls to zoom to the earth, rotate it, pan the camera etc. The next part of the task I am taking on is to add a HUD that shows the latitude and longitude of the mousepoint when I am dragging it (unclicked) over the sphere. I was wondering if anyone has done something like this before and could point me in the right direction?
You could raycast from the mouse position until you hit your sphere - once you know the point on the sphere and the centre of the sphere you can work out the latitude and longitude. Here’s a similar question: