Dirk Reiners (reiners++at++mic.atr.co.jp)
Fri, 13 Sep 1996 07:32:57 +0900
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:31 PDT