View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016025VTK(No Category)public2016-03-10 07:292016-08-12 09:55
ReporterMarc Mörig 
Assigned ToAlvaro Sanchez 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0016025: Clipping appears to be inefficient in vtkGPUVolumeRayCastMapper VTK 7.0
DescriptionWhen clipping planes are set, the Performance of vtkGPUVolumeRayCastMapper significantly drops, while I feel that should not be necessary.
TagsNo tags attached.
ProjectTBD
Typeperformance
Attached Files? file icon test_gpu_volume_mapper_performance.cc [^] (3,441 bytes) 2016-07-07 02:44

 Relationships

  Notes
(0036235)
Alvaro Sanchez (developer)
2016-07-06 16:21

Hi Marc, thanks for reporting. Could you give me more information about your test setup (some code and data would be useful)? I tested with 6 clipping planes using a relatively small volume (Data/vase_1comp.vti) and there were no noticeable performance issues.
(0036319)
Marc Mörig (reporter)
2016-07-07 01:44

Dear Alvaro, thanks for investigating this. I have to check whether I can give you any data (unlikely). My datasets are 680x512x512 and for a typical transfer function, most of the volume is transparent, i.e. the ray has to travel all the way through the volume.

I apply clipping planes basically in the following way (only when planes change):

vtkPlanes* planes;
clip_box_rep->GetPlanes(planes)
mapper->RemoveAllClippingPlanes();
mapper->SetClippingPlanes(planes);


My guess is, that clipping is performed per voxel or per sample and not once per ray. There is for example no performance drop if I have a transfer function that makes everything opaque.

I could provide you with some test code, though I would have to create that from scratch.
(0036320)
Marc Mörig (reporter)
2016-07-07 02:48

I have added some code that reproduces the issue for me.
(0036531)
Alvaro Sanchez (developer)
2016-07-19 16:53

Thanks for the code Marc. I assume you are building the OpenGL2 backend, right?
(0036533)
Marc Mörig (reporter)
2016-07-20 01:17

I think so. It's the default starting with vtk 7, right? In an case my CMakeCache.txt says

VTK_RENDERING_BACKEND:STRING=OpenGL2
(0037458)
Kitware Robot (administrator)
2016-08-12 09:55

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.

 Issue History
Date Modified Username Field Change
2016-03-10 07:29 Marc Mörig New Issue
2016-07-06 10:39 Alvaro Sanchez Assigned To => Alvaro Sanchez
2016-07-06 13:27 Alvaro Sanchez Status backlog => active development
2016-07-06 16:21 Alvaro Sanchez Note Added: 0036235
2016-07-07 01:44 Marc Mörig Note Added: 0036319
2016-07-07 02:44 Marc Mörig File Added: test_gpu_volume_mapper_performance.cc
2016-07-07 02:48 Marc Mörig Note Added: 0036320
2016-07-19 16:53 Alvaro Sanchez Note Added: 0036531
2016-07-20 01:17 Marc Mörig Note Added: 0036533
2016-08-12 09:55 Kitware Robot Note Added: 0037458
2016-08-12 09:55 Kitware Robot Status active development => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team