Re: Stereo View

New Message Reply Date view Thread view Subject view Author view

F. KUIJPER 446/3H06/2-5 (Kuijper++at++fel.tno.nl)
04 Jul 95 08:24:24 EDT


Jose Carlos Andre asks:

> I need to modify perfly source code to display in stero mode.
> Has anyone done this already ?

I did use stereo viewing, although not by modifying perfly. The basic
steps you have to follow are:

1. Setup two pfChannel's, with a shared viewpoint, but different
viewpoint offsets (account for the inter pupillary distance and the
convergence).

2. In the 'OpenPipe' callback, setup a stereo buffer for the
rendering pipe. This is done by:

    stereobuffer();
    gconfig();

3. In the channel pre-draw callback, select the correct buffer. If
drawing for the left channel:

    leftbuffer (TRUE); rightbuffer (FALSE);

If drawing for the right channel:

    leftbuffer (FALSE); rightbuffer (TRUE);

By the way, the stereo man-pages give extensive information on this
subject. I used them as a source to figure out how the stereo mode
works...

Good luck.

Frido Kuijper
TNO Physics and Electronics Laboratory
The Hague, The Netherlands
email: frig5++at++fel.tno.nl


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:51:39 PDT

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