Re: SegIsect

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Mon, 24 Jan 94 21:41:11 -0800


Subject: Beginner Performer Question

   Hi all,

     I'm trying to duplicate GL's window() call using Performer.
Normally, one would set up each channel with pfChanFOV, but I can not
use a vertically symmetric FOV for this application. For example,
the GL code would be

near = 20.0f; far = 2000.0f;
left = -tan(10.0*DEG2RAD)*near;
bottom = -tan(16.0*DEG2RAD)*near;
top = tan(25.0*DEG2RAD)*near;
window(left, -left, bottom, top, near, far);

   Can I use pfMakePerspFrustum and then send the matrix to pfChanViewMat ?
What is the easiest way to do this on a multichannel/pipe system where two
sets of views use a different viewing frustum ? How does pfChanViewMat
function ? Do I need to apply the necessary viewpoint rotations and
translations before passing the matrix to pfChanViewMat ? My _guess_
is for each channel, do a pfMakePerspFrustum, apply the rotations and
translations to the output matrix, and pass the result to pfChanViewMat.
I'd try this, but our system is in use and I'm developing offline.
   I could not find similar examples in the Performer Programming Guide
nor in the Performer FAQ.

Thank you for any assistance,
Mark Visconti


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:09 PDT

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