|  |  | version 3.5
#include "colors.inc"
global_settings {
        photons {
                max_trace_level 20
                count 200000
                autostop 0
                jitter 0.4
                 }}
camera {
        location <0,12,-7>
        right <-4/3,0,0>
        up <0,1,0>
        look_at <0,1,0>}
light_source {
        <20,2,0>
        rgb <1,1,1>*5
        cylinder
        parallel
        point_at <0,1,0>
        radius 2
        falloff 6
photons{
        refraction on
        reflection on}
        media_interaction on
        media_attenuation off}
/*light_source {
        <10,2,0>
        rgb <0,0,1>
        photons{
                refraction on
                reflection on}}
light_source {
        <10,2,0>
        rgb <1,0,0> 
        photons{
                refraction on
                reflection on}
        }
*/
sky_sphere {pigment {color rgb 0}}
// the scene
plane {
        y,-2 
        texture{
                pigment{color Gray }
                normal {granite scale <10,1,10>}
                finish{ 
                        ambient 0.2
                        diffuse 0.7
                        reflection 0.1
                        phong 1
                        phong_size 250}}}
#declare lens = 
sphere {
        <0,1,0> 2  interior{ior 1.2 dispersion 1.1 }  
        texture {
                pigment { color White filter 1}
                
                
                finish {
                        ambient 0
                        diffuse 0
                        
                        
                        reflection .2
                        
                        
                        phong 1
                        phong_size 250}}
                photons {
                        
                        collect on
                        target  
                        refraction off
                        reflection off
                        }}
object {lens scale .75*x}
box { <-10,-2,-10> <10,5,10>  hollow pigment {rgbt 1}
        interior {
                media{
                        method 2
                        intervals 15
                        samples 5,5
                        
                        scattering {2, rgb .2 extinction .0001}}}}
                        
plane {x,-10 pigment {color red 1}}
Post a reply to this message
 |  |