POV-Ray : Newsgroups : povray.binaries.images : Photons and Caustics...artifact or not? : Re: Photons and Caustics...artifact or not? Server Time
29 Jul 2024 18:30:48 EDT (-0400)
  Re: Photons and Caustics...artifact or not?  
From: jceddy
Date: 6 Dec 2013 09:15:00
Message: <web.52a1db6d68abcc4c314aa6840@news.povray.org>
> Could you post your source code so we can all play with the scales and
> settings?

Sure:


#version 3.7;
global_settings{ assumed_gamma 1.0 }

#declare Photons = off;
#declare Dispersion = off;
#declare Radiosity = off;

global_settings {
  max_trace_level 50

  #if(Photons)
    photons {
      //count 4000000
      spacing 0.002
      autostop 0
      jitter 1.0
    }
  #end

  #if(Radiosity)
    radiosity {
      pretrace_start 0.128          // start pretrace at this size
      pretrace_end   0.002          // end pretrace at this size
      count 1600                    // higher -> higher quality (1..1600) [35]
      nearest_count 20              // higher -> higher quality (1..10) [5]
      error_bound 0.5               // higher -> smoother, less accurate [1.8]
      recursion_limit 5             // how much interreflections are calculated
(1..5+) [3]
      low_error_factor 1.0          // reduce error_bound during last pretrace
step
      gray_threshold 0.0            // increase for weakening colors (0..1) [0]
      minimum_reuse 0.005           // reuse of old radiosity samples [0.015]
      maximum_reuse 0.1
      brightness 1                  // brightness of radiosity effects (0..1)
[1]
      adc_bailout 0.005
    }
  #end
}

camera {
  location <0, 5, -10.001>
  look_at <0, 1, 0>
  up y
}

plane {
  y, 0

  pigment { color rgb 1 }
  finish { ambient 0 diffuse 1 }
}

sphere {
  <-2, 1, 0>, 1

  pigment { color rgb <1, 0, 0> }
  finish { ambient 0 diffuse 1 }
}

sphere {
  <2, 1, 0>, 1

  pigment { color rgbf <1, 1, 1, 0.9> }
  finish { ambient 0 diffuse 0.9 reflection 0.1 }
  interior {
    ior 1.3

    #if(Dispersion)
      dispersion 1.007
      dispersion_samples 28
    #end

    #if(!Photons)
      caustics 0.5
    #end
  }

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

light_source {
  <0, 1, 0>
  color rgb 1
}


Post a reply to this message

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