Re: OGL View Matrix --> pfChan view matrix

New Message Reply Date view Thread view Subject view Author view

Allen (allenb++at++icemt.iastate.edu)
Thu, 11 Jun 1998 16:00:03 -0500


I think I found the solution now. (Thanks to a message Angus replied to
about a year ago)

...
pfViewMat.set(ogl_matrix);
pfViewMat.transpose(pfViewMat);
pfViewMat.preRot(-90, 1, 0, 0, pfViewMat);
pfViewMat.postRot(pfViewMat, 90, 1, 0, 0);

chan->setViewMat(pfViewMat);
...

That "seems" to work. Can anyone confirm if this is the correct
solution?

-Allen

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?
>
> -Allen
> --
>
> Allen Bierbaum
> ISU SE Lab
> Research Assistant
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 

Allen Bierbaum ISU SE Lab Research Assistant ======================================================================= 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.