POV-Ray : Newsgroups : povray.binaries.images : PP focal blur test Server Time
2 Oct 2024 06:26:12 EDT (-0400)
  PP focal blur test (Message 1 to 9 of 9)  
From: Rune
Subject: PP focal blur test
Date: 8 Jun 2000 08:04:26
Message: <393f8bca@news.povray.org>
I made a little test of the post process focal blur feature in MegaPov 0.5.

In the attached image the left frame is a mirror and the right frame is a
glass object (with ior 1.0, but that is irrelevant). The objects in the
middle are "the real things".

As you can see, focal blur may work fine in some scenes, but if you use
large reflecting or refracting surfaces, you get incorrect results. In such
cases it's probably better to use the more correct original focal blur
feature, even though it's much slower.

If I have understand correctly, the incorrect results are caused by the fact
that the PP focal blur feature blurs the image based on the depth of the
*first* surface it hits. So if it hits a mirror or glass object, you get
incorrect results. Unfortunately I don't think it's possible to fix it,
because of how it works, so we will just have to use the slower focal blur
method if we want more correct results.

Now, I think you all already knew this, I just wanted to make an example
scene that showed it very clearly.

Greetings,

Rune

---
Updated April 25: http://rsj.mobilixnet.dk
Containing 3D images, stereograms, tutorials,
The POV Desktop Theme, 350+ raytracing jokes,
miscellaneous other things, and a lot of fun!


Post a reply to this message


Attachments:
Download 'focaltest.jpg' (17 KB)

Preview of image 'focaltest.jpg'
focaltest.jpg


 

From: Bob Hughes
Subject: Re: PP focal blur test
Date: 8 Jun 2000 08:31:33
Message: <393f9225@news.povray.org>
"Rune" <run### [at] inamecom> wrote in message
news:393f8bca@news.povray.org...
|
| Now, I think you all already knew this, I just wanted to make an example
| scene that showed it very clearly.

Um, no, not "all" of us.  In fact just a relative few so far probably did.
Except it is one of those things you can deduce from the way other things
work, reflected light and such.
Thanks for the demonstration.
If it indeed were only surface-count related then I don't see why it would be
impossible to increase to 2 or more.  Maybe only the patch writer knows for
sure, among others  :-)

Bob


Post a reply to this message

From: Ed Kaiser
Subject: Re: PP focal blur test
Date: 8 Jun 2000 11:42:55
Message: <393fbeff@news.povray.org>
> As you can see, focal blur may work fine in some scenes, but if you use
> large reflecting or refracting surfaces, you get incorrect results. In
such
> cases it's probably better to use the more correct original focal blur
> feature, even though it's much slower.
>


The mirror, at least, I think is correct. In real life it wouldn't be
blurred. When the light hits the mirror it will still be sharp, and since
the mirror itself is in focus then that light will make it to the camera in
focus; I think. The glass is more complicated, In this case I think it
should be blurred, but in other cases it could be in focus, like in that
famous closeup photo of  a branch that has drops of dew in which you can see
background flowers clearly, while in the rest of the picture they're
blurred. Has anyone else seen that? Anyway, I hope that made sense.



Regards


Post a reply to this message

From: Outback
Subject: Re: PP focal blur test
Date: 8 Jun 2000 12:56:35
Message: <393fd043$1@news.povray.org>
> The mirror, at least, I think is correct. In real life it wouldn't be
> blurred. When the light hits the mirror it will still be sharp, and since
> the mirror itself is in focus then that light will make it to the camera
in
> focus; I think.
*******
   Think again. hehe :)     You had me going there, Ed . . . didn't think
that
was correct but had to get out the digital camera and see.  Not so . . .
that
image in the mirror is farther away than the mirror surface.  ie the
distance
from the eye (camera) to the mirror plus the distance from the mirror to the
object. Those light rays haven't yet been gathered by the lens and focused
on the "film".  Give it a try to prove it - I had to.
   So, the images in the mirror should also be out of focus.  TS


Post a reply to this message

