Viewing Frustrum in Stereo

New Message Reply Date view Thread view Subject view Author view

Torsten Moeller (tmoeller++at++cgrg.ohio-state.edu)
Tue, 12 Dec 1995 18:00:41 -0500


I do full screen stereo on a Crimson and have a problem to adjust the
aspect ratio properly. In mono, it is easy:

            pfMakeSimpleFrust(ViewState->masterChan, fov);
            pfChanAutoAspect(ViewState->masterChan, PFFRUST_CALC_VERT);

Whenever I change the display (including/excluding the gui) it adapts
the view in x and y direction.

In stereo however, I use:

pfChanViewport(StereoChan, 0.0f, 1.0f, 532.0f/YMAXSCREEN, 1.0f);
pfChanViewport(Chan, 0.0f, 1.0f, 0.0f, 491.0f/YMAXSCREEN);
        pfChanViewOffsets(..)
pfMakePerspFrust(StereoChan, -x +ioc, x +ioc, -x, x);
pfMakePerspFrust(Chan, -x -ioc, x -ioc, -x, x);

Here the view gets distorted in the y (vertical) direction, because the
aspect Ratio is roughly twice as big. If I try to take care of this
problem using:

        pfFrustAspect(StereoChan, PFFRUST_CALC_VERT, 0.975);

it is ignored.

Does anybody know what I am doing wrong here?

                                        Torsten.

--
Research Assistant   			ACCAD
tmoeller++at++cgrg.ohio-state.edu		Ohio State University

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:52:07 PDT

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