Re: Interlaced stereo

New Message Reply Date view Thread view Subject view Author view

Dirk Reiners (reiners++at++mic.atr.co.jp)
Fri, 13 Sep 1996 07:32:57 +0900


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?

Hope it helps

        Dirk

--
Dirk Reiners                    reiners++at++mic.atr.co.jp,reiners++at++igd.fhg.de
Visiting Researcher at MIC-ATR            http://www.igd.fhg.de/~reiners
http://www.mic.atr.co.jp/index.e.html
"This patch contains bug fixes for all platforms.  The software cannot 
 be installed on other configurations." Patch 1270 README
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            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:31 PDT

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