POV-Ray : Newsgroups : povray.binaries.images : help with photons (~22k jpg) Server Time
17 Nov 2024 20:21:53 EST (-0500)
  help with photons (~22k jpg) (Message 1 to 3 of 3)  
From: Ross Litscher
Subject: help with photons (~22k jpg)
Date: 15 Nov 2002 16:48:34
Message: <3dd56bb2@news.povray.org>
Hello. I'm trying photons for the first time. I like the effects shown in
the attached image, but is there a way to get rid of the shadow of the disc
without getting rid of the photons? i tried shadowless on the light source,
and no_shadows on the disc itself, but both resulted in no photon
calculations.

the shadow itself doesn't seem to be a result of photons. here is the
relevant (i think) code. I also tried making the glass texture have color
rgbft<1, 1, 1, 1, 1> and that didn't rid the scene of the shadow. originally
exported from moray, so the coordinate system might be different than
default pov.

thanks,
ross.



#declare Glass =
   material  // Glass


      texture


         pigment
         {
            color rgbf <1.0, 1.0, 1.0, 1.0>
         }
         finish
         {
            ambient 0.0
            diffuse 0.0
            specular 1.0


         }
      }
      interior
      {
         ior 1.5
      }
   }


disc {
  <0, 0, 0>
  1*z,
  1
  material {
    Glass
  }
  normal {
    wrinkles 1
  }
  photons{
    target
    reflection off
    refraction on
  }
  translate 1*z
}


Post a reply to this message


Attachments:
Download 'caustic2.jpg' (19 KB)

Preview of image 'caustic2.jpg'
caustic2.jpg


 

From: Slime
Subject: Re: help with photons (~22k jpg)
Date: 15 Nov 2002 16:54:02
Message: <3dd56cfa$1@news.povray.org>
Well, the shadow is there because the light that would normally be taking up
the shadow space has been refracted and is instead landing elsewhere,
creating the caustic patterns. You can see why this is done by making the
ior of your disc equal to 1. Then the photons should almost exactly cover
the shadow, cancelling it out, except for innacuracies. If the disc had no
shadow, that area would be brighter, which is physically unrealistic.

Simple workaround: Render the scene with the shadow, and save the photons
with save_file. Then remove the disc from the scene, and use the saved
photons with load_file.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Ross Litscher
Subject: Re: help with photons (~22k jpg)
Date: 15 Nov 2002 17:03:33
Message: <3dd56f35@news.povray.org>
thanks for the tip on the workaround. as for making ior equal to 1, i then
get no neat caustics from the surface normal on the disc :/ i guess thats
what you meant by cancelling it out.

thanks again,
ross

Slime <slm### [at] slimelandcom> wrote in message
news:3dd56cfa$1@news.povray.org...
> Well, the shadow is there because the light that would normally be taking
up
> the shadow space has been refracted and is instead landing elsewhere,
> creating the caustic patterns. You can see why this is done by making the
> ior of your disc equal to 1. Then the photons should almost exactly cover
> the shadow, cancelling it out, except for innacuracies. If the disc had no
> shadow, that area would be brighter, which is physically unrealistic.
>
> Simple workaround: Render the scene with the shadow, and save the photons
> with save_file. Then remove the disc from the scene, and use the saved
> photons with load_file.
>
>  - Slime
> [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

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