how to draw specificaly in even or odd frame?

how to draw specificaly in even or odd frame?

Post by Dromigny Marti » Thu, 15 Oct 1998 04:00:00



I would like to simulate stereoscopic effect on my SGI screen,
so I'd like to use two double buffer, on for left eyes view point,
and one for right eyes view point.
 Is it possible to double the double buffer to attach each couple
of buffer to respectively the even and odd frame ?

Is there any tutorial on this?
Or any source code of the glXSwapBuffers function that I can use as starter
point ...

Martin Dromigny

 
 
 

how to draw specificaly in even or odd frame?

Post by Chris Walke » Thu, 15 Oct 1998 04:00:00



>I would like to simulate stereoscopic effect on my SGI screen,
>so I'd like to use two double buffer, on for left eyes view point,
>and one for right eyes view point.
> Is it possible to double the double buffer to attach each couple
>of buffer to respectively the even and odd frame ?

If you have a reasonably new or high-end system, then you can use
glDrawBuffer(GL_BACK_LEFT) and glDrawBuffer(GL_BACK_RIGHT)
to draw independent left and right views (if you are using a stereo
visual and your video format is also stereo).

 
 
 

how to draw specificaly in even or odd frame?

Post by Jonathan Li » Fri, 16 Oct 1998 04:00:00




> >I would like to simulate stereoscopic effect on my SGI screen,
> >so I'd like to use two double buffer, on for left eyes view point,
> >and one for right eyes view point.
> > Is it possible to double the double buffer to attach each couple
> >of buffer to respectively the even and odd frame ?

> If you have a reasonably new or high-end system, then you can use
> glDrawBuffer(GL_BACK_LEFT) and glDrawBuffer(GL_BACK_RIGHT)
> to draw independent left and right views (if you are using a stereo
> visual and your video format is also stereo).

To add to what Chris mentioned, there's example source code in

  /usr/share/src/OpenGL/teach/stereo/glwstereo.c

                Jonathan Lim    Silicon Graphics, Inc.
                GPS Graphics      Mountain View,  CA