Anita Kishore (kishore++at++triavest.com)
Wed, 2 Jul 1997 10:15:17 -0700
If you mean how to find the four sides of the frustum, here is how:
pfGetChanNearFar(chan, &near, &far);
pfChanAspect(chan, PFFRUST_CALC_VERT, aspectRatio);
x = near * pfTan(camera->horizFOV/2.0f);
z = x / pfGetChanAspect(chan);
pfMakePerspChan(chan, -x, x, -z, z);
The Performer book has explainations for the relationship between aspect
ratio and the sides of the frustum. The above code is based on that.
Hope this helps
-anita
kishore++at++triavest.com
--
Anita Kishore
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:34 PDT