[vtkusers] stereoskopic view with two projectors
Nicholas Schwarz
schwarz at evl.uic.edu
Mon Feb 28 18:06:42 EST 2005
I've successfully gotten stereo to work with a passive projection system by
using a nVidia quadro card and its clone mode and stereo features without a
signal splitter. The quadro cards are supposed to have that feature
built-in. I've never tested this with a quadro fx500 so I can't say anything
about that specific card.
Check out this from the archive. It may help...
http://www.vtk.org/pipermail/vtkusers/2004-July/075262.html
Make sure that your code looks something like this:
vtkRenderWindow* renWin = vtkRenderWindow::New();
renWin -> StereoCapableWindowOn();
renWin -> StereoRenderOn();
renWin -> SetStereoTypeToCrystalEyes();
renWin -> SetSize(600, 600);
renWin -> AddRenderer(ren);
If everything is working correctly you won't need to press '3' to activate
stereo. It should be in stereo when the window is realized.
My linux XF86Config file has this in it:
Option "TwinView"
Option "TwinViewOrientation" "Clone"
Option "Connectedmonitor" "CRT, CRT"
Option "MetaModes" "1024x768,1024x768"
Option "Stereo" "4"
Hope this helps,
Nicholas
-----------------------------------------------------------------------
Nicholas Schwarz - Research Assistant
Electronic Visualization Laboratory E-Mail: schwarz at evl.uic.edu
Department of Computer Science Telephone: 312-996-3002
University of Illinois at Chicago Facsimile: 312-413-7585
-----------------------------------------------------------------------
Message: 2
Date: Mon, 28 Feb 2005 11:25:49 +1100
From: "Lachlan Hurst" <lachlan at vpac.org>
Subject: Re: [vtkusers] stereoskopic view with two projectors
To: <vtkusers at vtk.org>
Message-ID: <001b01c51d2c$0de42830$8eb8aa83 at is03>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
Hi,
Must say, i'm not 100% on the details of your system, but to run vtk with
SetStereoTypeToCrystalEyes you must have a display system capable of
refreshing at close to 120Hz (not sure on exact frequency). The simple
example is to have a single monitor and suitable graphics card that supports
stereo and a fast refresh rate (you will also need active stereo glasses).
The method used for polarized projectors involves an external "frame
splitter" - whereby the graphics card outputs at 120Hz and the frame
splitter redirects every second frame to the other projector (splitter has
one video in two video out).
An alternative method of stereo for polarized projectors only is as follows.
Do not clone the displays, create a vtk render window on each display and
simply set one renderer to left eye, and the other to right eye.
Good luck,
Lachlan
----- Original Message -----
From: "Weiguang Guan" <guanw at rhpcs.mcmaster.ca>
To: "trull78yaoo" <trull78yaoo at yahoo.de>
Cc: <vtkusers at vtk.org>
Sent: Saturday, February 26, 2005 6:32 AM
Subject: Re: [vtkusers] stereoskopic view with two projectors
Hi Jorg,
Have you made stereo work? If yes please let me know how. I have similar
problem to what you had last Oct. I would very much appreciate it if someone
could give me a hint. Below is a brief description of my system setting and
what I did in attempt to achieve stereo effect.
=======
Setting
=======
Linux with nVidia Quadro graphics card (in Clone mode, stereo 4). The two
outputs of the graphics card are connected to two monitors (later will be
two polarized projectors)
==========
What I did
==========
Add
renWin StereoCapableWindowOn
renWin SetStereoTypeToCrystalEyes
right after
vtkRenderWindow renWin
in Examples/Tutorial/Step5/Tcl/Cone5.tcl.
Run it, hit key "3", then I got error message, saying "Adjusting stereo mode
on a window that does not support stereo type CrystalEyes is not possible".
As a result, I did't see any disparity between the left and right renderings
(they are identical). I suspect that the window failed to configured itself
to be stereo capable as I request.
Many thanks in advance.
Weiguang
--
========================================================
Weiguang Guan, Research Engineer
RHPCS, McMaster University
========================================================
On Fri, 22 Oct 2004, trull78yaoo wrote:
> Hi all,
>
> now somebody how can i test the stereoscopic view without vtk. Because
> i have no stereoscopic effect with my nvidia quadro fx500 in vtk. Can
> somebody help me? Which settinge need Windows, graphic card or vtk?
> My settings for graphic card: display mode is Clone,
> enable stereo in OpenGL and the stereo display mode
> is set to nView Clone.
> Here my code:
>
> #include "vtkConeSource.h"
> #include "vtkPolyDataMapper.h"
> #include "vtkRenderWindow.h"
> #include "vtkRenderWindowInteractor.h"
> #include "vtkCamera.h"
> #include "vtkActor.h"
> #include "vtkRenderer.h"
> #include "vtkInteractorStyleTrackballCamera.h"
>
>
> int main( int argc, char *argv[] )
> {
> vtkConeSource *cone = vtkConeSource::New();
> cone->SetHeight( 3.0 );
> cone->SetRadius( 1.0 );
> cone->SetResolution( 1000 );
>
> vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
> coneMapper->SetInput( cone->GetOutput() );
>
> vtkActor *coneActor = vtkActor::New();
> coneActor->SetMapper( coneMapper );
>
> vtkRenderer *ren1= vtkRenderer::New();
> ren1->AddActor( coneActor );
> ren1->SetBackground( 0.1, 0.2, 0.4 );
>
> vtkRenderWindow *renWin = vtkRenderWindow::New();
> renWin->StereoCapableWindowOn();
> renWin->SetStereoTypeToCrystalEyes();
> // renWin->SetStereoTypeToDresden();
> renWin->StereoRenderOn();
> renWin->SetFullScreen(1);
> renWin->AddRenderer( ren1 );
>
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> iren->SetRenderWindow(renWin);
>
> vtkInteractorStyleTrackballCamera *style =
> vtkInteractorStyleTrackballCamera::New();
> iren->SetInteractorStyle(style);
>
> iren->Initialize();
> iren->Start();
>
> cone->Delete();
> coneMapper->Delete();
> coneActor->Delete();
> ren1->Delete();
> renWin->Delete();
> iren->Delete();
> style->Delete();
>
> return 0;
> }
>
> Thank Jörg
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list