AmbientColor and DiffuseColor: main differences.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
oleo
Posts: 27
Joined: Fri Dec 16, 2005 9:50 am

AmbientColor and DiffuseColor: main differences.

Post 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.
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post 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.
oleo
Posts: 27
Joined: Fri Dec 16, 2005 9:50 am

Post by oleo »

Thanks very much for your answer! 8)
Post Reply