[vtkusers] VTK and stereo
Alin M Elena
alinm.elena at googlemail.com
Mon Sep 7 06:22:58 EDT 2009
Hi
I try to hack molekel (http://molekel.cscs.ch) to render stereo .
Found the place where the window is created and added the stereo activation
options for window.
/// QVTKWidget
// widget
vtkWidget_ = new QVTKWidget( this );
vtkWidget_->setObjectName( "QVTKWidget" );
vtkWidget_->setAccessibleName( vtkWidget_->objectName() );
setCentralWidget( vtkWidget_ );
// render window
vtkRenderWindow_ = vtkRenderWindow::New();
#if VTK_MAJOR_VERSION > 5 || ( VTK_MAJOR_VERSION == 5 &&
VTK_MINOR_VERSION > 0 )
vtkRenderWindow_->SetMultiSamples( 1 );
#endif
vtkRenderWindow_->SetAlphaBitPlanes( 1 );
vtkRenderWindow_->StereoCapableWindowOn();
vtkRenderWindow_->SetStereoTypeToCrystalEyes();
vtkRenderWindow_->StereoRenderOn();
// renderer
vtkRenderer_ = vtkRenderer::New();
vtkRenderWindow_->AddRenderer( vtkRenderer_ );
// DO NOT DO THIS: vtkRenderWindow_ = vtkWidget_->GetRenderWindow();
// a new vtkRenderWindow is created each time
QVTKWidget::GetRenderWindow() is
// invoked!
vtkWidget_->SetRenderWindow( vtkRenderWindow_ );
However I get the bounding box which is stereo rendered but not the object in
it.
The VTK is built with stereo support and tested it with visit and paraview and
it work fine.
Any hints?
regards,
Alin
--
______________________________________________________________________
Without Questions there are no Answers!
______________________________________________________________________
Mr Alin M ELENA
Irish Centre for High-End Computing -- www.ichec.ie
The Design Tower, Trinity Technology & Enterprise Campus
Grand Canal Quay, Dublin 2, Ireland
Tel: +353 (0) 1 5241608 ext 29
Fax: +353 (0) 1 7645845
http://alin.elenaworld.net
alin.elena at ichec.ie
alinm.elena at gmail.com
______________________________________________________________________
More information about the vtkusers
mailing list