Re: How to obtain the screen position of a point in the environment ??

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.asd.sgi.com)
Sun, 20 Jul 1997 05:20:41 -0700


On Jul 19, 6:07pm, Ren-Jye Yu wrote:
> Subject: How to obtain the screen position of a point in the environment ?
> Hello,
>
> Is there a command that allows me to obtain the x,y screen pixel
> position of a point in the viewing scene? In other words, how can I obtain
the
> projection matrix in Performer?

There's always the pfVec3::xformVec

If you use the modelviewing matrix it should give you coordinates -1 to +1
which you can then scale to match your viewport.

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:38 PDT

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