[vtkusers] Problem about lighting

Lisa S. Avila lisa.avila at kitware.com
Thu Feb 22 13:30:41 EST 2001


Hello Miyashita,

It is possible you have a buggy OpenGL driver. In general you should set 
Ambient = 1.0 and Diffuse and Specular = 0.0 to effectively turn off 
lighting for an object. The color of the object will then be based on the 
Color or scalar values passed through a lookup table.

Lisa



At 08:13 PM 2/21/2001, Miyashita Yukihiro wrote:
>Hello All.
>
>I have a problem as below.
>Any advice is appreciated very much.
>
>I made a polygon data using vtkPolyDataWriter and
>read the data again and show it.
>
>The result on a PC is different from the result
>of another PCs.
>
>It is shown in the attached GIF.
>I want the left result.
>
>I thik it is caused by my usage of lighting.
>I want no lighting is set.
>
>I tried the following ways, but no change happened.
>     SetInterpolationToFlat
>     SetInterpolationToGouraud
>     SetInterpolationToPhong
>     SetColor(0.0000,  0.0000,  0.0000)
>     SetDiffuse(0.0)
>     SetSpecular(0.0)
>     SetSpecularPower(0)
>
>
>
>Best Regards,
>
>Yukihiro Miyashita
>
>**************************************************
>   Yukihiro Miyashita
>      E-mail:miyasita at sesys.co.jp
>      TEL: +81-6-6258-5531   FAX: +81-6-6258-5539
>   Software Products Division
>   Sumitomo Electric Systems Co., Ltd.  (Japan)
>**************************************************





More information about the vtkusers mailing list