Re: Interlaced stereo
Remi Arnaud (remi++at++remi.asd.sgi.com)
Thu, 12 Sep 1996 16:30:14 -0700
On Sep 13, 7:32am, Dirk Reiners wrote:
> Subject: Re: Interlaced stereo
> Hi Ralph,
>
> Ralph Seguin wrote:
> >
> > Hi. Anybody got sample code to do interlaced output for the purpose of
> > doing stereo? Ie, I have an LCD plate which has a micro polarizing filter
> > where the lines alternate between horizontal and vertical polarization.
> >
> > We have an Onyx RE2 with an MCO and 2RMs.
>
> Sorry, no Performer sample code, but the idea is pretty simple: use a 1
> bit stencil and set alternating lines to 0 and 1. Then draw your left
> eye with a glStencilFunc( GL_EQUAL,1,1 ) and a glStencilOp(
> GL_KEEP,GL_KEEP,GL_KEEP ) and the right eye with glStencilFunc(
> GL_EQUAL,0,1 ) (or vice versa). Works nicely for me and is a good way to
> test stereo without pushing the machine into stereo mode.
>
> I'm not sure how to integrate this into Performer though, as Performer
> uses some stencil planes itself, and how to catch resize and expose
> events to refresh the stencil grid. But I would like to know :). Anybody
> else?
Stencil is used only for a particular DECAL mode.
pfGLOverride(PFGL_DECAL, PFGL_DECAL_DISPLACE);
will enforce this mode not to be used.
Now, you have 2 channels (one for each eye)
Set a Draw callback (See PreDraw in sample/apps/C/common/generic.c),
in wich you do the Stencil trick
-- Remi
--
o o Remi ARNAUD - Silicon Graphics, Performer, Advanced Systems Dev o o
o o Mail Stop 590 - 2011 N. Shoreline Boulevard, Mountain View, CA94043 o o
o o Email: remi++at++asd.sgi.com - Tel: (415) 933 6208 - Fax: (415) 965 2658 o o
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
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:32 PDT