[vtkusers] Shaders for VTK

Noeska Smit noeska.smit at gmail.com
Wed Dec 6 12:06:04 EST 2017


Dear Andrea,


PhD Andrea Vitali wrote
> Which is the best way to use shaders in VTK?
> 
> I need to add several vertex attributes to the existent ones. I'm using
> vtkOpenGLPolyDataMapper as the starting point, but I'm not able to
> understand how to use shaders as usually done by classic OpenGL. 
> 
> Are there any examples of tutorials about it?

I wrote a blog post a while ago on how to do it with the 'old' OpenGL
backend: 
http://noeskasmit.com/shaders-vtk-cel-shaded-skull-example-100-lines-python-code/
<http://noeskasmit.com/shaders-vtk-cel-shaded-skull-example-100-lines-python-code/> 
.

Hope this helps!

Kind regards,
Noeska Smit 



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list