Simon:<br><br>You don&#39;t need to use depth peeling. The bounds of your volumes don&#39;t overlap. Just set the culler&#39;s sorting mode to back to front (default is none) and everything should work out of the box... something like :<br>
<br>renderer-&gt;GetCullers()-&gt;GetLastItem()-&gt;SetSortingStyleToBackToFront();<br>renderer-&gt;AddVolume(vol1);<br>renderer-&gt;AddVolume(vol2);<br><br>--<br>karthik<br><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 5:49 PM, Simon Adler <span dir="ltr">&lt;<a href="mailto:vtk@cg-effects.de">vtk@cg-effects.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear Members,<br>
<br>
how can i change the order in which volumes are rendered. Or more in<br>
general - how can i change the order objects are rendered (not cells<br>
within objects).<br>
<br>
Concrete Problem:<br>
I have to Volumerenderings close to each other but not overlapping. I<br>
do not want to use Depth peeling, due to performance reasons. I just<br>
want to change the order how the are rendered depening on the current<br>
camera position.<br>
<br>
I tried...<br>
... to sort the vtkVolumeCollection got from the renderer, but this<br>
has no effect.<br>
<br>
My renderer is a vtkOpenGLRenderer. Volumes are represented by<br>
vtkSmartVolumeMapper.<br>
<br>
Thanks for any advice<br>
<br>
Simon Adler<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>