POV-Ray : Newsgroups : povray.binaries.scene-files : 35mm Camera Macros : Re: 35mm Camera Macros Server Time
6 May 2024 15:37:16 EDT (-0400)
  Re: 35mm Camera Macros  
From: Mike Horvath
Date: 19 Jul 2018 20:34:18
Message: <5b512e0a$1@news.povray.org>
On 6/26/2018 11:06 AM, Stephen wrote:
> Bump post
> 
> On 16/03/2009 02:16, Edouard wrote:
>> Hi all.
>>
>> Here is version 1.0 of my camera macros.
>>
>> 35mm Camera Macros Version 1.0
>> ==============================
>>
>> The 35mm Camera macros were created to allow POV users to place
>> cameras in their scenes with the properties of a standard 35mm film
>> (or full frame digital) camera.
>>
>> The user can specify the lens (e.g. 50mm or 300mm) and the focal
>> ratio (e.g. f/1.4 or f/8), and the macros set the field of view and
>> amount of focal blur to approximate the effect seen in the real world.
>>
>> The user can specify the focal plane in several ways:





>>
>> Multiple options can be set, such as the standard samples, variance and
>> confidence of POVs focal blur, as well as other options like the
>> circle of confusion for the hyperfocal calculations, the autofocus
>> samples and tightness, etc.
>>
>> There is also a "stochastic" mode that allows the user to render
>> multiple frames (via the animation clock settings). The passes can
>> then be composited together later to produce an image with focal
>> blur. This mode turns POV's built-in focal blur off completely.
>>
>> There are also two debugging variables that can be set to show
>> the focal plane, and the autofocus samples respectively.
>>
>> Finally these macros output some detailed information about
>> the cameras being use.
>>
>>
>>
>> Camera Macros
>> -------------
>>
>> Camera35mm( cam_pos, look_pos, focal_length, fstop )
>>


>>




>>
>>
>> Camera35mm_Point( cam_pos, look_pos, focal_pos, focal_length, fstop )
>>


>>




>>
>> Camera35mm_Distance( cam_pos, look_pos, focal_distance, focal_length, 
>> fstop )
>>


>>




>>
>> Camera35mm_Hyperfocal( cam_pos, look_pos, focal_length, fstop )
>>



>>





>>
>>
>> Camera35mm_Autofocus( cam_pos, look_pos, focal_length, fstop, obj )
>>


>>


>>



>>






>>
>>
>> Camera35mm_NoBlur( cam_pos, look_pos, focal_length, fstop )
>>


>>
>>
>>
>> Camera Modes
>> ------------
>>
>> By deault, the camera macros all use POV's built-in focal blur, but
>> the mode can be changed to use a stochastic rendering technique
>> that renders multiple images (via the animation clock settings)
>> that can later be composited together to give a scene with focal
>> blur.
>>
>> Camera35mm_SetStochasticMode()
>>


>>


>>
>>
>> Camera35mm_SetPovFocalBlurMode()
>>


>>
>>
>>
>> Camera Options
>> --------------
>>
>> The following options may be set by the user
>>

>>


>>
>>

>>


>>
>>

>>


>>
>>

>>

>>
>>

>>


>>

>>


>>
>>

>>


>>
>>

>>


>>

>>
>>

>>




>>

>>


>>
>>
>>
>> Debugging Variables
>> -------------------
>>
>> There are two variables that can be set to debug a scene:
>>
>> Camera35mm_DebugFocalPlane
>>

>>
>>
>> Camera35mm_DebugAutofocus
>>


>>


>>
>>
>>
>> Example Output
>> --------------
>>
>> Autofocus Debug Output:



>>
>> 35mm Camera Debug Output:




>>



>>






>>
>> Focal Blur Debug Output:



>>
>>
> 
> 


Could the author please upload the macros to the Object Collection?


Mike


Post a reply to this message

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