<div dir="ltr">I believe it is unsorted in that it is rendered in the order the props are added (not sorted by some other metric). Opaque actors get rendered before translucent, but if you have multiple translucent actors they are rendered in the order added. I suppose you could<div><br></div><div>renderer->GetViewProps()->InsertItem(loc, yourActor);</div><div><br></div><div>if you know what location you want.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 5:05 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 19 Jan 2017 16:59:09 -0500, Ken Martin said:<br>
<br>
>It should be the same unless any of the actors are coincident or<br>
>translucent. In that case the order of the actors can make a difference.<br>
>alpha blending for transparency is order dependent and with coincident<br>
>geometry either first or last wins (I forget which in VTK). Not sure if<br>
>that applies in your example.<br>
<br>
The green thing in my screenshot is indeed translucent. Making it fully opaque indeed "fixes" the problem.<br>
<br>
I don't think I have anything coincident, though things overlap.<br>
<br>
So how do I control the order? vtkViewport.h has AddViewProp() but I don't see any API to, for example, add it first or last. And vtkPropCollection's docs say that it's 'unsorted'.<br>
<br>
Thanks Ken!<br>
<span class="HOEnZb"><font color="#888888"><br>
Sean<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>