POV-Ray : Newsgroups : povray.advanced-users : Photon trickery Server Time
31 Oct 2024 16:17:00 EDT (-0400)
  Photon trickery (Message 1 to 4 of 4)  
From: Tek
Subject: Photon trickery
Date: 29 Oct 2005 17:07:31
Message: <4363e493$1@news.povray.org>
I've got a scene with a large body of water where I want to use some photons 
for a small area in the foreground. My problem is that I can't hide the 
transition between the area that has photons and the area that doesnt.

The problem is: the photons get bent by the refraction and the conventional 
light obviously doesn't. Which creates a shadow artefact on one side, and a 
double-lit area on the other.

Now, I can think of a couple of ways this could be fixed, but they're both 
impossible in povray!
Option 1: gradually adjust the refractive index within the photon area, so 
that it matches the non-photon area at the sides, use this to save photons 
then switch it off in the main render. But as far as I know pov doesn't let 
you gradually adjust the refraction. Or does it?
Option 2: Adjust the photon spacing so that we have a lot of densly packed 
photons (using a smaller gather radius) in the foreground area but really 
low-quality photons in the distance. This will give really nice lighting and 
be more accurate than what I've got now.

For the time being, I'll just use photons on a much larger area so the 
transition's far enough away to not see it. But I'm using literally 10x as 
many photons as I need for the effect I want.

Anyway, I'm just posting this here to see if anyone who knows more about 
pov's photons than me can tell me if either of those options are possible, 
or if there's any other trick.

Thanks in advance for any help
-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: Alain
Subject: Re: Photon trickery
Date: 29 Oct 2005 19:16:27
Message: <436402cb$1@news.povray.org>
Tek nous apporta ses lumieres en ce 2005-10-29 17:07:
> I've got a scene with a large body of water where I want to use some photons 
> for a small area in the foreground. My problem is that I can't hide the 
> transition between the area that has photons and the area that doesnt.
> 
> The problem is: the photons get bent by the refraction and the conventional 
> light obviously doesn't. Which creates a shadow artefact on one side, and a 
> double-lit area on the other.
> 
> Now, I can think of a couple of ways this could be fixed, but they're both 
> impossible in povray!
> Option 1: gradually adjust the refractive index within the photon area, so 
> that it matches the non-photon area at the sides, use this to save photons 
> then switch it off in the main render. But as far as I know pov doesn't let 
> you gradually adjust the refraction. Or does it?
Not possible. You can flaten the relief/normal as you go farther away to acheive a
similar effect.
> Option 2: Adjust the photon spacing so that we have a lot of densly packed 
> photons (using a smaller gather radius) in the foreground area but really 
> low-quality photons in the distance. This will give really nice lighting and 
> be more accurate than what I've got now.
> 
> For the time being, I'll just use photons on a much larger area so the 
> transition's far enough away to not see it. But I'm using literally 10x as 
> many photons as I need for the effect I want.
> 
> Anyway, I'm just posting this here to see if anyone who knows more about 
> pov's photons than me can tell me if either of those options are possible, 
> or if there's any other trick.
> 
> Thanks in advance for any help
Maybe what you need: use photons in the near part and caustics farther away. Maybe
using a 
light_group for the farther part to fill up any ramaining gap.
The part that receive the caustics may be lowered a little to hide a dark band. May
not be possible, 
or very dificult to properly do.
The transition won't be perfect, but the refraction of the vewing rays can make that
hard to 
distinguish. Some judiciously projected shadows can also somewhat hide the transition.
With your option 2, close by area: high quality photons, middle range with low quality
photons, far 
area use caustics.

-- 
Alain
-------------------------------------------------
REMEMBER: WHATEVER HAPPENS, HAPPENS FOR A REASON.


Post a reply to this message

From: Tek
Subject: Re: Photon trickery
Date: 29 Oct 2005 20:41:07
Message: <436416a3@news.povray.org>
"Alain" <ele### [at] netscapenet> wrote in message 
news:436402cb$1@news.povray.org...
> Maybe what you need: use photons in the near part and caustics farther 
> away. Maybe using a light_group for the farther part to fill up any 
> ramaining gap.
> The part that receive the caustics may be lowered a little to hide a dark 
> band. May not be possible, or very dificult to properly do.
> The transition won't be perfect, but the refraction of the vewing rays can 
> make that hard to distinguish. Some judiciously projected shadows can also 
> somewhat hide the transition.
> With your option 2, close by area: high quality photons, middle range with 
> low quality photons, far area use caustics.

Very good suggestions, thank you. I've also thought of another idea: I could 
use an area light to soften the artefacts, then the refraction should hide 
that well enough.

I'll have a play with these ideas and see what works.

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: Lonnie
Subject: Re: Photon trickery
Date: 6 Nov 2005 22:50:00
Message: <web.436ecdb86a680cb9d5d3b08c0@news.povray.org>
> Very good suggestions, thank you. I've also thought of another idea: I could
> use an area light to soften the artefacts, then the refraction should hide
> that well enough.
>
> I'll have a play with these ideas and see what works.
>
> --
> Tek
> http://evilsuperbrain.com

You might try using the spotlight with a large fade radius for your
forground(photon) lighting.  Then the number of photons fired should
gradually
decrease with z distance.


Post a reply to this message

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