[vtkusers] 3D stereo with VTK (SetStereoTypeToCrystalEyes)
Santiago Rodríguez
santiagorodriguez at fibertel.com.ar
Tue Jul 4 07:49:39 EDT 2006
Hi, I need to develope a 3D application with stereo capabilities using
VTK.
Im using an nVidia GeForce 6200 with shutter glasses from eDimensional
and I have a standard CRT monitor.
This is my hardware:
-Pentium IV 1.7 GHz
-512 Mb RAM
-CRT monitor (resolution 1024x768 / 800x600)
-GeForce 6200 video card (Driver version: 7.8.0.1)
-eDimensional 3D glasses, video synchronization adapter and infrared
transmitter (these glasses are a nVidia 3D stereo certified product)
-eDimensional drivres: 71.89_3dstereo.exe, 71.89_win2kxp_english.exe
This is the sofware:
-OS: Windows XP SP2
-Application build in Borland C++ Builder 6.0 with VTK installed.
First I enable the stereo property of the video card and I put on the
shutter glasses.
Then I run the medical test image for stereo (a demo image from nVidia)
an it works very well.
The problem is when I set VTK for stereo capabilities, the image looks
like a shifted copy of the right eye (or left eye).
I see a parallel copy of the right image (or left image) shifted, but
not with the correct perspective or eye angle.
Im usig the following code in C++ Builder 6.0:
vtkWindow1->GetRenderWindow()->SetStereoCapableWindow(1);
vtkWindow1->GetRenderWindow()->StereoRenderOn();
vtkWindow1->GetRenderWindow()->SetStereoTypeToCrystalEyes();
vtkWindow1->GetRenderWindow()->StereoUpdate();
When I write:
vtkWindow1->GetRenderWindow()->SetStereoTypeToLeft();
vtkWindow1->GetRenderWindow()->StereoUpdate();
or
vtkWindow1->GetRenderWindow()->SetStereoTypeToRight();
vtkWindow1->GetRenderWindow()->StereoUpdate();
or
vtkWindow1->GetRenderWindow()->SetStereoTypeToAnaglyph();
vtkWindow1->GetRenderWindow()->StereoUpdate();
it works very well.
Using these three last modes I modify the eye angle with
vtkWindow1->GetRenderer()->GetActiveCamera()->SetEyeAngle(MyVisualAngle
) and it works very well too.
But the same code with the SetStereoTypeToCrystalEyes() function
doesnt work.
Where is the problem?
Could be the video card or the shutter glasses? Is there in the drivers?
Do I need a quadro card for this application? or is there something
wrong in my code?
Regards,
Santiago Rodríguez
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date:
02/06/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.8/381 - Release Date:
03/07/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060704/480fe6fc/attachment.htm>
More information about the vtkusers
mailing list