Range (max = min + range). Isolate specific bounces!
๐ Auto-focus & Visualization
The default aperture is small, keeping most of the scene in focus.
Lower the F-stop to introduce depth-of-field blur and reduce the in-focus range.
Click any object in the scene to trigger autofocus.
Green = traditional planar focus, Red = Scheimpflug (tilt-shift). Tolerance = pixels of acceptable blur.
โ๏ธ Volume (Particilating Media)
Required for environment fog and volumetric spheres. Only preliminary volumetric support is included, due to the high computational cost of real-time volumetric path tracing.
Based on Ray Tracing Gems II - Tilt-Shift Rendering Using a Thin Lens Model
Proper Scheimpflug implementation from RTG II Ch.31. Define focal plane by 3 points. When the intended focal plane is about perpendicular to the image plane, we see expected artifacts, due to the geometry setup causing intersection extremely far.
Shows: RGB spheres, axes, and focal plane triangle. Hover to highlight, click and drag to manipulate.
How it works:
โข The gizmo (triangle) defines the focal plane in 3D space.
โข Hold on RGB spheres to rotate the focal plane.
โข Hold LMB on the center of the triangle to translate it in XY-plane (parallel to the image plane);
โข Hold RMB on the center of the triangle to translate it in XZ-plane (perpendicular to the image plane);
โข First increase the aperture size (smaller F-stop), then play with the gizmo and see how the depth of field changes in action.
โข The artifact you see when the focal plane is perpendicular to the image plane: this is expected behavior, since this case involves intersection at infinitely far.
๐ CHROMATIC ABERRATION & EFFECTS โญ
Wavelength-dependent IOR creates rainbow dispersion through glass.