<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-09-12 14:01 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a target="_blank" href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><div><div><div>Hi all,<br><br></div>I've just noticed the there's a large difference in rendering quality if I decrease the spacing of my data (using vtkGPUVolumeRayCastMapper).<br><br></div>I found this very old post from 2007 about the same problem:<br><br> <a target="_blank" href="http://public.kitware.com/pipermail/vtkusers/2007-March/040559.html">http://public.kitware.com/<wbr>pipermail/vtkusers/2007-March/<wbr>040559.html</a><br><br></div><div>I was originally using a data spacing of 0.12, which is the voxel size in centimeters for the particular volume I'm working with (stored in our data files), but after I tried to divide it by 100.0 during loading, rendering quality dropped considerably. The reason I wanted to do this is because it's more convenient if VTK world coordinates are in meters in this particular application, not centimeters.<br><br><div>Anyone know why volume rendering quality seems dependant on the data spacing?<br></div></div></div></blockquote><div><br></div><div>I now found another more recent post from 2014 which describes in more detail what I seem to experience as well (seemingly also with no answer):<br><br> <a href="http://public.kitware.com/pipermail/vtkusers/2014-March/083311.html">http://public.kitware.com/pipermail/vtkusers/2014-March/083311.html</a><br><br></div><div>I get the expected rendering when the spacing is ~1.<br><br></div><div>Must I make sure that my volumes have a spacing ~1? I'm willing to abandon the idea of having VTK world coordinates == meters and introduce another scale, but it's a bit cumbersome as I'm working with multiple volumes which I add to the renderer at once, and not all of them will have the same spacing. This means I must first analyse the volumes I'm going to load a priori, and calculate a factor common to them all that will bring all of their spacings as close to 1 as possible :(<br><br></div><div>Would be great if someone in the know could chime in. Is there some workaround? Can I instruct the mapper to "expect" the small spacings I want to work with?<br><br></div><div>Elvis<br></div><div><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><div><div><br></div>Thanks for any clarifications!<span class="gmail-HOEnZb"><font color="#888888"><br><br></font></span></div><span class="gmail-HOEnZb"><font color="#888888"><div>Elvis<br></div></font></span></div>
</blockquote></div><br></div></div>