I have two angles longitude which is the horizontal view angle (in the XZ plane) measured leftwards from the +Z direction & latitude which is the vertical view angle above or below the XZ plane and a coordinate XYZ which is the current eye point.
I need to calculate a look point from this information so I can use it with gluLookAt.
(then I can modify the angles, .. I'm making a 3d environment).
I've forgotton enough of A-Level maths that I'm finding this impossible.. I have a small piece of paper with sin, cos and many lines scribbled onto it.. gah. Apparantly from the two angles and the point it is possible to calculate a point on the surface of a unit sphere (which would be, my look point)..
Can anybody help?![]()


LinkBack URL
About LinkBacks
Reply With Quote