[vtkusers] VtkLight example

Bill Lorensen bill.lorensen at gmail.com
Sat Jun 25 12:14:49 EDT 2016


On the first Render(), if there are no lights specified, vtk will
create a HeadLight (follows the camera). When you add a light before
the first render, the head light will not be created. So in the
example, if you add a light before the first render, only that light
will be used by the renderer. Try it.

Also set the background for the renderer and you will see plane.
  renderer->SetBackground(.4, .5, .6);


HTH,

Bill

On Sat, Jun 25, 2016 at 11:11 AM, Richard Frank <rickfrank at me.com> wrote:
> The example here
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Lighting/Light
>
> Has a comment that states the light must be added after the first render().
>
> What is the reason for this?
>
> Thanks
>
> Rick
>
> Sent from my iPad
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list