POV-Ray : Newsgroups : povray.unofficial.patches : MCPov Depth of Field : Re: MCPov Depth of Field Server Time
26 Apr 2024 12:16:51 EDT (-0400)
  Re: MCPov Depth of Field  
From: Ive
Date: 12 May 2009 07:10:58
Message: <4a095942@news.povray.org>
clipka wrote:
> I'm experiencing problems with MCPov's depth of field.
> 
> I basically use the following code:
> 
> #local CameraLocation   = <80,31,-80>;
> #local CameraLookAt     = <0,9,-10>;
> #local CameraDirection  = CameraLookAt - CameraLocation;
> #local CameraAngle      = 25;
> #local AspectRatio      = image_width/image_height;
> 
> global_settings {
>   montecarlo {
>     mc_dof {
>       mc_focal_distance vlength(CameraDirection)
>       mc_lens_radius 0.5
>     }
>   }
> }
> 
> camera {
>   perspective
>   up        y
>   right     -x*AspectRatio
>   location  CameraLocation
>   look_at   CameraLookAt
>   angle     CameraAngle
> }
> 
> Strangely enough, the look_at point is clearly *not* in focus.
> 
> What's wrong?
> 

I guess nothing with your code. Coincidently I just stumbled above the 
same issue where in my scene the vlength calculation for 
mc_focal_distance did result in 67.77 but actually I had to use 90.5 - 
as I did find out after a lot of time consuming trial and error.

So *maybe* multiplying the real focal distance by a factor of ca. 1.35 
does work. But I'm currently too bored to verify this with MCPov.

-Ive


Post a reply to this message

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