[vtkusers] Stereo rendering problem
Andrew J. Dolgert
ajd27 at tc.cornell.edu
Mon Nov 6 12:49:34 EST 2006
You are thinking of showing stereo images by putting a separate image on
each screen yourself, but there is a more automatic way to do it. The
Wildcat II 5110 drivers have a setting to enable stereo, at least on
Windows and maybe on Linux. You need to go into the driver control and
look deep in the Advanced section. When you enable stereo in the driver,
you also have to tell VTK to ask OpenGL to display in stereo, and I
think you have done the right settings in VTK for that to work. Both
video outputs from the display adapter will show the same image most of
the time, so you can no longer extend your desktop to on the second
display this way.
You have included a call to StereoUpdate, and I'm not sure what
"StereoUpdate" does. It may not be necessary. I haven't done this in a
year or two, and you used to be able to use the regular Render() command
once you enabled stereo in the render window.
- Drew
________________________________
From: vtkusers-bounces+ajd27=tc.cornell.edu at vtk.org
[mailto:vtkusers-bounces+ajd27=tc.cornell.edu at vtk.org] On Behalf Of
Valeria Gallo
Sent: Monday, November 06, 2006 11:24 AM
To: vtkusers at vtk.org
Subject: [vtkusers] Stereo rendering problem
Hi, I'm a vtk newbe...
I have two Benq projectors and a Wildcat II 5110 graphics card and I
would like to view my 3D model using the stereo mode in VTK.
This is a part of code I've written:
vtkRenderer *renderer = vtkRenderer::New();
vtkRenderWindow *renWin = vtkRenderWindow::New();
renWin->AddRenderer(renderer);
renWin->SetStereoCapableWindow(1);
renWin->StereoRenderOn();
renWin->SetFullScreen(1);
renWin->SetStereoTypeToCrystalEyes();
renWin->StereoUpdate();
There are no errors but I can view the window only in one of the two
windows of the screen (one projector works as extended window).
Probably a solution it will be to use two different render windows, one
for the left eye and one for the right, but I don't know how to put one
window in the first projector and the other window in the second
projector.
There is a easy solution for my problem
Thanks in advance
Valeria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061106/3c1742c0/attachment.htm>
More information about the vtkusers
mailing list