[vtkusers] Set light Intensity

Lays Rodrigues laysrodriguessilva at gmail.com
Fri Dec 11 09:50:36 EST 2015


The tip of Amelie dont work. Someone have more tips? >.<
Att

2015-12-11 8:59 GMT-02:00 ameloush <theryame at gmail.com>:

> You could try this :
>
>   vtkSmartPointer<vtkLightCollection>  col =
> vtkSmartPointer<vtkLightCollection>::New();
>
>     col = ren->GetLights();
>         int i=col->GetNumberOfItems();  // to be sure there is at list one
> light
>     light = (vtkLight*)col->GetItemAsObject(0);
>     light->SetIntensity(10);
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>



-- 
__
*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/a603c871/attachment.html>


More information about the vtkusers mailing list