<div dir="ltr">Hi Jan,<div><br></div><div>As a rough guide, get an estimate of the thickness of the volume</div><div>(e.g. from the bounding box returned by mapper->GetBounds())</div><div>and multiply by 0.001 to get a useful ScalarOpacityUnitDistance.</div><div>This should hopefully provide a qualitatively useful result, you</div><div>can tweak the factor until you get something that works.</div><div><br></div><div>If you want thin surface to be more opaque, then use a gradient</div><div>opacity function to make the boundary itself more opaque.</div><div><br></div><div> - David</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 11:45 AM, jhirsch <span dir="ltr"><<a href="mailto:jan.hirsch@st.ovgu.de" target="_blank">jan.hirsch@st.ovgu.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
maybe it seems like a naive question, but how can I set the 'right' value<br>
for ScalarOpacityUnitDistance from a vtkVolumeProperty object?<br>
I'm doing a volume rendering with a vtkProjectedTetrahedraMapper and<br>
depending on the ScalarOpacityUnitDistance value I either see something or<br>
not. My guess is, that it has something to do with the size of the volume...<br>
<br>
For example, when I leave this value untouched (default=1.0) there is<br>
nothing to see for my current data set. When I set it to something like<br>
0.0003 the rendering looks OK but when I have only a part of the volume<br>
(like a thin surface) I have to set ScalarOpacityUnitDistance to something<br>
like 0.00015. Then the surface appears.<br>
<br>
I don't want to guess the right value for every set of data I got, so what<br>
are the properties and circumstances I have to consider?<br>
<br>
Thanks in advance!<br></blockquote></div></div></div></div>