[vtkusers] lights
Alessio Balzide
mail_di_ale at yahoo.it
Mon Oct 29 18:10:08 EDT 2007
yes, I do add the light to the renderer (sorry, I forgot to write that line in my previous email..) but it doesn't work..
Marc Cotran <marc at cotran.ca> ha scritto: Did you add the light to the renderer? Try myRenderer->AddLight(light1);
hth
Marc
Alessio Balzide wrote: 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
---------------------------------
_______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
---------------------------------
---------------------------------
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/fe809c9e/attachment.htm>
More information about the vtkusers
mailing list