Re: hpr calculations

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Thu, 6 Feb 1997 23:02:12 -0500


The pfChannel view offset is relative to the regular channel view. The
final view is the product of both.

You should set the channel view of both channels as the center direction
returned by the bird and then add a left and right offset to the
appropriate channels.

Something like:

  Poll_Bird(Look_at,Look_up);
  AtUp_to_HPR(Look_at,Look_up,Dir);
  pfChanView(LeftChan, CurPos,Dir);
  pfChanView(RightChan, CurPos,Dir);
  pfChanViewOffsets(LeftChan,<0,0,0>,<+20,0,0>);
  pfChanViewOffsets(RightChan,<0,0,0>,<-20,0,0>);

You could also use a channel group to avoid calling pfChanView twice for
both channels.

Nicolas Gauvin CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:54:36 PDT

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