FW: Re: [vtkusers] Problem about lighting

Miyashita Yukihiro miyasita at sesys.co.jp
Wed Feb 28 02:18:29 EST 2001


Hello Lisa,

I sent the following mail, but it seems that it wasn't
posted to this ML.

So I send again.

------- Forwarded Message
From: Miyashita Yukihiro <miyasita at sesys.co.jp>
To: lisa.avila at kitware.com
Cc: vtkusers at public.kitware.com
Subject: Re: [vtkusers] Problem about lighting
Date: Tue, 27 Feb 2001 12:53:03 +0900

Hello Lisa,

Thank you for your good advice.

I have three PCs.
One is for development.  The others are for test.

On the PC for development, Ambient value causes no change.
According as your advice, I set Ambient = 1.0 and tested
on the two PCs for test, and could turn the light off.

I can't find the reason why Ambient value causes no change
on the PC for development.

However, I could understand I must use Ambient value.

> 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)
**************************************************

------- End of Forwarded Message


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