Re: OGL View Matrix --> pfChan view matrix

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Thu, 11 Jun 1998 13:57:09 -0700


Allen wrote:
>
> I have an OpenGL view matrix (no projection information, just positions
> the camera), and I would like to convert it directly into the equivalent
> Performer matrix so that I can use it in a pfChannel::setViewMat call.
>
> I thought this would be rather straight forward, but I have not been
> able to find a solution yet. Has anyone every done this?

Yes,

you need to invert the matrix, premultiply by a 90 degree rotation
around x and post multiply by the opposite rotation.

Voilla.

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

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