Skip to content

Implement depth of field #31

@wahn

Description

@wahn

Chapter 6.2.3 of the PBRT book deals with The Thin Lens Model and Depth of Field. An example scene showing the effect:

yeahright

Projective cameras take two extra parameters for depth of field: one sets the size of the lens aperture, and the other sets the focal distance:

> rg -A 1 -B 2 lensradius assets/scenes/yeahright/
assets/scenes/yeahright/yeahright.pbrt
9-Camera "perspective" 
10-        "float fov" [ 35 ] 
11:        "float lensradius" [ 0.5 ] 
12-        "float focaldistance" [ 50 ] 

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions