<div dir="ltr">Please have a look here: <div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Depth_Peeling">http://www.vtk.org/Wiki/VTK/Depth_Peeling</a><br></div><div><br></div><div>Specially this section:</div><div>Required OpenGL extensions</div>
<div><br></div><div><ul style="line-height:19.046875px;list-style-type:square;margin:0.3em 0px 0px 1.5em;padding:0px;color:rgb(0,0,0);font-family:sans-serif;font-size:13px"><li style="margin-bottom:0.1em"><tt>GL_ARB_depth_texture</tt> or OpenGL&gt;=1.4</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_shadow</tt> or OpenGL&gt;=1.4</li><li style="margin-bottom:0.1em"><tt>GL_EXT_shadow_funcs</tt> or OpenGL&gt;=1.5</li><li style="margin-bottom:0.1em"><tt>GL_ARB_vertex_shader</tt> or OpenGL&gt;=2.0</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_fragment_shader</tt> or OpenGL&gt;=2.0</li><li style="margin-bottom:0.1em"><tt>GL_ARB_shader_objects</tt> or OpenGL&gt;=2.0</li><li style="margin-bottom:0.1em"><tt>GL_ARB_occlusion_query</tt> or OpenGL&gt;=1.5</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_multitexture</tt> or OpenGL&gt;=1.3</li><li style="margin-bottom:0.1em"><tt>GL_ARB_texture_rectangle</tt></li><li style="margin-bottom:0.1em"><tt>GL_SGIS_texture_edge_clamp</tt> or <tt>GL_EXT_texture_edge_clamp</tt> or OpenGL&gt;=1.2</li>
</ul><div><font color="#000000" face="sans-serif"><span style="line-height:19.037500381469727px"><br></span></font></div></div><div><font color="#000000" face="sans-serif"><span style="line-height:19.037500381469727px"><br>
</span></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 8:37 AM, Doug Hoppes <span dir="ltr">&lt;<a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">                I’m still playing with making my transparent objects look good.  It was suggested that I look at the depth peeling versus vtkdepthsortpolydata (since the depth sort isn’t all that fast).  Of course, I read that the depth
 peeling isn’t fast, either.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">                From the documentation, I have implemented (where the actor is a set ofspheres)<u></u><u></u></p>
<p class="MsoNormal">-------<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">m_pRenderWindow</span>-&gt;<span style="color:#010001">SetAlphaBitPlanes</span>(1);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">m_pRenderWindow</span>-&gt;<span style="color:#010001">SetMultiSamples</span>(0);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">m_pRenderer</span>-&gt;<span style="color:#010001">GetActorRenderer</span>()-&gt;<span style="color:#010001">UseDepthPeelingOn</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">m_pRenderer</span>-&gt;<span style="color:#010001">GetActorRenderer</span>()-&gt;<span style="color:#010001">SetMaximumNumberOfPeels</span>(100);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">m_pRenderer</span>-&gt;<span style="color:#010001">GetActorRenderer</span>()-&gt;<span style="color:#010001">SetOcclusionRatio</span>(0.1);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkPolyDataMapper</span>&gt;
<span style="color:#010001">mapper</span> = <span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkPolyDataMapper</span>&gt;::<span style="color:#010001">New</span>();<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">mapper</span>-&gt;<span style="color:#010001">SetInputConnection</span>(<span style="color:#010001">appendData</span>-&gt;<span style="color:#010001">GetOutputPort</span>());<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkActor</span>&gt;
<span style="color:#010001">actor</span> = <span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkActor</span>&gt;::<span style="color:#010001">New</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">actor</span>-&gt;<span style="color:#010001">SetMapper</span>(<span style="color:#010001">mapper</span>);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">actor</span>-&gt;<span style="color:#010001">GetProperty</span>()-&gt;<span style="color:#010001">SetOpacity</span>(0.5);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">actor</span>-&gt;<span style="color:#010001">GetProperty</span>()-&gt;<span style="color:#010001">SetColor</span>(1, 0, 0);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">actor</span>-&gt;<span style="color:#010001">RotateX</span>(-72);
<span style="color:green">//put the object in a position where it is easy<u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">           
<span style="color:#010001">m_pRenderer</span>-&gt;<span style="color:#010001">AddActor</span>(<span style="color:#010001">actor</span>);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">int</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">
<span style="color:#010001">depthPeelingWasUsed</span> = <span style="color:#010001">
m_pRenderer</span>-&gt;<span style="color:#010001">GetActorRenderer</span>()-&gt;<span style="color:#010001">GetLastRenderingUsedDepthPeeling</span>();<u></u><u></u></span></p>
<p class="MsoNormal">-------<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">                The depthPeelingWasUsed always returns false (0).  From the documentation, it says that, for depth peeling, you really need OpenGL &gt; 1.3.  I’m using the amd radeon 7900.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p>
<span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Doug<u></u><u></u></p>
</font></span></div>
</div>

<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    
</div>