From: Bob Hughes
Subject: Re: PP focal blur test
Date: 8 Jun 2000 16:11:35
Message: <393ffdf7@news.povray.org>
"Outback" <out### [at] huntelnet> wrote in message
news:393fd043$1@news.povray.org...
| > The mirror, at least, I think is correct. In real life it wouldn't be
| > blurred. When the light hits the mirror it will still be sharp, and since
| > the mirror itself is in focus then that light will make it to the camera
| in
| > focus; I think.
| *******
|    Think again. hehe :)     You had me going there, Ed . . . didn't think
| that
| was correct but had to get out the digital camera and see.  Not so . . .
| that
| image in the mirror is farther away than the mirror surface.  ie the
| distance
| from the eye (camera) to the mirror plus the distance from the mirror to the
| object. Those light rays haven't yet been gathered by the lens and focused
| on the "film".  Give it a try to prove it - I had to.
|    So, the images in the mirror should also be out of focus.  TS

Yeah, but the water drops on a branch sort of thing does focus the distant
surroundings doesn't it?  I should know that with all the pictures I've taken.
Not about to go searching them to find an example though.  Then again it may
be that the droplets only appear to be in focus considering the lensing effect
they have so there is probably a very different out-of-focus range for them.

Bob


Post a reply to this message

From: Gail Shaw
Subject: Re: PP focal blur test
Date: 9 Jun 2000 03:57:24
Message: <3940a364@news.povray.org>
>   Think again. hehe :)     You had me going there, Ed . . . didn't think
>that
>was correct but had to get out the digital camera and see.  Not so . . .
>that
>image in the mirror is farther away than the mirror surface.  ie the
>distance
>from the eye (camera) to the mirror plus the distance from the mirror to
the
>object. Those light rays haven't yet been gathered by the lens and focused
>on the "film".  Give it a try to prove it - I had to.
>   So, the images in the mirror should also be out of focus.  TS
>


I've no experience with camera, but I'm very short sighted (distance
blurred)
If I look at a distant object, then look at the reflection of the distant
object, the reflection is much clearer. Therefore I think that what is
produced
is correct.

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

From: Bob Hughes
Subject: Re: PP focal blur test
Date: 9 Jun 2000 06:07:11
Message: <3940c1cf@news.povray.org>
"Gail Shaw" <gsh### [at] monotixcoza> wrote in message
news:3940a364@news.povray.org...
|
| I've no experience with camera, but I'm very short sighted (distance
| blurred)
| If I look at a distant object, then look at the reflection of the distant
| object, the reflection is much clearer. Therefore I think that what is
| produced
| is correct.

It may be that a lensing effect takes place due to an implied curvature going
on.  That is to say, with an almost point-like lenses such as the eyes viewing
a large area such as a mirror, even though it be flat, there is a distance
variation across the whole surface.  Same as a lens which is also based upon
distance variation.  This is what I was saying before about the water
droplets, the lensing is going to be yet another focal point.  But then I'm
not an optomologist or whatever the name is for lens scientists  8-)

Bob


Post a reply to this message

From: Warp
Subject: Re: PP focal blur test
Date: 9 Jun 2000 07:50:21
Message: <3940d9fc@news.povray.org>
Ed Kaiser <eka### [at] camdentdsnet> wrote:
: The mirror, at least, I think is correct. In real life it wouldn't be
: blurred.

  Wrong. It doesn't matter if the image is a mirrored image or directly seen.
If you think about how light rays travel, what's the difference between a
mirror reflecting something and a hole to another room with the inversed
scene? There's no difference. Light will travel in the same way from the
objects to the camera or whatever. A mirror is not a photograph of the scene.
  The default focal blur of povray is physically more correct.

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


Post a reply to this message

From: Ed Kaiser
Subject: Re: PP focal blur test
Date: 9 Jun 2000 12:11:12
Message: <39411720@news.povray.org>
>   Wrong. It doesn't matter if the image is a mirrored image or directly
seen.
> If you think about how light rays travel, what's the difference between a
> mirror reflecting something and a hole to another room with the inversed
> scene? There's no difference. Light will travel in the same way from the
> objects to the camera or whatever. A mirror is not a photograph of the
scene.
>   The default focal blur of povray is physically more correct.
>

Yeah, that makes sense.  nevermind.


Post a reply to this message

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