Re: Performer and stereo on O2

New Message Reply Date view Thread view Subject view Author view

From: Tom Flynn (flynnt++at++cthulhu.engr.sgi.com)
Date: 08/01/2000 13:51:43


On Mon, 24 Jul 2000 Surakle++at++gmx.de wrote:

> Hi,
>
> I tried to write a stereo application with Performer. It works fine on an
> Octane, but does not set the stereo modus on the 02.
>
> I used the sample in /usr/share/Performer/src/pguide/libpf/C/stereo.c

Two things to try first:

1) since you're specifying a depth of 23, run xscreen on your O2 and make
   sure you have it set to 32x32 or specify a lower depth (say 16).

2) experiment first with stereotb.c. stereo.c was written to demo
quad-buffer stereo (stereo in a window) which I know you can do on IR, but
not so sure is available on O2. stereotb.c was written to demo fullscreen
(or top and bottom) stereo which most of our platforms support.

hope that helps,
tom

>
> My code looks like this:
>
>
> #define STEREO
> static int FBStereoAttrs[] = {
> PFFB_RGBA,
> PFFB_DOUBLEBUFFER,
> PFFB_STEREO,
> PFFB_DEPTH_SIZE, 23,
> PFFB_RED_SIZE, 1,
> PFFB_GREEN_SIZE, 1,
> PFFB_BLUE_SIZE, 1,
> PFFB_STENCIL_SIZE, 1,
> PFFB_ALPHA_SIZE, 1,
> None,};
>
> void OpenXWin(pfPipeWindow *pw)
> {
> pfPipe *p;
> pfFBConfig fbc;
> int stereo;
>
>
> pfNotify(PFNFY_DEBUG, PFNFY_RESOURCE, "---- OpenXWin() -----");
> /* use pfuChooseFBConfig to limit config to that of FBAttrs */
> #ifndef STEREO
> fbc = pfuChooseFBConfig(NULL, pfGetPWinScreen(pw), FBAttrs,
> pfGetSharedArena());
> #else
> fbc = pfuChooseFBConfig(NULL, pfGetPWinScreen(pw), FBStereoAttrs,
> pfGetSharedArena());
> #endif /* STEREOMODE */
> if (fbc) { pfPWinFBConfig(pw, fbc); }
> p = pfGetPWinPipe(pw);
> if (NULL == pfuGLXWinopen(p, pw, NULL)) {
> pfNotify(PFNFY_FATAL, PFNFY_RESOURCE, "OpenXPipeline: Could not create
> GLX Window."); }
> #ifdef STEREO
> pfQueryPWin(pw, PFQWIN_STEREO, &stereo);
> if(stereo == PFQFTR_FALSE)
> fprintf(stderr, "Couldn't get a stereo window (maybe hardware doesn't
> support stereo)\n!; Switching to mono mode");
> #endif /* STEREO */
> if(NULL != pw) { pfuPrintPWinFBConfig(pw, stderr); }
> pfNotify(PFNFY_DEBUG, PFNFY_INFO, "opened XWin");
> /* set initial modes */
> InitGfx(pw);
> }
>
>
> The pfuPrintPWinFBConfig(pw, stderr); call prints out that STEREO flag is
> still 0 for this PipeWindow.
>
> I tried xsetmon and /usr/gfx/setmon -n STR_TOP but neither one worked.
> On the other hand I was able to get a stereo view in ivview with
> /usr/gfx/setmon -n STR_TOP
>
> Anybody an idea what I did wrong ???
>
> On the octane I got STEREO 1 from the pfuPrintPWinFBConfig(pw, stderr);
> call
>
> Thank you for help,
>
> Sven
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>

--
"Mongooses are famous for their snake-fighting ability, and are
 almost always victorious because of their speed, agility, and timing
 and also because of their thick coat."


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 13:51:48 PDT

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