There is no lighting in VTK

I would like to simply display polygons in the specified color without shading, is this possible? I tried to install each of the surrounding, mirror, diffuse, etc. 1, and the rest - 0 with no luck.

+4
source share
1 answer

To turn off shading, you really need to turn off lightning.

To do this, point actor.GetProperty().LightingOff()to the appropriate vtkActor. See http://www.vtk.org/doc/nightly/html/classvtkProperty.html

Based on vtk pyramid, the effect can be seen in the following example

enter image description here

+10
source

Source: https://habr.com/ru/post/1530044/


All Articles