<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks for the explanations and I understand the complexity of the problem.<div><br></div><div>I use the front/back culling technique to make border of my objects darker, like in cel shading rendering ( <a href="https://en.wikipedia.org/wiki/Cel_shading">https://en.wikipedia.org/wiki/Cel_shading</a> ). Any idea to get the same effect in Paraview??</div><div><br></div><div><br></div><div>Felipe</div><div><br><div><div><br></div><div><br><div><div>Le 11 sept. 2015 à 15:02, Ken Martin <<a href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Unfortunately this is a real issue and the fix is sort of ugly/painful<br>unless I am missing something. The issue is that the new backend converts<br>quads/polygons into triangles as quads and polygons are deprecated in later<br>versions of OpenGL. Plus triangles are fast as they each have just 3 verts<br>and can be counted on to have three verts etc. :-) But when you render<br>wireframe you do not want to use the same IBO because if your original data<br>was a quad, showing triangle wireframes would be misleading. So we build a<br>different IBO that constructs the boundary edges as lines.<span class="Apple-converted-space"> </span> Lines do not<br>get front/back culled by OpenGL. The reason we do not use triangle_fans is<br>that without the primitive restart index support (not available in OpenGL<br>2.1 or ES 2.0/3.0/3.1) you (or the driver) have to essentially make a draw<br>call per primitive which is slow. Plus glPolygonMode is not in OpenGL ES so<br>it would not work on iOS/Android anyhow. So ... edge visibility or<br>wireframe when combined with front/back culling is not working and off the<br>top of my head I cannot think of a universal solution other than performing<br>the culling on the CPU and sending a new IBO up every frame, yuck.<br><br><br><br>Ken<br><br><br><br>Ken Martin PhD<br><br>Chairman & CFO<br><br>Kitware Inc.<br><br>28 Corporate Drive<br><br>Clifton Park NY 12065<br><br><a href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a><br><br>919 869-8871 (w)<br><br><br><br><br><br>This communication, including all attachments, contains confidential and<br>legally privileged information, and it is intended only for the use of the<br>addressee.<span class="Apple-converted-space"> </span> Access to this email by anyone else is unauthorized. If you are<br>not the intended recipient, any disclosure, copying, distribution or any<br>action taken in reliance on it is prohibited and may be unlawful. If you<br>received this communication in error please notify us immediately and<br>destroy the original message.<span class="Apple-converted-space"> </span> Thank you.<br><br><br><br>*From:* Paraview-developers [mailto:paraview-developers-bounces@paraview.org]<br>*On Behalf Of *Joachim Pouderoux<br>*Sent:* Friday, September 11, 2015 5:52 AM<br>*To:* Felipe Bordeu<br>*Cc:* ParaView Developers<br>*Subject:* Re: [Paraview-developers] Backface Styling bug?<br><br><br><br>Not totally sure but it could be related to Ken's current merge request:<br>https://gitlab.kitware.com/vtk/vtk/merge_requests/643<br><br>Support of OpenGL2 backend in PV is not yet complete by the way. PV4.4 is<br>still base on the legacy backend.<br><br>Regards,<br><br><br><br><br>*Joachim Pouderoux*<br><br>*PhD, Technical Expert*<br>*Kitware SAS <http://www.kitware.fr>*<br><br><br><br>2015-09-11 11:24 GMT+02:00 Felipe Bordeu <felipe.bordeu@ec-nantes.fr>:<br><br><br><fieldset style="padding-top:10px; border:0px; border: 3px solid #CCC; padding-left: 20px;"><legend style="font-weight:bold">Signé partie PGP</legend><div style="padding-left:3px;">hi I don't know if this is a bug of paraview or vtk.<br><br>1) make a simple Arrow source<br>2) change the view to Surface With Edges.<br>3) change the "Backface Representation" to "Cull Frontface"<br><br>only the back surfaces are rendered (as expected ), but ALL the edge are<br>rendered.<br><br>Using the 4.4.0-RC2 64bit on linux and using "<br>VTK_RENDERING_BACKEND<span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span> OpenGL2"<br><br>In Paraview 4.3.1 (binary from web) only the back edges and surface are<br>rendered (as expected).<br><br>Felipe<br><br><br><br>--<br>Felipe Bordeu Weldt<br>Ingénieur de Recherche<br>-------------------------------------<br>Tél. : 33 (0)2 40 37 16 57<br>Fax. : 33 (0)2 40 74 74 06<br>Felipe.Bordeu@ec-nantes.fr<br>Institut GeM - UMR CNRS 6183<br>École Centrale Nantes<br>1 Rue de La Noë, 44321 Nantes, FRANCE<br>-------------------------------------</div></fieldset><br><br><br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br>http://www.kitware.com/opensource/opensource.html<br><br>Search the list archives at:<br>http://markmail.org/search/?q=Paraview-developers<br><br>Follow this link to subscribe/unsubscribe:<br>http://public.kitware.com/mailman/listinfo/paraview-developers<br></blockquote></div><br></div></div></div></body></html>