POV-Ray : Newsgroups : povray.binaries.images : Beach Sunset - Photons Question : Beach Sunset - Photons Question Server Time
5 Nov 2024 12:38:03 EST (-0500)
  Beach Sunset - Photons Question  
From: Jim Holsenback
Date: 21 Aug 2005 09:54:45
Message: <430887a5@news.povray.org>
I've been experimenting with photons in this beach scene and I'm not 100% 
sure if my setup is correct. This is the setup that I'm working with. Any 
comments concerning photons would be appreciated.

global_settings {
  max_trace_level 100
  number_of_waves 40

  #if (DoPhotons)
  photons {
    count 200000
    autostop 0.5
    jitter .4
    media 200, 2
    }
  #end

  }

These are light source photons (lights inside my homebrew sky sphere) ....

// sun - main lighting
 light_source {
   <0,0,0>
   color PaleGoldenrod
   looks_like {
     sphere {<0,0,0>, 0.095
       material {Sun}
       hollow on
       interior {
          media {
          scattering {5, rgb 0.025}
          density {
          spotted
          scale 0.095
          color_map {
            [0.0 rgb <1.0000, 0.0000,0.4980>]
            [0.5 rgb <0.9525, 0.2695,0.0000>]
            [1.0 rgb <0.5430, 0.1445,0.0000>]
            }
          warp {turbulence 10}
          }
         }
       }
       //finish {ambient 3}
       translate <0,-0.125,0>
       }
     }

   #if (DoPhotons)
   photons {
    refraction on
    reflection on
    }
   #end

   translate <0,0,2.5>
   rotate <357,230,0>
   media_interaction on
   media_attenuation on
   fade_distance 7.2*WorldSize
   fade_power 0.5
   }

 // additional lighting
 light_source {
  <0,2,0>
  color PaleGoldenrod
  area_light
  <1, 0, 1> <-1, 0, -1> 3, 3
  adaptive 2
  jitter
  circular
  orient
  media_interaction off
  media_attenuation off
  fade_distance WorldSize*1.25
  fade_power 1

  #if (DoPhotons)
  photons {
    reflection on
    refraction on
    }
  #end

  }

and finally the targets .....

// the water
  #if (Detail)
    disc {
     <0,0.0001,0>, <0,1,0>, 2.75*WorldSize
     hollow on
     material {Water}

     #if (DoPhotons)
     photons {
       target
       reflection on
       refraction on
       collect on
       }
     #end

     }
  #end

#declare CatTail =
union {
  object {
    Reeds
    rotate <0,-10,0>
    }
  object {
    Stem
    translate <0.01,0,-0.01>
    scale 0.95
    }
  object {Tail}

  #if (DoPhotons)
     photons {
       target
       reflection on
       refraction on
       collect on
       }
     #end

  };

After rendering at :   +am2 +a0.1 +r6 +fn
I spotted this in the messages pane:

Number of photons shot:           93273
Surface photons stored:               1
Priority queue insert:         60761272
Gather function called:        62614147

Does that mean that I only got  1  valid photon?

Thanks Jim


Post a reply to this message


Attachments:
Download 'Beach.png' (488 KB)

Preview of image 'Beach.png'
Beach.png


 

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