Gerald Hofer (hofer++at++icg.tu-graz.ac.at)
Wed, 12 Jun 1996 23:10:48 -0600
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:00 PDT