Re: model view matrix and r

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.asd.sgi.com)
Tue, 15 Jul 1997 19:28:11 -0700


On Jul 15, 12:06pm, Jerry Edsall wrote:
> Subject: Re: model view matrix and r
> RE>>model view matrix and rotatio
> So how do you convert from a gl matrix to a performer matrix?
>
> Jerry

There's just a view orientation difference. So there's no conversion,
there will be a pre viewing 90 degree rotate around x on the mviewing stack
so conceptually y & z mean different things.
As I've said this is for the z up coordinate system imposed by performer.

So

pf_x == gl_x
pf_y == -gl_z
pf_z == gl_y

gl_x == pf_x
gl_y == pf_z
gl_z == -pf_y

If you really insist on using gl coordinates you can add a pfSCS above
the scene graph with a 90 degree x rotate and pre & post multiply the
viewing matrix by +ve & -ve 90 degree x rotations. If you do this
then conceptually you end up with OpenGL style coordinates in all
Channel, DCS & SCS matrices.

This is what I did with Divisions Performer implementation of dPL you
may be familiar with, and why the implementation is able to easily
handle the Y = up coordinates of dPL.

There are simpler ways but performer coordinate stuff like the
isector partitioning & earth sky would suffer as a result (if you
decided you needed them).

BTW I think there is also me a row vs column difference for OpenGL, I'm
not sure about this. But it's easy to figure this part.

Cheers,Angus.
=======================================================================
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:55:37 PDT

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