|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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 :-)_______________________________________________
|>Re: Confused about the near plane of the perspective projection (From: Robert Grant <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.