POV-Ray : Newsgroups : povray.unofficial.patches : Focal blur understanding problem Server Time
1 Sep 2024 18:17:34 EDT (-0400)
  Focal blur understanding problem (Message 1 to 7 of 7)  
From: Fabien Mosen
Subject: Focal blur understanding problem
Date: 7 Nov 2000 10:06:07
Message: <3A081A82.5CF70483@skynet.be>
Here's a simple scene setup, using PP blur :
--------------------------------
#version unofficial MegaPov 0.6;
#include "colors.inc"

camera {location <100,0,0> direction z*1 look_at <0,0,0>}

plane {y,-50 pigment {checker color SteelBlue 
                              color YellowGreen scale 20}}

plane {z,-10
 pigment {gradient x
          color_map {[0 White][.5 White][.5 Red][1 Red]}
          scale 20
          } 
}          

global_settings {
 post_process {
               focal_blur{30, 0, 5, .5}
               }
}              

light_source {<400,500,300> White*2}
------------------------------------

The blur start is at 30 units, and the depth is 0.  By reading the 
docs, I would assume that nothing would be in focus, but everything 
in the front is in focus.  I went to think that blur only worked 
behind the start point, well..

But if I change the depth to 1 unit, the result is very different,
much more different that I would expect from a little 1 unit difference.
This may sound incoherent or strange, but the thing is : I don't
understand anything anymore about that focal blur effect !!

So, could someone give me an explanation of what I am seeing, and
explain (with a sample scene, at best) how it actually works ?
(or how to relate what's written in the docs to the visible result !)

Fabien.


Post a reply to this message

From: Nathan Kopp
Subject: Re: Focal blur understanding problem
Date: 8 Nov 2000 01:16:35
Message: <3a08efc3$1@news.povray.org>
"Fabien Mosen" <fab### [at] skynetbe> wrote...
> The blur start is at 30 units, and the depth is 0.

A depth of zero may cause problems because of a potential bug.  The code for
the post processed focal blur is really quite ad-hoc and not very
scientific.  I made it so that it looked good in my test scenes (none of
which had a depth of 0), but beyond that I can't guarantee anything.
Sometime I hope to go back and re-work the math so that it is actually
realistic.  (It currently is not realistic.)

-Nathan


Post a reply to this message

From: Warp
Subject: Re: Focal blur understanding problem
Date: 8 Nov 2000 04:58:48
Message: <3a0923d8@news.povray.org>
Nathan Kopp <Nat### [at] koppcom> wrote:
: The code for
: the post processed focal blur is really quite ad-hoc and not very
: scientific.  I made it so that it looked good in my test scenes

  Bad, bad! ;)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Nathan Kopp
Subject: Re: Focal blur understanding problem
Date: 8 Nov 2000 20:34:18
Message: <3a09ff1a@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote...
> Nathan Kopp <Nat### [at] koppcom> wrote:
> : The code for
> : the post processed focal blur is really quite ad-hoc and not very
> : scientific.  I made it so that it looked good in my test scenes
>
>   Bad, bad! ;)

I know.  It was actually just a proof-of-concept originally.  But I though
it looked good enough.

-Nathan


Post a reply to this message

From: Fabien Mosen
Subject: Re: Focal blur understanding problem
Date: 9 Nov 2000 01:46:17
Message: <3A0A4861.7F915BDF@skynet.be>
Nathan Kopp wrote:
> 
> "Warp" <war### [at] tagpovrayorg> wrote...
> > Nathan Kopp <Nat### [at] koppcom> wrote:
> > : The code for
> > : the post processed focal blur is really quite ad-hoc and not very
> > : scientific.  I made it so that it looked good in my test scenes
> >
> >   Bad, bad! ;)
> 
> I know.  It was actually just a proof-of-concept originally.  But I though
> it looked good enough.

Okay, thanks for the explanation.  No problem :-)  It's just that
I'm writing (from scratch) a POV-Ray documentation in French, and
while writing the "post-process" page, I went crazy doing tests,
trying to get precise results related to the given parameters.
But it works fine enough for common use (blur background).

Fabien.


Post a reply to this message

From: Alan Kong
Subject: Re: Focal blur understanding problem
Date: 9 Nov 2000 19:57:57
Message: <cohm0tohhthgealh58esvbm59n5634csm2@4ax.com>
On Thu, 09 Nov 2000 07:46:57 +0100 Fabien Mosen wrote:

>Okay, thanks for the explanation.  No problem :-)  It's just that
>I'm writing (from scratch) a POV-Ray documentation in French, and
>while writing the "post-process" page...
<snip..>

  Hi, Fabien. I noticed that you said "POV-Ray documentation". Please
keep in mind that the unofficial stuff is not guaranteed to make it into
any version of the official POV-Ray, or even to remain the same in its
implementation in the MegaPov.

  Thanks for your efforts in writing the documentation, though. I'm sure
it will be much appreciated by French-speaking persons.

-- 
Alan - ako### [at] povrayorg - a k o n g <at> p o v r a y <dot> o r g
http://www.povray.org - Home of the Persistence of Vision Ray Tracer


Post a reply to this message

From: Fabien Mosen
Subject: Re: Focal blur understanding problem
Date: 10 Nov 2000 01:41:24
Message: <3A0B98BB.DC74AC7A@skynet.be>
Alan Kong wrote:

>   Hi, Fabien. I noticed that you said "POV-Ray documentation". Please
> keep in mind that the unofficial stuff is not guaranteed to make it into
> any version of the official POV-Ray, or even to remain the same in its
> implementation in the MegaPov.

If you look at it :
http://users.skynet.be/bs936509/povfr/index.htm

you'll see that (almost) every page contains a "compatibility"
header, where it says which version of POV-Ray supports the described
feature.  We've tried to describe as many MegaPOV features as
possible, since almost everyone uses it.  So, when 3.5 will be
released, we'll "just" have to check these features.  When the
3.5 features list was published, we translated and published it
in our group, so everyone is aware of the issue.

>   Thanks for your efforts in writing the documentation, though. I'm sure
> it will be much appreciated by French-speaking persons.

It is, it seems. :-)

Fabien.


Post a reply to this message

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