Performer and stereo on O2

New Message Reply Date view Thread view Subject view Author view

From: Surakle++at++gmx.de
Date: 07/24/2000 06:20:07


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

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jul 24 2000 - 06:20:13 PDT

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