Jump to content
  • Advertisement
Sign in to follow this  
jagguy

lighting equations

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

in games you have diffuse, ambient,specular lighting. each of these has a mathematical equation eg lambert's law and phong's law etc how exact are the formulas in working out the exact amount of lighting in the real world. I think specualr and ambient would be impossible to calculate exactly.

Share this post


Link to post
Share on other sites
Advertisement
They are not exact at all, but only approximations of the real world. Hacks, if you will. :)

For more "exact approximations" (amusingly paradoxical expression eh?), you might want to have a look at global illumination algorithms.

Share this post


Link to post
Share on other sites
They say the most accurate clock is a broken one. Because a broken clock is exactly precise, with no error whatsoever, once or twice a day; but, a working clock cannot track time with no error and so runs too fast or lags slightly, only to catch up and be exact for one moment every....century or so.

In a sense, the Lambert and Phong lighting models are like that broken clock. For some material types at certain view angles (view angles that are instantly reproducable in a 3D sim), they probably produce exactly the precisely correct answer (well, there would be floating point roundoff error at least in a numerical simulation).

Other than that, you may want to study BRDF theory, to learn about how the various approximations relate to real-world materials (BRDF being something that can be measured using sensors for real-world materials).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!