<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Doug,<br>
<br>
<blockquote type="cite">The depthPeelingWasUsed always returns
false (0). From the documentation, it says that, for depth
peeling, you really need OpenGL > 1.3. I’m using the amd
radeon 7900.</blockquote>
Nice card, that should support depth peeling without issue.
However historically depth peeling has been disabled for ATI
cards. We recently revisited the issue and were able to get dpeth
peeling to work on ATI Radeon HD cards. This change is in VTK 6.1,
so you'll have to upgrade and if you're already at 6.1 then it's a
bug.<br>
<br>
Burlen<br>
<br>
On 12/2/2013 6:46 AM, Aashish Chaudhary wrote:<br>
</div>
<blockquote
cite="mid:CAEw35Z9b2AsSDePsqeQEu0DvXfpJgTMJ1EcvBbKvVrVD-JnspQ@mail.gmail.com"
type="cite">
<div dir="ltr">Please have a look here:
<div><br>
</div>
<div><a moz-do-not-send="true"
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>=1.4</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_shadow</tt> or
OpenGL>=1.4</li>
<li style="margin-bottom:0.1em"><tt>GL_EXT_shadow_funcs</tt> or
OpenGL>=1.5</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_vertex_shader</tt> or
OpenGL>=2.0</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_fragment_shader</tt> or
OpenGL>=2.0</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_shader_objects</tt> or
OpenGL>=2.0</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_occlusion_query</tt> or
OpenGL>=1.5</li>
<li style="margin-bottom:0.1em"><tt>GL_ARB_multitexture</tt> or
OpenGL>=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>=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"><<a moz-do-not-send="true"
href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi all,</p>
<p class="MsoNormal"> </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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> From the
documentation, I have implemented (where the actor is
a set ofspheres)</p>
<p class="MsoNormal">-------</p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">m_pRenderWindow</span>-><span
style="color:#010001">SetAlphaBitPlanes</span>(1);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">m_pRenderWindow</span>-><span
style="color:#010001">SetMultiSamples</span>(0);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">m_pRenderer</span>-><span
style="color:#010001">GetActorRenderer</span>()-><span
style="color:#010001">UseDepthPeelingOn</span>();</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">m_pRenderer</span>-><span
style="color:#010001">GetActorRenderer</span>()-><span
style="color:#010001">SetMaximumNumberOfPeels</span>(100);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">m_pRenderer</span>-><span
style="color:#010001">GetActorRenderer</span>()-><span
style="color:#010001">SetOcclusionRatio</span>(0.1);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New""> </span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkPolyDataMapper</span>>
<span style="color:#010001">mapper</span> = <span
style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkPolyDataMapper</span>>::<span
style="color:#010001">New</span>();</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">mapper</span>-><span
style="color:#010001">SetInputConnection</span>(<span
style="color:#010001">appendData</span>-><span
style="color:#010001">GetOutputPort</span>());</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkActor</span>>
<span style="color:#010001">actor</span> = <span
style="color:#010001">vtkSmartPointer</span><<span
style="color:#010001">vtkActor</span>>::<span
style="color:#010001">New</span>();</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">actor</span>-><span
style="color:#010001">SetMapper</span>(<span
style="color:#010001">mapper</span>);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">actor</span>-><span
style="color:#010001">GetProperty</span>()-><span
style="color:#010001">SetOpacity</span>(0.5);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">actor</span>-><span
style="color:#010001">GetProperty</span>()-><span
style="color:#010001">SetColor</span>(1, 0, 0);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">actor</span>-><span
style="color:#010001">RotateX</span>(-72);
<span style="color:green">//put the object in a
position where it is easy</span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">m_pRenderer</span>-><span
style="color:#010001">AddActor</span>(<span
style="color:#010001">actor</span>);</span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:"Courier
New""> </span></p>
<p class="MsoNormal"
style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span
style="font-size:10.0pt;font-family:"Courier
New";color:blue">int</span><span
style="font-size:10.0pt;font-family:"Courier
New"">
<span style="color:#010001">depthPeelingWasUsed</span>
= <span style="color:#010001">
m_pRenderer</span>-><span style="color:#010001">GetActorRenderer</span>()-><span
style="color:#010001">GetLastRenderingUsedDepthPeeling</span>();</span></p>
<p class="MsoNormal">-------</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> The
depthPeelingWasUsed always returns false (0). From
the documentation, it says that, for depth peeling,
you really need OpenGL > 1.3. I’m using the amd
radeon 7900.<span class="HOEnZb"></span></p>
<span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Doug</p>
</font></span></div>
</div>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
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&D Engineer <br>
| Kitware Inc. <br>
| <a moz-do-not-send="true" href="http://www.kitware.com">www.kitware.com</a>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</body>
</html>