<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 14, 2013 at 1:01 AM, Frank Gao <span dir="ltr">&lt;<a href="mailto:Frank.Gao@guidemia.com" target="_blank">Frank.Gao@guidemia.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">
<span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Hi Aashish, David,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">I found out some old posting, and got a clue that the code can be RenderWindow()-&gt;SetPolygonSmoothing() and RenderWindow()-&gt;SetMultiSamples(). Did some test and found out they can not be used together. Only SetMultiSamples() will solve the problem. I tried SetMultiSamples(8) and SetMultiSamples(2). Both worked fine. I have no idea which one we should use, and what’s the impact.</span></p>
</div></div></blockquote><div><br></div><div>Don&#39;t use polygon smoothing that&#39;s the old way (<a href="http://www.gamedev.net/topic/107637-glenablegl_polygon_smooth/">http://www.gamedev.net/topic/107637-glenablegl_polygon_smooth/</a>) </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple">
<div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Can you please confirm this is the right thing to do? And what number should we use in SetMultiSamples?</span></p></div>
</div></blockquote><div><br></div><div>I believe VTK does this (<a href="http://www.opengl.org/wiki/Multisampling">http://www.opengl.org/wiki/Multisampling</a>) the more samples you have the poorer the performance you will get.  However, if your data is not that big, then I would suggest set it to 8 if not then 4 should be good enough. </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><p class="MsoNormal">
<span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u><u></u></span></p></div></blockquote><div><span style="color:rgb(31,73,125);font-family:Calibri,serif;font-size:11pt"> </span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Best regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Frank<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><div><div style="border-style:solid none none;border-top-color:rgb(225,225,225);border-top-width:1pt;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,serif"> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>Frank Gao<br>
<b>Sent:</b> Wednesday, November 13, 2013 9:06 PM<br><b>To:</b> &#39;Aashish Chaudhary&#39;</span></p><div><div class="h5"><br><b>Cc:</b> &#39;VTK Users&#39;<br><b>Subject:</b> Re: [vtkusers] PolyData rendering problem<u></u><u></u></div>
</div><p></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Hi Aashish, David,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Yes it is confirmed that the Antialiasing option is the reason. With either preference setting, when this one is off, we will see the problem. Setting antialiasing by 2x or 4x does not make noticeable difference. So my guess is that setting the Antialiasing will fix the problem, but we are not sure where and how is the best fix. Could you please shed some lights on this? <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Please see the following for a sample model. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><a href="https://www.dropbox.com/s/f4dnywwcohlrvko/polydata_rendering_case.stl" target="_blank">https://www.dropbox.com/s/f4dnywwcohlrvko/polydata_rendering_case.stl</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Frank<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,serif"> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a> [<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">mailto:vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>Aashish Chaudhary<br>
<b>Sent:</b> Wednesday, November 13, 2013 6:01 AM<br><b>To:</b> Frank Gao<br><b>Cc:</b> VTK Users<br><b>Subject:</b> Re: [vtkusers] PolyData rendering problem<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p>
<div><p class="MsoNormal">Can you try this experiment: <u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Keep the setting to performance but just turn on the Antialiasing if it is possible to change that setting individually? There you will find options as well. Try different options and let us know if you see the difference? <u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">It could be either: z buffer precison issue or antialiasing issue if there is nothing special about your dataset. <u></u><u></u></p></div>
<div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Also, can you send us this dataset?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">- Aashish<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><div><p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Nov 12, 2013 at 11:57 PM, Frank Gao &lt;<a href="mailto:Frank.Gao@guidemia.com" target="_blank">Frank.Gao@guidemia.com</a>&gt; wrote:<u></u><u></u></p>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt"><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Hi David,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">I did a comparison between the nVidia card settings, and found out the differences with “Performance” and “Quality” preference. Please see the document below. </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><a href="https://www.dropbox.com/s/vwdgj44zz6y3w6w/nVIdiaCard_Setting_difference.docx" target="_blank">https://www.dropbox.com/s/vwdgj44zz6y3w6w/nVIdiaCard_Setting_difference.docx</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">I am assuming there are some OpenGL calls to implement the difference, but don’t really know what to do. Hope this can provide some clues.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Best regards,</span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Frank</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,serif"> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>David E DeMarle<br>
<b>Sent:</b> Tuesday, November 12, 2013 4:43 PM<br><b>To:</b> <a href="mailto:Frank.Gao@guidemia.com" target="_blank">Frank.Gao@guidemia.com</a><br><b>Cc:</b> VTK Developers; VTK Users<br><b>Subject:</b> Re: [vtkusers] PolyData rendering problem</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">What is the world space size of the triangles? Are they small enough to push the limits of GL float precision?<u></u><u></u></p></div><div><div><div>
<p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" target="_blank">518-881-4909</a><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12pt"> <u></u><u></u></p><div><p class="MsoNormal">On Tue, Nov 12, 2013 at 6:10 PM, Frank Gao &lt;<a href="mailto:Frank.Gao@guidemia.com" target="_blank">Frank.Gao@guidemia.com</a>&gt; wrote:<u></u><u></u></p>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt"><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Hi All,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">We are having some problems with the surface rendering in VTK. If the users don’t set their graphics card preference to “Quality”, the surface rendering will show a lot of “ghost” lines between the triangles, but they are not the polydata edges. Completely display artifact. When the triangles are small, this is much more obvious. I places a picture in the following link. The left one has problem. The right one is when preference is set to “quality”.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"><a href="https://www.dropbox.com/s/1kvpzia57uggist/vtk_polydata_rendering_case.PNG" target="_blank">https://www.dropbox.com/s/1kvpzia57uggist/vtk_polydata_rendering_case.PNG</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Because of this we have to tell the users to change their graphics card setting. Is this something we can do in the code? Thanks a lot in advance.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,serif;color:rgb(31,73,125)">Frank Gao</span><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12pt"><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><u></u><u></u></p>
</blockquote></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12pt"><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><u></u><u></u></p></blockquote></div><p class="MsoNormal">
<br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <br>| Aashish Chaudhary <br>| R&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>    <u></u><u></u></p>
</div></div></div></div></div></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></div>