POV-Ray : Newsgroups : povray.binaries.images : Another dispersion_samples anomaly : Another dispersion_samples anomaly Server Time
31 Jul 2024 18:28:15 EDT (-0400)
  Another dispersion_samples anomaly  
From: Cousin Ricky
Date: 26 Jun 2009 21:56:45
Message: <op.uv5ucrx86b35ac@your-727a0a4e7c.vipowernet.net>
The leftmost sphere in each image has no dispersion.  The remaining  
spheres have dispersion_samples set to the number above each.  The first  
image uses faked caustics and the second uses photons.

It seems that the smaller the dispersion_samples, the darker the glass.   
Could this be the 2 missing dispersion samples making their absence felt?
_____________________________________________________________________

#include "consts.inc"
#include "transforms.inc"

#declare Test = sphere
{  y, 1
    pigment { rgbf 1 }
    finish
    {  reflection { 0 1 fresnel } conserve_energy
       specular 1 roughness 0.001
    }
    photons { target reflection on refraction on collect off }
    interior
    {  ior Crown_Glass_Ior dispersion Quartz_Glass_Dispersion
       #if (!PH) caustics 1 #end //PH is defined elsewhere
    }
}

union
{  object { Test interior { dispersion 1 } translate -3.6 * x }
    #declare T = 4;
    #while (T <= 8)
       #declare Samps = text
       {  ttf "arial.ttf" str(T,0,0) 0.01, 0 scale 0.6
          pigment { rgb x }
          no_shadow no_reflection
       }
       union
       {  object { Test interior { dispersion_samples T } }
          object { Samps Center_Trans (Samps, x) translate 2.25 * y }
          translate (T * 1.2 - 6) * x
       }
       #declare T = T + 2;
    #end
}

-- 
<Insert witty .sig here>


Post a reply to this message


Attachments:
Download 'dispersion_light.jpg' (51 KB) Download 'dispersion_light-ph.jpg' (52 KB)

Preview of image 'dispersion_light.jpg'
dispersion_light.jpg

Preview of image 'dispersion_light-ph.jpg'
dispersion_light-ph.jpg


 

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