5 |
|
.SH SYNOPSIS |
6 |
|
.B pdfblur |
7 |
|
.B aperture |
8 |
– |
.B distance |
8 |
|
.B nsamp |
9 |
|
.B viewfile |
10 |
|
.SH DESCRIPTION |
13 |
|
.I viewfile |
14 |
|
and computes |
15 |
|
.I nsamp |
16 |
< |
views based on a focus distance of |
18 |
< |
.I distance |
19 |
< |
and an aperture diameter of |
16 |
> |
views based on an aperture diameter of |
17 |
|
.I aperture |
18 |
< |
(both in world coordinate units). |
18 |
> |
(in world coordinate units) and a focal distance equal to the length of the |
19 |
> |
.I \-vd |
20 |
> |
view direction vector. |
21 |
|
When rendered and averaged together, these views will result in |
22 |
|
a picture with the specified depth of field. |
23 |
|
Either |
86 |
|
.I nsamp |
87 |
|
setting somewhere between 5 and 10 to be adequate for most images. |
88 |
|
Relatively larger values are appropriate for larger aperatures. |
89 |
+ |
.PP |
90 |
+ |
The |
91 |
+ |
.I \-pd |
92 |
+ |
option of |
93 |
+ |
.I rpict |
94 |
+ |
may be used instead or in combination with or instead of |
95 |
+ |
.I pdfblur |
96 |
+ |
to blur depth-of-field. |
97 |
+ |
If used in combination, |
98 |
+ |
it is best to set the |
99 |
+ |
.I \-pd |
100 |
+ |
option to the overall |
101 |
+ |
.I aperture |
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), rcalc(1), rpict(1), vwright(1) |
137 |
> |
pcomb(1), pinterp(1), pmblur(1), pmblur2(1), |
138 |
> |
pmdblur(1), rcalc(1), rpict(1), vwright(1) |