Jump to content
  • Advertisement
Sign in to follow this  
yuppies

Ambient and Diffuse?

This topic is 4970 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!