2
\$\begingroup\$

Most games come up with their lighting implementation and their shadow implementation. Due to deferred shading, we are able to simulate lights independent from the scene geometry. But realistic shadows are still a big challenge in game development. They would have to overlap with each other, have soft edges and are calculated in real time to support dynamic scenes.

There is a presentation where the author, Chun-Fu Chao, mentions this about lights and shadows in game development.

1000 lights without shadow is easy, but 100 lights with shadow is impossible, now.

I wonder where is the problem, at all? I understand that shadow maps and shadow volumes have their problems, though they are very popular. From my understanding, shadows are just the absence of light. So if we use a very dark ambient color, and use deferred shading for handling all light source with easy, wouldn't that result in shadows for free?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Try to implement shadows and you will see where is the problem. \$\endgroup\$ Mar 24, 2013 at 11:31
  • \$\begingroup\$ All realtime lighting, and most render farm lighting, is a huge hack to make things look "good enough." Learn to love that fact, like @IvanKuckir suggests, and you'll be happier =) \$\endgroup\$ Mar 24, 2013 at 15:53

1 Answer 1

7
\$\begingroup\$

The problem is that "cheap" lighting is a calculation based solely on the light source and the object it is applied to, any possible intermediate object that would block the light is not a part of the calculation.

Therefore a lot of games use such lights coupled with some shadow system.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .