View Full Version : what kind of processing goes into a shot like this
10-31-2005, 03:47 PM
i'm asking about the focus effect on the far guy's face. i don't want to know how to do focus or dof effects in general, but just how that exact processing on that face is done. that fractal transform effect or whatever it is.
10-31-2005, 10:42 PM
That kind of DOF effect is usually done by applying a convolution filter to the rendered image. Applying this filter is a matter of using multiple texture taps in a shader using the original image as a texture and displacing the filter probes based on depth information also sent as a texture to the shader, just as one example of how it can be done on modern hardware. It's actually pretty fast on modern hardware, the locality of the convolution probes which are simultaneously applied in a single pass and the efficient use of texture cache means it's pretty cheap thing to do, and of course the filter probe count can be adjusted for speed if necessary.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.