Work Log by Kevin Beason

Latest personal graphics developments

Embargo is over

I’ve blockaded updating my log to wait for another project to complete for too long. So here is something unrelated.

Photographic DOF

Photographic DOF

Previously I had limited support for Depth of Field (DOF) whose only input was the angle subtended by the lens relative to the center of the focal plane. In March 2008 I added a conventional photography-based “f-stop” parameter system (f/2.8, f/5.6, etc.). The reason for this was to more accurately simulate what a real 35mm camera would do for a real world focal distance. Now the focal length of the lens depends on the focus distance and the lens size on this f-stop parameter. As is my usual fashion I meticulously recreated someone else’s image, in this case Figure 14.2 in Shirley’s Realistic Ray Tracing 1st Ed.

That’s all well and fine. However, combining this efficiently with Keller’s “Strictly Deterministic Sampling” and path tracing forced me to implement deterministic ray trees with arbitrary depth. This was a bloody nightmare of brainstorming and code refactoring (which is still a mess to this day). Uhg. I think I spent like a week on that. But the pay off is huge in variance reduction when path tracing with a single explicit light sample and a large area light, thanks to maintaining sample stratification from path-to-path within a pixel.

The basic problem I was having was how to branch the ray tree arbitrarily but be on the same branch in a completely different path. The basic solution was to increment the ray tree dimension (d=d+1) each time I might branch, even if I don’t take samples from that branch. But don’t quote me on that… it’s in the Pane source. Which I will post sometime.

DOF w/Bokeh effect and chromatic aperture

Taking inspiration from SunFlow and Toshiya Hachisuka’s “Kitchen with Programmer’s Art”, I added simple n-sided-polygon Bokeh effect and hacked-up chromatic aberration to produce the above image (click for full size). You can see the lens shape and aberration clearly from the bright dot I added in the scene under “.25m”. Together these features add noise and a color shift so they are disabled (commented out).

More to come.

No comments

No comments yet. Be the first.

Leave a reply