Re: pfMakePerspFrust

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Tue, 22 Mar 94 10:41:43 PST


> I'm running 1.2beta on an Onyx RE^2. I need off-axis perspective views
> so I am using pfMakePerspFrust(). I'm was not getting the desired results
> so I called pfGetFrustFOV and pfGetFrustNearFar to verify the values.
> While near and far matched, the horizontal and vertical field of view
> differed from the values I passed. I am not using pfFrustAutoAspect() and
> checked to make sure the default was PFFRUST_CALC_NONE.
> Am I going about this the wrong way ?

        No, I think I screwed up the API in this particular area. By
default, a pfChannel has PFFRUST_CALC_VERT auto aspect so
when you call pfMakePerspFrust the vertical FOV will be tweaked.
Contrary to what you might think, calling pfFrustAspect does not change
the auto aspect value of the pfChannel. Also, pfFrustAspect is
improperly implemented now since it implies that it is set and
forget but it has lasting effect, ie.- it really does to the work of
a "pfFrustAutoAspect".

        The following should work:

        pfChanAutoAspect(chan, PFFRUST_CALC_NONE);
        pfFrustNearFar(chan, n, f);
        pfMakePerspFrust(chan, l, r, b, t);

Sorry for any confusion.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.