Re: FOV Acquisition

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Sat, 13 Nov 93 01:36:02 -0800


   
> While running Performer (or anything on top of GL) I need to
> acquire the FOV in both x and y. GL does not provide a FOV query,
> however, by directly reading the projection matrix (perspective) I
> can get the FOV's. Is there any problem to getting this info while
> running Performer?

In the *draw* process callback, you can use something like:

        prev=getmmode();
        mmode(MPROJECTION);
        getmatrix(mine);
        mmode(prev);

to get the projection matrix. You can then use the matrix
definitions in the GL Programming guide to back out the FOV, but the
form of "mine" that Performer uses is not documented, it could have
other transformations built in, and it could vary between releases.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


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:50:05 PDT

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