Sign in to follow this  
yuppies

Ambient and Diffuse?

Recommended Posts

yuppies    116
Whats an Ambient and Diffuse Light? whats the basic difference between ambient and diffuse when specifying material for D3D Device VS Specifying ambient and diffuse for Lighting?

Share this post


Link to post
Share on other sites
Supernat02    604
A material is how the object reflects light, whereas a D3DLIGHT9 object represents a light source. If the object only reflects red light, and the light source is only green, then the object will be completely dark. If the object reflects red (material is red) and the light source emits red, then the object will be lit to the fullness of the light hitting it. Ambient light is light all around you. In terms of a 3D object, it's the color and intensity that object is. Diffuse is the light that reflects off and on the surface's tiny crevices diffusing the light over the surface, based on distance, direction, and intensity.

Chris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this