converting to screen coords

New Message Reply Date view Thread view Subject view Author view

leif.stubbfalt++at++enator.se
Tue, 9 Jun 1998 12:49:54 +0100


Hello!

I want to transform a point from world coordinates to screen
coordinates. I know that the first step is to convert the point to
viewing coordinates. I did this by multiply the point by the inverse of
the viewing matrix (I was told that it had to be the inverse). I got the
viewing matrix by pfGetChanViewMat. Is this OK?

After this I multiplied the converted point by the projection matrix. I
got the matrix by pfGetFrustGLProjMat. Is this OK? I guess not, because
the resulting coordinates where not normalized. When transforming I used
pfFullXformPt3. The last step, converting from normalized to screen
coordinates, won't be a problem.

Best regards!
=======================================================================
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:31 PDT

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