| |
 |
|
| Computers Forum Index » Computer - Graphics - API (Opengl) » Projection plane |
|
Page 1 of 1 |
|
| Author |
Message |
| Guest |
Posted: Tue Jun 20, 2006 1:35 am |
|
|
|
|
I have two math-related questions...
I'm trying to customize the fovy of my camera with respect to the
average distance of an (average) computer user to the screen... Long
story short, how can I squeeze out the distance of the projection plane
to the current position of camera (all expressed in the viewing
coordinates) from the current state of OpenGL state machine?
A related question is, suppose that my camera is directed (is viewing)
a ship. The ship itself has its local coordinate system. How can I
express camera's global position in the ship's (that is, local)
coordinate system?
Thanks for any replies, it will help a bunch. |
|
|
| Back to top |
|
|
|
| Phil Frisbie, Jr. |
Posted: Tue Jun 20, 2006 2:10 am |
|
|
|
Guest
|
ahuznot@yahoo.com wrote:
Quote: I have two math-related questions...
I'm trying to customize the fovy of my camera with respect to the
average distance of an (average) computer user to the screen... Long
story short, how can I squeeze out the distance of the projection plane
to the current position of camera (all expressed in the viewing
coordinates) from the current state of OpenGL state machine?
I have read this first question several times and I am still not sure what you
are asking.
Quote: A related question is, suppose that my camera is directed (is viewing)
a ship. The ship itself has its local coordinate system. How can I
express camera's global position in the ship's (that is, local)
coordinate system?
You do the math. Or are you really asking about the math? Anyone that is doing
anything other than trivial OpenGL apps needs to have AT LEAST a basic
understanding of geometry, trigonometry, and matrix math.
--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Sun Nov 08, 2009 8:16 am
|
|