[vtkusers] vtkOpenGLPolyDataMapper, custom shaders and line width property

Ken Martin ken.martin at kitware.com
Tue Apr 10 11:45:48 EDT 2018


Wide lines on some systems require a geometry shader. Maybe that is causing
the issue. VTK uses some shader name replacements to handle that there may,
or may not be a geometry shader in the mix which is how it handles wide
lines. Maybe take a look at the default shaders (vert,frag,geom) for both
the normal and wide line case in a running VTK and work from there.

On Wed, Feb 21, 2018 at 11:08 AM, Neher, Peter <p.neher at dkfz-heidelberg.de>
wrote:

> Hi everyone,
>
>
> I am trying to render a polydata in a QVTKOpenGLWidget with thick lines
> (actor property line width) in conjunction with my own shader code. Since
> we switched from QVTKWidget to QVTKOpenGLWidget this results in black lines
> (no color and/or lighting). Everything works fine if the line with is 1.0.
> For line width > 1.0, the shader seems to do nothing.
>
>
> Shader code is attached, as well as two images of depicting the issue.
>
>
> Any help is much appreciated!
>
>
> Peter
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180410/8479a87b/attachment.html>


More information about the vtkusers mailing list