--- ray/doc/man/man1/pdfblur.1 2003/12/09 15:59:06 1.2 +++ ray/doc/man/man1/pdfblur.1 2008/11/10 19:08:17 1.7 @@ -1,11 +1,10 @@ -.\" RCSid "$Id: pdfblur.1,v 1.2 2003/12/09 15:59:06 greg Exp $" +.\" RCSid "$Id: pdfblur.1,v 1.7 2008/11/10 19:08:17 greg Exp $" .TH PDFBLUR 1 1/24/96 RADIANCE .SH NAME pdfblur - generate views for depth-of-field blurring .SH SYNOPSIS .B pdfblur .B aperture -.B distance .B nsamp .B viewfile .SH DESCRIPTION @@ -14,11 +13,11 @@ takes the given .I viewfile and computes .I nsamp -views based on a focus distance of -.I distance -and an aperture diameter of +views based on an aperture diameter of .I aperture -(both in world coordinate units). +(in world coordinate units) and a focal distance equal to the length of the +.I \-vd +view direction vector. When rendered and averaged together, these views will result in a picture with the specified depth of field. Either @@ -87,29 +86,52 @@ We have found a .I nsamp setting somewhere between 5 and 10 to be adequate for most images. Relatively larger values are appropriate for larger aperatures. +.PP +The +.I \-pd +option of +.I rpict +may be used instead or in combination with or instead of +.I pdfblur +to blur depth-of-field. +If used in combination, +it is best to set the +.I \-pd +option to the overall +.I aperture +divided by +.I nsamp +to minimize ghosting in the output. +.PP +To simulate a particular camera's aperture, divide the focal length of +the lens by the f-number, then convert to the corresponding +world coordinate units. +For example, if you wish to simulate a 50mm lens at f/2.0 in +a scene modeled in meters, then you divide 50mm by 2.0 to get 25mm, +which corresponds to an effective aperture of 0.025 meters. .SH EXAMPLES To use .I pinterp to simulate an aperture of 0.5 inches on a lens focused at a distance of 57 inches: .IP "" .2i -rpict -vf myview -x 640 -y 480 -z orig.zbf scene.oct > orig.pic +rpict \-vf myview \-x 640 \-y 480 \-z orig.zbf scene.oct > orig.hdr .br -pdfblur 0.5 57 8 orig.pic | pinterp -B -vf orig.pic -x 640 -y 480 -orig.pic orig.zbf > blurry.pic +pdfblur 0.5 57 8 orig.hdr | pinterp \-B \-vf orig.hdr \-x 640 \-y 480 +orig.hdr orig.zbf > blurry.hdr .PP To use .I rpict exclusively to do the same: .IP "" .2i -pdfblur .5 57 5 myview | rpict -S 1 -vf myview -x 640 -y 480 --o view%d.pic scene.oct +pdfblur .5 57 5 myview | rpict \-S 1 \-vf myview \-x 640 \-y 480 +\-o view%d.hdr scene.oct .br -pcomb -s .2 view1.pic -s .2 view2.pic -s .2 view3.pic -s .2 -view4.pic -s .2 view5.pic > blurry.pic +pcomb \-s .2 view1.hdr \-s .2 view2.hdr \-s .2 view3.hdr \-s .2 +view4.hdr \-s .2 view5.hdr > blurry.hdr .SH AUTHOR Greg Ward .SH BUGS This program really only works with perspective views. .SH "SEE ALSO" -pcomb(1), pinterp(1), pmblur(1), rcalc(1), rpict(1), vwright(1) +pcomb(1), pinterp(1), pmblur(1), pmdblur(1), rcalc(1), rpict(1), vwright(1)