[vtkusers] Stereo rendering on a GeForce 3 on Windows2000

Schaap, J.A. (LKEB) J.A.Schaap at lumc.nl
Wed Oct 16 05:38:59 EDT 2002


Hi,

I'm trying to use the stereo rendering capabilities of vtk on the following platform

Windows2000
GeForce 3 (driver 40.72 from NVidia + NVidia's Stereo3D driver 30.87)
the Asus 3D shutter glasses connected to the Asus GeForce 3 card
vtk nightly september 24

I'm constructing the vtkRenderWindow like this:

vtkRenderWindow *renWin = vtkRenderWindow::New();
renWin->SetStereoCapableWindow(1);
renWin->SetStereoTypeToCrystalEyes();
renWin->StereoRenderOn();
renWin->StereoUpdate();


However, I don't get any stereo picture. It just shows the left-eye (or right-eye, I'm not sure...) picture all the time instead of swapping between the two eyes at 100Hz (display freq)
RedBlue stereo is working properly by the way, but it doesn't look as nice :-(


Are there any other settings? in vtk? in the display settings? in the OpenGL settings?


Furthermore, I find the following piece of code quite peculiar (vtkOpenGLRenderWindow.cxx rev 1.63)

void vtkOpenGLRenderWindow::StereoUpdate(void)
{
  // if stereo is on and it wasn't before
  if (this->StereoRender && (!this->StereoStatus))
    {
    switch (this->StereoType) 
      {
      case VTK_STEREO_CRYSTAL_EYES:
        {
        }
        break;
      case VTK_STEREO_RED_BLUE:
        {
        this->StereoStatus = 1;
        }
      }
    }
.....

Why is there an empty case for VTK_STEREO_CRYSTAL_EYES? Could this be why the stereorendering is not working?

Thanks for any answers.
Best regards, Jorrit Schaap





More information about the vtkusers mailing list