POV-Ray : Newsgroups : povray.unofficial.patches : MCPov Depth of Field : MCPov Depth of Field Server Time
26 Sep 2021 11:03:58 EDT (-0400)
  MCPov Depth of Field  
From: clipka
Date: 11 May 2009 15:05:00
Message: <web.4a0875d49cf7dfcd2c873ec30@news.povray.org>
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?


Post a reply to this message

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