Re: How to obtain the scree

New Message Reply Date view Thread view Subject view Author view

Jerry Edsall (jedsall++at++fasainteractive.com)
20 Jul 1997 16:40:49 -0500


RE>>How to obtain the screen posi
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.

But woudn't that have to be done in the draw callback? Isn't there a way to do
it in the application?

Jerry

=======================================================================
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.