reiners++at++igd.fhg.de
Wed, 8 Oct 1997 19:53:40 +0200
The best way I could think of (and the one that I implemented) is to
use 1 stencil bit and set it to a vertically alternating 01 pattern,
then render the left/right eye using the correct stencil comparison
functions/value. Works nicely. I don't really know how to do it in
Performer though, because you have to redraw the pattern after an
expose or resize event, and you have to set stencil functions at the
beginning of a viewport. Should be possible.
The only problem is that you will interfere with other Performer
features that use stencil planes (layers come to mind). I don't know if
there is a way to ask Performer which stencil planes it uses or tell it
to use other planes.
Better ideas welcome.
Hope it helps
Dirk
---- -- Dirk Reiners reiners++at++ecrc.de, reiners++at++igd.fhg.de -- ZGDV - AR Group http://www.igd.fhg.de/~reiners -- Arabellastr. 17 (ECRC) -- D-81925 Muenchen All standard disclaimers apply. -- Truth is stranger than fiction because fiction has to make sense. ======================================================================= 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:56:04 PDT