Re: HPR addition?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Tue, 07 Jul 1998 11:03:36 -0700


Eric Heft wrote:
>
> Hi,
>
> Simply stated I have two hpr's and need to add them together.
> I know its not as simple as pfAddVec3(hpr1,hpr2).
>
> Background:
> In a flight simulator I have the aircraft's xyz,hpr. The pilot is in
> a head tracked HMD so to get the camera in the correct place I need to
> add the trackers hpr to the aircrafts hpr.
>
> Thank you for your help.
> Eric
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

You should build two matrices one with the hpr and translation of the
vehicle the other with the hpr and translation of the pilot multiply
them together and use that to specify the channel matrix.

The multiplication order is critical.

Cheers,Angus.

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/ ======================================================================= 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:57:41 PDT

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