Holger Krumm (hok++at++hni.uni-paderborn.de)
Mon, 07 Apr 1997 10:38:38 +0200
I have a problem with the determination of parameters for my viewing
frustum.
What I want to do is the following:
At position w is a rectangle-shaped polygon, at position p the
viewpoint.
--------------- t = polygon with height h
\ \ and width w
\ |
\ \
\ |
\ \
\ |
\ \
\ |
\ \
\|
(+) p = viewing position
I want to modify parameters of the viewing frustum (left, right, bottom,
top, fov) so that the polygon is entirely shown in my window. So I want
a function with which I can determine the frustum parameters with
knowledge
of 2D screen coordinates and 3D object coordinates.
If this is a simple question I am sorry to have bothered you but I
browsed
through the manuals and haven't found the right answer.
Thanks for any pointer,
Holger
PS: Attached is a small pdf-file showing the upper figure in a
better way ;-)
--------------------
* * * ** ** ** Holger Krumm *** *** **** Student of Computer Science ******* ***** EMail: hok++at++hni.uni-paderborn.de *** *** **** ** ** ** "Very funny, Scotty! And now my clothes..." * * *
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:01 PDT