HOWTO: determine latitude/longtitude on a displayed sphere?...

Hi everyone!

I draw a sphere in a window, I have a mouse pointer and…

How to:

  1. determine, if my sphere lies under the mouse pointer?

  2. if so, how to determine a lat./long. coords on a sphere the mouse points to?

Thanks in advance,

Dmitry aka Freelancer.

You can use the picking by color or object to check the opengl coordinate and mouse pointer coordination and draw latitude line and longtitude line.

Can you post the name of functions etc. for me to look for?

Ok tomorrow but now I use net different computer.