O'Reilly logo

3D Graphics with XNA Game Studio 4.0 by Sean James

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

Gaussian blur post processor

The next post processing effect that we will look at is blurring, specifically with what is called a "Gaussian" blur. A Gaussian blur is a blur which, instead of simply calculating a weighted average of a pixel and its neighbors, calculates a weighted average, weighing pixels based on their distance from the center pixel. The weights are calculated according to the Gaussian (or "normal") function:

Gaussian blur post processor

In normal use of this function, x is the distance from the mean of a data set, and σ is the standard deviation. In this case, x is a pixel's distance from the center pixel and σ is used as a parameter to determine how much ...

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