| 102 |
|
divided by |
| 103 |
|
.I nsamp |
| 104 |
|
to minimize ghosting in the output. |
| 105 |
+ |
.PP |
| 106 |
+ |
To simulate a particular camera's aperture, divide the focal length of |
| 107 |
+ |
the lens by the f-number, then convert to the corresponding |
| 108 |
+ |
world coordinate units. |
| 109 |
+ |
For example, if you wish to simulate a 50mm lens at f/2.0 in |
| 110 |
+ |
a scene modeled in meters, then you divide 50mm by 2.0 to get 25mm, |
| 111 |
+ |
which corresponds to an effective aperture of 0.025 meters. |
| 112 |
|
.SH EXAMPLES |
| 113 |
|
To use |
| 114 |
|
.I pinterp |
| 115 |
|
to simulate an aperture of 0.5 inches on a lens focused at a |
| 116 |
|
distance of 57 inches: |
| 117 |
|
.IP "" .2i |
| 118 |
< |
rpict -vf myview -x 640 -y 480 -z orig.zbf scene.oct > orig.pic |
| 118 |
> |
rpict \-vf myview \-x 640 \-y 480 \-z orig.zbf scene.oct > orig.hdr |
| 119 |
|
.br |
| 120 |
< |
pdfblur 0.5 57 8 orig.pic | pinterp -B -vf orig.pic -x 640 -y 480 |
| 121 |
< |
orig.pic orig.zbf > blurry.pic |
| 120 |
> |
pdfblur 0.5 57 8 orig.hdr | pinterp \-B \-vf orig.hdr \-x 640 \-y 480 |
| 121 |
> |
orig.hdr orig.zbf > blurry.hdr |
| 122 |
|
.PP |
| 123 |
|
To use |
| 124 |
|
.I rpict |
| 125 |
|
exclusively to do the same: |
| 126 |
|
.IP "" .2i |
| 127 |
< |
pdfblur .5 57 5 myview | rpict -S 1 -vf myview -x 640 -y 480 |
| 128 |
< |
-o view%d.pic scene.oct |
| 127 |
> |
pdfblur .5 57 5 myview | rpict \-S 1 \-vf myview \-x 640 \-y 480 |
| 128 |
> |
\-o view%d.hdr scene.oct |
| 129 |
|
.br |
| 130 |
< |
pcomb -s .2 view1.pic -s .2 view2.pic -s .2 view3.pic -s .2 |
| 131 |
< |
view4.pic -s .2 view5.pic > blurry.pic |
| 130 |
> |
pcomb \-s .2 view1.hdr \-s .2 view2.hdr \-s .2 view3.hdr \-s .2 |
| 131 |
> |
view4.hdr \-s .2 view5.hdr > blurry.hdr |
| 132 |
|
.SH AUTHOR |
| 133 |
|
Greg Ward |
| 134 |
|
.SH BUGS |
| 135 |
|
This program really only works with perspective views. |
| 136 |
|
.SH "SEE ALSO" |
| 137 |
< |
pcomb(1), pinterp(1), pmblur(1), pmdblur(1), rcalc(1), rpict(1), vwright(1) |
| 137 |
> |
pcomb(1), pinterp(1), pmblur(1), pmblur2(1), |
| 138 |
> |
pmdblur(1), rcalc(1), rpict(1), vwright(1) |