[vtkusers] Re: two-sided rendering of wireframe?

Luca Pallozzi Lavorante lplavorante at gmail.com
Tue May 8 12:00:42 EDT 2007


Hi everybody,
I have found a suggested solution in a previous  posting:

>actor->GetProperty()->SetAmbient(1.0);
>actor->GetProperty()->SetDiffuse(0.0);
>actor->GetProperty()->SetSpecular(0.0);

>hope that helps
>david michell


It works, although the wireframe object gets "insensible" to light position,
probably because of the diffuse component.

 Thanks

   Luca

On 5/8/07, Luca Pallozzi Lavorante <lplavorante at gmail.com> wrote:
>
> Hi everybody,
>
> When I try to visualize a surface in wireframe mode, only one side gets
> rendered with the proper color, while the other one is black. This doesn´t
> happen when the object is rendered as a surface. I have tried enabling
> Two-Sided lighting in the renderer, but  with no results.
> Can somebody  help me  understand what  I am missing?
>
> Thank you very much
>
>             Luca
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070508/fc410507/attachment.htm>


More information about the vtkusers mailing list