O'Reilly logo

Ray Tracing from the Ground Up by Kevin Suffern

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5

Sampling Techniques

image

Image courtesy of Duy Tran

Objectives

By the end of this chapter you should:

  • understand why sampling is important in ray tracing;
  • understand how several common sampling techniques are implemented;
  • know the characteristics of good sampling techniques;
  • have at your disposal a flexible sampling architecture.

In the previous chapter, I hard-wired a few simple sampling patterns into the World::render_scene function to perform antialiasing. There is, however, a lot more to sampling than antialiasing, because all of ray tracing is essentially an exercise in sampling and reconstruction. It’s not only pixels that have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required