Nathaniel Bletter (nat++at++od.sri.com)
Wed, 13 Dec 1995 15:52:28 -0800
On Dec 12, 6:00pm, Torsten Moeller wrote:
> Subject: Viewing Frustrum in Stereo
> 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
>
>
>-- End of excerpt from Torsten Moeller
--Nat Bletter SRI International nat++at++od.sri.com http://os.sri.com/people/nat/ (415) 859-4358
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:08 PDT