POV-Ray : Newsgroups : povray.binaries.images : Focal blur incorrect : Re: Focal blur incorrect Server Time
29 May 2024 01:49:05 EDT (-0400)
  Re: Focal blur incorrect  
From: Alain
Date: 9 Jul 2015 19:00:13
Message: <559efcfd$1@news.povray.org>

> By the looks of the code, I assume this is about the Blender to POV exporter, so
> unfortunately I can't comment much on the plugin code itself. But from my point
> of view as a person who's got used to tuning all scene settings by hand solely
> in POV, I can see quite wild numbers inside the camera syntax. It's quite
> difficult to figure out what actually points and where. But I guess this is at
> least partly because of the way the plugin works.
>
> However, what concerns me most is the actual focal_point
> <1.13652,4.92175e-08,1.12596> that seems to be way off. I don't know what kind
> of focal blur possibilities there are in Blender, but in POV you can imagine the
> focal_point as an invisible "plane" rotated as <90, 0, 0> in relation to the
> camera direction. Everything along that plane in x and y axis are on focus, and
> everything outside, meaning closer to or further from the camera are blurred
> according to the value of aperture.
>
> If the idea for focal blur in this case was to have eg. a smaller spot in focus
> that blurs the rest of the scene in a circle or something similar, then I'm
> afraid that's not how focal blur works in POV.
>
> I tried to mimic your camera angle more or less with my own camera syntax below.
> I don't know which one of the cubes was meant to be on focus, but to be clear
> with my example I kept it on the one in the center.
>
> camera {
>    location <0, 0, -9>
>    look_at <0, 0, 0>
>    right x*image_width/image_height
>
>    focal_point <0, 0, -1>
>    aperture 0.35
>    blur_samples 25, 100
>    variance 1/10000
>
>    rotate <30, -135, 0>
> }
>
> And here's the result (though it seems to be horizontally flipped compared to
> yours):
>

It's usualy best, and recomended, to use the same value for look_at and 
focal_point.

To match the original, you only need to negate the value for right:
right -x*image_width/image_height


Alain


Post a reply to this message

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