From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 12/14/2001 13:41:03
The perspective matrix should only contain a perspective transformation,
and should definitely _not_ encode the eye position, since that can lead
to all sorts of problems, so performer does not allow specifying a general
matrix for this transformation. What you should do to move the eye is call
pfChannel::setView and pass a pfFrustum to the channel that specifies only
your field of view (or call pfChannel::makePersp)
-- Marcin
On Fri, 14 Dec 2001, William Sherman -Visualization wrote:
> Performers,
>
> I'm wondering if there is a way to directly specify a perspective
> matrix. I have some code that creates a 4x4 perspective matrix
> based on eye position, etc., and would like to use this in
> Performer applications. The only thing I can really find is
> the ability to set the frustum using pfChannel::makePersp(),
> or pfMakePerspChan() in C.
>
> I know I'll have to adjust for Performer's Z-up-ness, but I'm
> hoping to otherwise use my existing code.
>
> Thanks,
> Bill
>
> /*************************************************************************/
> /* Bill Sherman (wsherman++at++ncsa.uiuc.edu) */
> /* National Center for Supercomputing Applications */
> /* University of Illinois at Urbana-Champaign */
> /* Og - "You want to do mankind a real service? Tell funnier jokes" */
> /* Spinner - "but facts don't always reveal the truth" */
> /* Robin - "Yeah, but I always figure that's the writers' fault" */
> /*************************************************************************/
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
This archive was generated by hypermail 2b29 : Fri Dec 14 2001 - 13:41:07 PST