[vtkusers] vtkOpenGLPolyDataMapper, custom shaders and line width property

Neher, Peter p.neher at Dkfz-Heidelberg.de
Wed Feb 21 11:08:02 EST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180221/3139f647/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shader.txt
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180221/3139f647/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: normal_lines.png
Type: image/png
Size: 146371 bytes
Desc: normal_lines.png
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180221/3139f647/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thick_lines.png
Type: image/png
Size: 7808 bytes
Desc: thick_lines.png
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180221/3139f647/attachment-0003.png>


More information about the vtkusers mailing list