Page 1 of 1

AmbientColor and DiffuseColor: main differences.

Posted: Wed Mar 22, 2006 5:53 pm
by oleo
Hi!
I can't understand the difference between DiffuseColor and AmbientColor. From API:

Code: Select all

SColor  AmbientColor 
  How much ambient light (a global light) is reflected by this material. 
 
SColor  DiffuseColor 
  How much diffuse light coming from a light source is reflected by this material. 
What's the difference between a "global light" and a "light source"?
Thanks for help,
Fabio.

Posted: Wed Mar 22, 2006 6:11 pm
by Baal Cadar
These two are basic terms in 3d dynamic lighting. Best to undestand the whole picture instead of a few keywords. Here is an introduction to the phong lighting model: http://www.delphi3d.net/articles/viewar ... =phong.htm among others it explains what ambient and diffuse mean and how they differ.

Posted: Wed Mar 22, 2006 7:21 pm
by oleo
Thanks very much for your answer! 8)