[vtkusers] stereoskopic view with two projectors

Weiguang Guan guanw at rhpcs.mcmaster.ca
Fri Feb 25 14:32:21 EST 2005


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