Cedric Gautier (gce++at++scl.syseca.fr)
Wed, 23 Mar 94 13:04:13 +0100
Finaly it seams I found a way to go from GL view to PF view as follow but may
be it is not really the good one ! ... anyway it seams to work currently ...
pfMatrix stvViewMatrix;
static pfMatrix stvConvertMatrix= { { 1.0f, 0.0f, 0.0f, 0.0f },
{ 0.0f, 0.0f, 1.0f, 0.0f },
{ 0.0f, -1.0f, 0.0f, 0.0f },
{ 0.0f, 0.0f, 0.0f, 1.0f } };
pfCoord stvCamera;
stvCamera.xyz[0]= glTransX;
stvCamera.xyz[1]= glTransY;
stvCamera.xyz[2]= glTransZ;
stvCamera.hpr[0]= glRotZ;
stvCamera.hpr[1]= glRotX;
stvCamera.hpr[2]= glRotY;
pfMakeCoordMat(stvViewMatrix, &stvCamera);
pfPreMultMat(stvViewMatrix, stvConvertMatrix);
pfChanViewMat(stvChannel, stvViewMatrix);
Thank's to Renee Strong for her help ! (I think its "her" as Renee in french !)
Merci et bienvenue ...
Cedric
Cedric from Dahouet harbor on Armor coast in France - email: gce++at++syseca.fr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:13 PDT