[vtkusers] Use scene lightning as in VTK in own OpenGL window without VTK

David Doria daviddoria at gmail.com
Wed Feb 8 21:11:10 EST 2012


On Wed, Feb 8, 2012 at 9:00 PM, mailagentrus <mailagentrus at mail.ru> wrote:
> Hello! How I can setup the scene lightning in my own OpenGL window (I use it
> to see the VTK model in Delphi + openGL libs) as in VTK render window or
> ParaView?

You can set some "global" scene lighting properties using something like this:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/NoShading

I've never done this, but for spotlights I'd probably start by looking at
http://www.vtk.org/doc/nightly/html/classvtkLight.html

Unfortunately there are no examples of how to use this class - maybe
someone will write one for you.

David



More information about the vtkusers mailing list