|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Dan,
On Tuesday, September 23, 2003, at 03:07 PM, Dan Herman wrote:
So the distance to the near plane from the observer is: (h/2)/ tan(fovy/2) ?
I might be misunderstanding you, but the distance to the near plane is just zNear.
Well looking back at the SuperBible it does say (as you say) that zNear is the distance to the front clipping plane. *But* if I use my formula to calculate the viewing transform (i.e. the zOffset) then my rect is drawn perfectly in the 320x240 viewport. If I just offset by 1 then I get massive magnification. So something's not quite clear yet....
However I'm now happy that I can get the correct presentation of my rect in a predictable manner, even if I still don't understand the gluPerspective function :-)_______________________________________________
Robert.
| References: | |
| >Re: Confused about the near plane of the perspective projection (From: Robert Grant <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.