// La fenêtre de Viviani #include "colors.inc" #include "stones.inc" #include "glass.inc" camera {location <2,1.5,-7> look_at <-0.3,0.2,-1>} light_source {<-5,15,-10> White } light_source {<6,5,-4>*2.5 White*0.8} //la pièce union { plane { z , 7 pigment{ Cyan}} plane { y , -3 pigment{ rgb <0,0.8,1>}} plane { x , -8 pigment{ Cyan} } rotate <0,0,-3.2> } #declare sph=sphere { 0,2}; #declare cyl=cylinder { <0,-2,0>,<0,2,0>,1}; union{ object { sph translate <-1,0,0> clipped_by{cyl} pigment { rgb <1,0.1,0.1>*1.3} finish {ambient 0.1 reflection 0.3 specular 0.5 } } object { cyl clipped_by{ sph translate <-1,0,0> } pigment { rgb <1,1,0>*1.8} finish {ambient 0.1 reflection 0.1} } // la sphère transparente intersection { object {sph translate <-1,0,0> clipped_by{ object{cyl inverse}} } object {sph scale 0.995 inverse translate <-1,0,0> clipped_by{ object{cyl inverse}} } texture { T_Glass3 } interior { ior Crown_Glass_Ior}//ior Air_Ior } finish { ambient 0.1 reflection 0.08 specular 0.2} } // fin intersection intersection { cone { <1,0,0>,0,<1,2.1,0>,2.1} cone { <1,0,0>,0,<1,2.1,0>,2.1 translate 0.02*y inverse } texture { T_Glass3 } interior { ior Crown_Glass_Ior}//ior Air_Ior } finish { ambient 0.1 reflection 0.08 specular 0.2} } // le support box { <-2.5,-3,-1.5>,<0.5,-2,1.5> texture { T_Stone16 } } // fin box rotate <0,25,-0.9> }