Re: Stereo in a X Window

New Message Reply Date view Thread view Subject view Author view

Gerald Hofer (hofer++at++icg.tu-graz.ac.at)
Wed, 12 Jun 1996 23:10:48 -0600


On Jun 12, 2:09pm, Daniela Rainer wrote:
> Subject: Stereo in a X Window
> Hi,
>
> I asked this question several times but never got a answer. My problem is
> stereo in Performer in a X Window.

I have done that... with Performer 1.2

>
> - I use STR_BOT to switch to stereo mode
>
> - open a pfPipeWindow and set the type to
> pfPWinType(pw, PFPWIN_TYPE_X);
>
> - choose a framebuffer configuration
> pfChoosePWinFBConfig(pw, FBAttr) with
> FBAttr[] = {PFFB_RGBA, PFFB_DOUBLEBUFFER, PFFB_STEREO, NULL};
>
I use this:

pfInitPipe(NULL, OpenXPipeline);

void
OpenXPipeline(pfPipe * p)
{
    Display *XDpy;
    pfuGLXWindow *win;

    XDpy = (Display *)pfuOpenXDisplay(screen);

    pfuGLXWinopen((pfuXDisplay *)XDpy, p, WinName,xo, xmax, yo, ymax)))

    pfInitGLXGfx(p, (void*)XDpy, win->xWin, win->glWin, win->overWin,
                          PFGLX_AUTO_RESIZE);
}

I don't know if the API has changed, but I think so.

> - init the two channels
>
> - init the view with the view offsets
>
> - in the PreDraw-Callback I set alternating
> XSGISetStereoBuffer(xdisplay, glWindow, STEREO_BUFFER_LEFT);
> XSGISetStereoBuffer(xdisplay, glWindow, STEREO_BUFFER_RIGHT);
>
I think I'm doing the same thing.

> It seems that XSGISetStereoBuffer doesn't have any effect because I only see
> the leftbuffer.
>
> Is there anybody who has a working PERFORMER program with stereo in a X
window?
> (I only have examples in GL and OpenGL).

I converted a version of sfly (Performer 1.2) to GLX.

>
> Any idea what I'm doing wrong or if there is a bug in the framebuffer
> configuration for the pfPipeWindow of type X ?
>
> Thanks for any help
>
> Daniela
>
Rgds, Gerald

-- 
=====================================================================
=  Institute for Computer Graphics - Graz University of Technology  =
=-------------------------------------------------------------------=
=            Muenzgrabenstrasse 11, A-8010 Graz, Austria            =
=      Tel.: (43) (316) 873 5015       Fax: (43) (316) 873 5050     =
=-------------------------------------------------------------------=
=    Hofer Gerald - Systems Manager     hofer++at++icg.tu-graz.ac.at     =
=====================================================================
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer.html
            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:00 PDT

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