Re: Stereo in a X Window

New Message Reply Date view Thread view Subject view Author view

Tom McReynolds (tomcat++at++proxima.asd.sgi.com)
Thu, 27 Jun 1996 13:06:20 -0700


        I have written a demo program for top/bottom stereo (that actually
        works! :-) and I've put it up on the Performer website in the
        goodies page.

        You don't want to ask for a stereo visual when you're doing top/bottom
        stereo. That's probably why you're having trouble with the Express.

        The other trick is to make sure you're using the proper window handle;
        use pfGetPWinWSDrawable() to get it.

        The demos probably won't show on the web site until tonight.

        Please let me know if you have problems with the code...

                        -Tom

On Jun 26, 4:15pm, Daniela Rainer wrote:
> Subject: Re: Stereo in a X Window
> On Jun 25, 5:55pm, Tom McReynolds wrote:
>
> >
> > Good point. I may have been answering the wrong question.
>
> You did not answer the wrong question. Up to your mail I did not realize that
> my stereo program was already working because I tried it only on the Indigo
not
> on the Reality Engine. When I saw the leftbuffer/rightbuffer for the IRIS GL
> based program I noticed that it's for the Reality Engine.
>
> > 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...
> >
>
> I tried the same Framebuffer configuration
> static int FBAttrs[] = {
> PFFB_RGBA,
> PFFB_DOUBLEBUFFER,
> PFFB_STEREO,
> PFFB_DEPTH_SIZE, 23,
> PFFB_RED_SIZE, 1,
> PFFB_STENCIL_SIZE, 1,
> None,
> };
> on an Indigo but I got
>
> PF Notice: pfChooseFBConfig: failed to make configuration
> matching specified attributes
>
> On the Reality Engine I don't get this error but I don't get stereo with
>
> glXWaitGL()
> XSGISetStereoBuffer()
> glXWaitX()
>
> instead of glDrawBuffer().
>
> Do you have any ideas, what I could do wrong?
> Thanks for all your help,
> 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


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

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