TSBK03 Lecture 3 demos

Lecture 3 is the shadow generation lecture. These are not quite all demos, but the most important ones.


3.1 Simple shadow


The easiest, and least flexible, way to make a shadow is just to flatten the shadowing object.


Skärmavbild 2017-09-18 kl. 17.48.33


download


3.2 Shadowy


The name refers to it being closely related to Mirrory.


Planar projected shadows using stencil buffer to render correctly are nicer and more flexible than the simple shadow above, but still limited to flat surfaces which only makes us halfway there.


Skärmavbild 2017-09-18 kl. 17.48.55


download


3.3 Shadow map


Shadow mapping is the most popular way to render real-time shadows… so why doesn’t this look good? Because it is lacks filtering to avoid the noise in steep angles!


Skärmavbild 2017-09-18 kl. 17.49.13

download


3.5 Shadow map PCF


Shadow map with some PCF filtering. Now it is much better! The low polygon count of the sphere is a bit disturbing but the edge noise is gone!


Skärmavbild 2017-09-18 kl. 17.49.44

download


This page is maintained by Ingemar Ragnemalm.