Tom McReynolds (tomcat++at++proxima.asd.sgi.com)
Tue, 25 Jun 1996 17:55:27 -0700
Good point. I may have been answering the wrong question. If you are doing
quadbufferred stereo, all you have to do is call glDrawBuffer() with the
back left buffer, draw the left eye view, call glDrawBuffer() again with the
back right buffer, draw the right eye view, then swap the buffers to get
the back buffers to the front.
If you are doing top/bottom stereo (aka full screen stereo), you have to
use the XSGI calls, and you'll have to synchronize the GL and X streams,
as other posters have pointed out.
The basic sequence for top/bottom stereo is:
glXWaitGL()
XSGISetStereoBuffer() /* left buffer */
glXWaitX()
draw left eye view
glXWaitGL()
XSGISetStereoBuffer() /* right buffer */
draw right eye view
swap buffers
Yes, it's slow, but it's unavoidable for top/bottom stereo; that's why
we don't encourage people to use this type of stereo. Quadbuffer stereo
is a much faster path, although it doesn't work with the older/lower-end
systems.
I don't have a top/bottom demo program at the moment, but I can point you
to an OpenGL program that does both quad buffer and top/bottom stereo.
The demo program is in the gl_dev.sw.samples ism in the IRIX 6.2 release,
and the program gets installed in
/usr/share/src/OpenGL/teach/stereo
I hope this helps...
-Tom
>
> Best regards
> Daniela
>
> --
> ----------------------------------------------------------------------------
> Daniela Rainer
>
> rainer++at++rus.uni-stuttgart.de
> Tel.: ++49-(0)711-685-5970
>-- End of excerpt from Daniela Rainer
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:04 PDT