[Paraview-developers] Backface Styling bug?

Felipe Bordeu Weldt felipe.bordeu at ec-nantes.fr
Fri Sep 11 09:32:49 EDT 2015


Thanks for the explanations and I understand the complexity of the problem.

I use the front/back culling technique to make border of my objects darker, like in cel shading rendering ( https://en.wikipedia.org/wiki/Cel_shading ). Any idea to get the same effect in Paraview??


Felipe



Le 11 sept. 2015 à 15:02, Ken Martin <ken.martin at kitware.com> a écrit :

> Unfortunately this is a real issue and the fix is sort of ugly/painful
> unless I am missing something. The issue is that the new backend converts
> quads/polygons into triangles as quads and polygons are deprecated in later
> versions of OpenGL. Plus triangles are fast as they each have just 3 verts
> and can be counted on to have three verts etc. :-) But when you render
> wireframe you do not want to use the same IBO because if your original data
> was a quad, showing triangle wireframes would be misleading. So we build a
> different IBO that constructs the boundary edges as lines.  Lines do not
> get front/back culled by OpenGL. The reason we do not use triangle_fans is
> that without the primitive restart index support (not available in OpenGL
> 2.1 or ES 2.0/3.0/3.1) you (or the driver) have to essentially make a draw
> call per primitive which is slow. Plus glPolygonMode is not in OpenGL ES so
> it would not work on iOS/Android anyhow. So ... edge visibility or
> wireframe when combined with front/back culling is not working and off the
> top of my head I cannot think of a universal solution other than performing
> the culling on the CPU and sending a new IBO up every frame, yuck.
> 
> 
> 
> Ken
> 
> 
> 
> Ken Martin PhD
> 
> Chairman & CFO
> 
> Kitware Inc.
> 
> 28 Corporate Drive
> 
> Clifton Park NY 12065
> 
> ken.martin at kitware.com
> 
> 919 869-8871 (w)
> 
> 
> 
> 
> 
> 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.
> 
> 
> 
> *From:* Paraview-developers [mailto:paraview-developers-bounces at paraview.org]
> *On Behalf Of *Joachim Pouderoux
> *Sent:* Friday, September 11, 2015 5:52 AM
> *To:* Felipe Bordeu
> *Cc:* ParaView Developers
> *Subject:* Re: [Paraview-developers] Backface Styling bug?
> 
> 
> 
> Not totally sure but it could be related to Ken's current merge request:
> https://gitlab.kitware.com/vtk/vtk/merge_requests/643
> 
> Support of OpenGL2 backend in PV is not yet complete by the way. PV4.4 is
> still base on the legacy backend.
> 
> Regards,
> 
> 
> 
> 
> *Joachim Pouderoux*
> 
> *PhD, Technical Expert*
> *Kitware SAS <http://www.kitware.fr>*
> 
> 
> 
> 2015-09-11 11:24 GMT+02:00 Felipe Bordeu <felipe.bordeu at ec-nantes.fr>:
> 
> 
> Signé partie PGP
> hi I don't know if this is a bug of paraview or vtk.
> 
> 1) make a simple Arrow source
> 2) change the view to Surface With Edges.
> 3) change the "Backface Representation" to "Cull Frontface"
> 
> only the back surfaces are rendered (as expected ), but ALL the edge are
> rendered.
> 
> Using the 4.4.0-RC2 64bit on linux and using "
> VTK_RENDERING_BACKEND            OpenGL2"
> 
> In Paraview 4.3.1 (binary from web) only the back edges and surface are
> rendered (as expected).
> 
> Felipe
> 
> 
> 
> --
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> Felipe.Bordeu at ec-nantes.fr
> Institut GeM - UMR CNRS 6183
> École Centrale Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> -------------------------------------
> 
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150911/20c17ac9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150911/20c17ac9/attachment-0001.sig>


More information about the Paraview-developers mailing list