MantisBT - VTK
View Issue Details
0004480VTK(No Category)public2007-02-20 05:342016-08-12 09:54
Valeria Gallo 
Lisa Avila 
normalmajoralways
closedmoved 
 
 
0004480: Wrong stereo pairs
When I enable the stereo mode (Anaglyph or CrystalEyes) on a volume rendered (with ray casting) image, I can see the stereo pairs only with positive parallax (I can see the volume “inside” the screen, I can see its depth), but it doesn't come out from the screen (negative parallax, the volume is “outside” the screen).

The strange thing is that with the Surface Rendering the stereo pairs are well generated. The problem is that on the focal plane there is not a "zero-displacement" between the stereo images. The left eye image is ever on the left of the screen and the right one is on the right (whilst the left eye image should be on the right before the focal plane, on the left beyond the focal plane; vice versa for the right eye image, like the stereo pairs generated with the Surface Rendering).

I have tried to modify vtkCamera.cxx to solve the problem, and I have observed that the stereo pairs are genereted from the correct perspective if I brutally modify the ComputePerspectiveTransform method, even if the displacement of the images is still wrong (there is not a zero displacement between the stereo pairs on the focal plane).

I attach the vtkCamera.cxx modified.

Regards,
Valeria
No tags attached.
cxx vtkCamera.cxx (46,004) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5899/vtkCamera.cxx
Issue History
2008-02-06 10:10Jeff BaumesAssigned ToWill Schroeder => Lisa Avila
2008-03-14 13:50Vale GalloNote Added: 0010810
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036903
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0006793)
Valeria Gallo   
2007-03-14 13:07   
I have just verified that in the last version of VTK (downloaded from CVS) this problem was partially solved.
Now on the focal plane there is a "zero-displacement" between the stereo images, exactly as with the Surface Rendering mode.

However in my opinion there is still an open issue: to set up in run-time the parallax of the stereo pairs.
In my opinion there is the need of a method (e.g. parallax(double parallaxValue) ) to allow to put the volume arbitrary outside/inside the screen modifying the position of the stereo pairs.
At this time the only way I know to do it is to change the position of the focal point, but this solution in some cases is not suitable.

Regards
Valeria
(0010810)
Vale Gallo   
2008-03-14 13:50   
As asked by David Cole on vtk-developers, I have sent a the code of a simple program.
In the CMakeLists.txt file attached, you have only to change the path for the 5.0.4 or 5.1.0 VTK version to see the differences in the stereo pairs generation.

I really hope the 5.2.0 version could be bug-fixed for the stereo visualization.
It would be really important.
(0036903)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.