Work Log by Kevin Beason

Latest personal graphics developments

Fixed absorption of photons and rays

I fixed some simple bugs in the absorption of photons and along rays 6 months ago. The first image is from a debugging session for this. Second image shows a cognac glass with fixed absorption, and also  a text label in the bottom right corner that is automatically added now. The rather hideous texture is something I made in Gimp.

I abandoned my triangle-only architecture and moved to a more flexible one using inheritance. Of course I have Primitive::TriangleMesh, but here is a Primitive::Instance(Primitive::Sphere) which means its an instance of sphere, where the instancing’s matrix is used to store the ellipsoid transformation. I guess this must be the most boring instancing image ever created. Still, it’s an achievement!

Gallery links to full-size images thanks to this thread.

No comments

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

I’m still here, just lazy

I really need to stop nitpicking and get some stuff done. I have a few things I’ve been meaing to share. Soon!

No comments

Julia fractal

Backdate: 3/20/2008

Fixed quaterion julia intersector. Turns out all I needed to fix the precision problems I was having was to put a cap on the maximum distance the sphere tracing could advance. Estimates far from the intersection were prone to overflow and accuracy issues, so adding a maximum stepsize fixed this. I also added a rudimentary glossy reflection (the phong one in S12.2.3 of Shirley’s RRT 2nd ed.), a class of reflection long overdue for me. This image was path traced with monochromatic emissive sky and ground. Don’t have rendering time handy but it was a number of hours on a quad core Q6600 for the 2048×2048 original.

This was from 3 months ago, hence the “backdate”.

1 comment

Originality

DOH!

Not even one week and I’ve stumbled upon a rendering blog using the same theme.

This is probably not the last been-done-before thing from me… so stay tuned :P

No comments

First post

I created a blog for development. The main reason for switching to WordPress was to have a comment system, allowing feedback. The second reason is better organization. RSS seems like a nice feature to have, also.

Here’s my old work log.

No comments

« Previous Page