[vtkusers] disabling lights
Fabio De Pascalis
fabio.depascalis at brindisi.enea.it
Mon Dec 15 10:22:52 EST 2003
Hi,all
I'm new to vtk...and i'm trying to develop the first pipelines.
Is it possible to disable the default lights in a RenderWindow. I'd like have only a ambient light...
I'm trying with this:
lc=renderer->GetLights();
vtkLight *light;
renWin->Render();
int ln=lc->GetNumberOfItems();
std::cout<<" n° lights: "<<ln; output=1
for(i=0;i<ln;i++)
{
light=(vtkLight*)lc->GetItemAsObject(i);
light->SwitchOff();
}
but don't change anything in my scene
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031215/a4ff89cd/attachment.htm>
More information about the vtkusers
mailing list