MantisBT - VTKEdge
View Issue Details
0008549VTKEdgepublic2009-02-17 03:352010-08-24 11:27
Gianluca 
François Bertel 
normalmajoralways
resolvedfixed 
0008549: Volume rendering deformation
When I use the vtkKWEVolumeMapper to render a (16 bit) volume in a window, I notice a strange "deformation" in the volume when I look from some point of view (usually at the corners). Look at this recorded video:

http://it.youtube.com/watch?v=C_GA6UHbUGo [^]

I use a perspective camera (the problem is always present, but it's by far more noticeable when I look at the volume closely). I notice that when I use a parallel projection camera the problem disappear. If I use software raycasting the problem disappear too. So, seems that it's a problem related to the GPU implementation of the ray-casting algorithm (class vtkKWEOpenGLGPUVolumeRayCastMapper) when a perspective camera is used.
I suspect that the problem could be related to the determination of the rays entry/exit point.
Here some info about the volume I used in the video:

ImageSize = (512, 512)
Number of Slice = 461
PixelSpacing = (0.71875, 0.71875)
SliceDistance = 1.5
BitDepth = 16
URL of dataset: http://pubimage.hcuge.ch:8080/DATA/MACOESSIX.zip [^] (130 Mb, folder: CT1 abdomen\AVEC I.V. - 5305).

----------

System configuration:

- Windows XP SP3;
- Visual Studio 2005 SP1;
- CPU: QuadCore Intel Core 2 Extreme QX9770 (3,4 Ghz) - FSB 1600 Mhz;
- GPU: 2 x nVidia Geforce GTX 280 (2 x 1GB) (connected in SLI);
- RAM: 4 GB DDR3 (1333 Mhz);
- MB: Asus Striker II Extreme (nVidia nForce 790i Ultra SLI);
No tags attached.
related to 0008548resolved François Bertel clipping planes with vtkKWEGPUVolumeRayCastMapper doesn't work properly 
Issue History
2009-02-17 03:35GianlucaNew Issue
2010-03-01 19:53François BertelStatusnew => assigned
2010-03-01 19:53François BertelAssigned To => François Bertel
2010-03-01 19:55François BertelNote Added: 0019674
2010-03-01 19:55François BertelStatusassigned => feedback
2010-03-01 19:56François BertelRelationship addedrelated to 0008548
2010-03-17 03:19GianlucaNote Added: 0019918
2010-08-12 09:39GianlucaNote Added: 0021733
2010-08-24 11:22François BertelNote Added: 0021917
2010-08-24 11:27François BertelNote Added: 0021918
2010-08-24 11:27François BertelStatusfeedback => resolved
2010-08-24 11:27François BertelResolutionopen => fixed

Notes
(0019674)
François Bertel   
2010-03-01 19:55   
Thanks to Julien Finet, this bug is probably fixed in VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx Revision: 1.8
(0019918)
Gianluca   
2010-03-17 03:19   
Hi, I have tested the new version, but all the bugs still occurs (including the related 0008548).
(0021733)
Gianluca   
2010-08-12 09:39   
I found and fix the bug, but I'm not sure how to signal this correctly. I posted the solution on the user and developer list.
(0021917)
François Bertel   
2010-08-24 11:22   
This is the post with the fix:
http://www.vtk.org/pipermail/vtkusers/2010-August/110978.html [^]
(0021918)
François Bertel   
2010-08-24 11:27   
Patch applied and adapted in VTK commit 5c582950680a3b218e7d217a6bb4bc98ca472789

http://vtk.org/gitweb?p=VTK.git;a=commit;h=5c582950680a3b218e7d217a6bb4bc98ca472789 [^]