Re: "Hidden" ambient light??

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Tue, 19 Nov 1996 12:41:11 -0500 (EST)


Elizabeth Smith writes:
> Could the problem be with the ambient color of the lighting model?

yep...

> Are you setting it explicitly or taking the default?

the default....Doh!! (I knew it had to be something obvious).

> The component is equivalent to the GL_LIGHT_MODEL_AMBIENT
> values. (See man glLightModel)

Thats what I was looking for! Setting it to zero solves the problem
(correctly this time).

> Also remember that with OpenGL, lights have a specular component
> as well as ambient and diffuse.

Yeah, but the specular seems to behave itself with respect to attenuation.

Thanks all (esp, Elizabeth Smith and Ran Yakir),
scott

-- 
  Scott McMillan  |       HT Medical, Inc.      | Developing virtual environ-
   scott++at++ht.com   |      http://www.ht.com      | ment medical and surgical
 Ph: 301-984-3706 | 6001 Montrose Rd., Ste. 902 | simulations and surgery
Fax: 301-984-2104 |     Rockville, MD 20852     | simulation creation tools.

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:58 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.