POV-Ray : Newsgroups : povray.newusers : Extinction value of scattering and mirrors : Re: Extinction value of scattering and mirrors Server Time
18 Apr 2024 00:53:46 EDT (-0400)
  Re: Extinction value of scattering and mirrors  
From: fsv2712
Date: 18 Jul 2016 10:20:01
Message: <web.578ce527f6f56c36bec14beb0@news.povray.org>
More information about the reflector:
If I make the reflector as the difference of two cylinders plus a box, it works,
but only if the light source is displaced 2 unit out of the axis of the
reflector. I think perhaps this is a bug. See the code:

#version 3.7;

global_settings { ambient_light 0
    photons {spacing 1 max_trace_level 30 radius 5 autostop 0 media 50,1}
    assumed_gamma 1.0
}

//Container box
box {<-30,-30,-32><30,30,32> hollow
   texture {pigment {color rgb 1}}
   interior { media { scattering {1, color rgb <1,1,1> extinction 0}  method 3
intervals 1 samples 10 collect on} }
   photons {pass_through}
}

camera {orthographic location <0,0,29> sky <0,0,1> up <0,0,1> look_at <0,0,0>
angle 80}

//Light source
#declare position=2; //2--> works 1--> fail

light_source { <0,0,0> color rgb <0.4,0.4,0.4> fade_distance 1 fade_power 2
    translate <position,0,0>
}

//Reflector
difference { cylinder {<0,0,-30> <0,0,30> 12}
    cylinder {<0,0,-30.1> <0,0,30.1> 11}
    box {<-13,-13,-31><0,13,31>}
    texture {pigment {color rgb<1,0,0>} finish {emission 0 ambient 0 reflection
rgb <0.8,0,0.8> diffuse 0 } }
    interior_texture {pigment {color rgb<1,1,1>} finish {emission 0 ambient 0
reflection rgb <0.8,0,0.8> diffuse 0 } }
    photons {target reflection on refraction off}
}


Post a reply to this message

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