From: faculaganymede (faculaganymede++at++yahoo.com)
Date: 01/13/2005 09:56:55
Dick,
Thank you for your reply.
> Matrices in Performer are represented in row-major
> form, while OpenGL uses a column-major ordering.
>
I thought this may have been the only difference too,
until I noted that the values of the elements in the
matrices are different as well.
I just modified the DrawChannel function (as shown
below) in Performer sample program earthsky.cxx to
compare the returned matrices. If you run this in
your computer you will see what I mean.
// Draw process callback
static void DrawChannel (pfChannel *chan, void *)
{
chan->clear();
pfDraw ();
GLfloat projMatD[16];
GLfloat modelViewMatD[16];
glGetFloatv(GL_PROJECTION_MATRIX, projMatD);
glGetFloatv(GL_MODELVIEW_MATRIX, modelViewMatD);
pfMatrix lightProjectionMatrix, lightViewMatrix;
pfGetProjMat(lightProjectionMatrix);
pfGetViewMat(lightViewMatrix);
lightProjectionMatrix.transpose(lightProjectionMatrix);
lightViewMatrix.transpose(lightViewMatrix);
}
=====
Thanks,
faculaganymede
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
This archive was generated by hypermail 2b29 : Thu Jan 13 2005 - 09:56:53 PST