POV-Ray : Newsgroups : povray.advanced-users : 35mm Camera Emulation - Need Advice : 35mm Camera Emulation - Need Advice Server Time
29 Jul 2024 10:29:27 EDT (-0400)
  35mm Camera Emulation - Need Advice  
From: Glen Berry
Date: 22 May 2002 16:43:08
Message: <Y=jrPEh5upqZ+VuOysTVd5zUAMGp@4ax.com>
Let me offer some information on what I'm trying to do:

I want to know the specifics of focal_blur operation, to better
emulate images from a 35mm camera. Once I can emulate the 35mm camera,
I should be able to blend a photograph with a POV rendering, and have
the perspectives and general appearance of the two images match each
other. 

Well, I should mention that I'm not trying to account for any lens
abberations yet. For now, I'm just trying to match a POV camera to an
"idealized" 35mm camera. So far, I think I've got the angle of view
and aspect ratio concepts figured out. My next goal is to try and
match depth of field settings between the two systems.


So far, I have the following camera defined:

///////////////////////////////////////////////////////////

#declare CPos = <0,0,0>;           // Camera Position
#declare SPos = <-3,7,13>;         // Subject Position
#declare SD = vlength(CPos,SPos);  // Subject Distance
#declare FL = 50;                  // Focal Length, in mm
#declare Ix = 36;                  // Film Width, in mm
#declare Iy = 24;                  // Film Height, in mm
#declare Mag = FL/(SD-(FL*2));     // Magnification

camera { perspective
              right      x*Ix / FL*(Mag+1)
              up         y*Iy / FL*(Mag+1)
              location CPos
              look_at  SPos

           #if(Use_Blur=1)
              aperture     5
              blur_samples 32
              focal_point  SPos
              confidence   0.99
              variance     1/255
           #end
       }

///////////////////////////////////////////////////////////

First, can someone confirm that the camera "location" value is
actually jittered, while ALL other dimensions and parameters are held
constant, to produce the focal_blur? If the jittering temporarily
modifies the values of any of the other parameters, please let me know
which ones and how.

Second, I assume that the "aperture" value DIRECTLY specifies the
magnitude of the RADIUS (not diameter) of the jittering, as measured
in POV-Units. Is this correct?

Third, is the array of jittered camera locations arranged in a square
grid, or is it arranged in an approximate circular pattern? I've been
assuming square, but circular would better approximate a typical lens.

Finally, if anyone spots any errors in the 35mm camera emulation I
have listed above, please let me know. I *think* what I have so far is
a fairly accurate emulation, but I might also have overlooked some
details. Please let me know if I have.



Later,
Glen

7no### [at] ezwvcom     (Remove the numeral "7")


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.