Re: Stereo

New Message Reply Date view Thread view Subject view Author view

reiners++at++igd.fhg.de
Wed, 8 Oct 1997 19:53:40 +0200


On Oct 8, 10:19am, A. Ballard Andrews wrote:
> Subject: Stereo
> Does anyone have any advice (or sample
> code) on the best method for generating
> INTERLEAVED stereoscopic images on RE2 graphics?
> I'll be sending the output to 1024x768 resolution
> projector at about 30-60Hz).
>
> I am familiar with generating stereo
> via other methods (i.e.1025x768_96s, or
> 2++at++1280x1024_60) as described on the
> stereo man page. Is it just a matter
> of placment and sizing of the windows
> as with the other techniques?
>
>-- End of excerpt from A. Ballard Andrews

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

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:56:04 PDT

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