[info-performer] off-axis frustum for TAN Holobench

Date view Thread view Subject view Author view

From: Rory (jhs0rcjb++at++leeds.ac.uk)
Date: 03/08/2004 08:21:28


Hi there,
I am new to Performer, and am trying to implement an off-axis frustum. I am
initially doing this on the desktop, but it will later be used on the TAN
Holobench, and so will require head-tracking.

At the moment I have an on-axis frustum, which I have done using a pfChannel as
follows:

 chan = new pfChannel( pipe );
 chan->setViewport( 0.0, 1.0, 0.0, 1.0 );
  xyz.set( xx, yy, zz );
  hpr.set( heading, pitch, roll );
  chan->setFOV( 48.0, 0.0 );
  chan->setNearFar(1.0f,1000.0f);
  chan->setView( xyz, hpr );
  chan->setScene( scene );
  chan->setTravFunc( PFTRAV_DRAW, DrawChannel );

When moving left or right (on the desktop), setView is called again to update
the position.

So for an off-axis frustum should I use the chan and the makePersp function, or
should I use a pfFrustum and its makePersp(and if so, how do you put this into
the pipe?)?

Thanks for any help,
Rory


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Mar 08 2004 - 08:23:18 PST