[vtkusers] Set light Intensity

Lays Rodrigues laysrodriguessilva at gmail.com
Thu Dec 10 21:38:47 EST 2015


Hi,
I would like to know, how to set lighting Intensity on a scene.
I already look at those examples:
http://www.vtk.org/Wiki/VTK/Examples/Cxx#Lighting

The first example: I dont need a new shadow.
The second example: I dont think that i need a new light to contrabalance
the first light.
The third example: I tried but the error: Is not a spotlight happens.

And, i'm working with Vtk + Qt, and i dont find any solutions on the web.

I tried this:

 auto  col = vtkSmartPointer<vtkLightCollection>::New();

    col = renderer->GetLights();

    light = col->GetNextItem();

    light->SetIntensity(10);


But the program crashed.
What do i do?
Please, help me.
-- 
__
*Lays Rodrigues*
*Front-End Developer at Br-Print3D Project(KDE)*
*Computer Science Student at UFF/PURO*
Organizadora da Semana da Computação UFF-PURO
www.facebook.com/semanacomputacaopuro
www.facebook.com/brprint3d
www.brprint3d.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151211/6b81f218/attachment.html>


More information about the vtkusers mailing list