Advertisement Jump to content

Archived

This topic is now archived and is closed to further replies.

Daaark

Light source question

This topic is 5337 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

What effect does the ambient and specular properties from a light source have on a scene. I understand that in a scene with global ambient light, all surfaces will receive that lighting. And each surface can have a material that specifies if it has any specular highlights. So what does ambient light from a light source do? I''m guessing that all surfaces that are in the range to be affected by the light source will receive the ambient lighting regarldess of which direction they are facing? Same with specular. Will a light with a specular value create highlights on the surfaces it hits? I thought that was the job of the surface''s material.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
**To The Top**

Share this post


Link to post
Share on other sites
quote:
Original post by Vampyre_Dark
So what does ambient light from a light source do? I''m guessing that all surfaces that are in the range to be affected by the light source will receive the ambient lighting regarldess of which direction they are facing?


Yes, influenced by the light attenuation and possibly spotlight cutoff angles.

quote:
Original post by Vampyre_Dark
Same with specular. Will a light with a specular value create highlights on the surfaces it hits? I thought that was the job of the surface''s material.


The surface material describes how a surface reacts to specular reflection. The light for the specular highlight has to come from somewhere: it''s both a function of the material properties, and of the light properties (such as specular colour and intensity). You can also get multiple highlights on a single object, if it is within range of multiple light sources.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!