[vtkusers] Controlling left and right eye buffers

Andrew J. Dolgert ajd27 at cornell.edu
Wed Jul 21 10:12:32 EDT 2004


You can render left and right eyes explicitly.  This call to CAVELib
just alternates between the left and right eyes.

  if ( CAVELibWrap::CAVEInStereo() ) {
    if ( CAVELibWrap::CAVE_LEFT_EYE == CAVELibWrap::GetCAVEEye() )
      renWin->SetStereoTypeToLeft();
    else
      renWin->SetStereoTypeToRight();
  }
 
renWin->Render()

If you want to use VTK with CAVELib, there are some more steps, but you
could probably make your own display loop where you switch the eye to
render and switch the actor to render with each eye.

- Drew Dolgert, Cornell Theory Center



More information about the vtkusers mailing list