[vtkusers] lights

Alessio Balzide mail_di_ale at yahoo.it
Mon Oct 29 12:17:16 EDT 2007


hallo everybody!
I've set a light in my program, in this way:
  vtkLight *light1 = vtkLight::New();
  light1->SetPosition(x,y,z);
  light1->SetColor(1.0,1.0,1.0);

but it doesn't illuminate the scene.. (I want to illuminate an actor representing an isosurface, but it always looks black :(  )

what could be wrong?
should I set any other paramater?
or may be the face-culling is off? (how can I correct it?)
or what else?

thanks a lot
Ale

       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071029/b6163328/attachment.htm>


More information about the vtkusers mailing list