AnitaKishore (kishore++at++electrogig.com)
Mon, 19 Jun 1995 16:16:37 -0700
Thanks Jim for responding.
As suggested by you, I am trying to set up a channel using
pfMakePerspFrust OR pfMakeOrthoFrust as follows:
Using the following, I am able to view my graphics:
pfChanNearFar(chan, 1.0f, 10000.0f)
pfChanFOV(chan, 140.0f, -1.0f)
pfSetVec3(view.hpr, 0, 0, 0)
pfSetVec3(view.xyz, 0.0f, -50.0f, 60.0f)
Next, I convert the above representation so as to use pfMakePerspFrust
as follows:
x = near * tan(140/2) where, near = 1.0
z = near * tan(131.0724/2) (this angle I got out of pfGetChanFOV for the
first type of setting)
Then,
pfMakeTransMat(m1, 0.0f, -50.0f, 60.0f)
pfMakePerspFrust(chan, -x, x, -z, z)
pfChanViewMat(chan, m1)
The second type of setting which uses pfMakePerspFrust doesn't work.
Can anyone tell what is wrong with the above?
thanks
-anita
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:36 PDT