// Space - Reference Frame #version 3.5; #include "colors.inc" #include "math.inc" #include "Stereo.inc" global_settings { assumed_gamma 1.0 max_trace_level 5 } // ---------------------------------------- #macro Axis(l1,l2,r1,r2) merge { cylinder {<-l1,0,0>,<0.001,0,0>,r1} cone {<0,0,0>,r2,,0} } #end // ---------------------------------------- camera { StereoCamera1(vnormalize(<0.5,0.7,-1>)*0.6, <0,0.05,0>, image_width/image_height,1,0.6, 0.065,0) } sky_sphere { pigment { granite turbulence 0.6 color_map { [0.00 rgb 0] [0.75 rgb 0] [0.80 rgb <0,0,0.05>] [0.85 rgb <0,0,0.5>] [1.00 rgb <1,1,0.5>] } scale 0.03 } } light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <-30, 30, -30> area_light <1,1,-1>, <1,-1,1>, 5,5 jitter adaptive 1 } // ---------------------------------------- union { intersection { plane { // checkered floor y, 0 texture { pigment { checker color rgb 1 color rgb <0.1,0.1,0.6> scale 0.05 } finish{ diffuse 0.8 ambient 0.1 } } } cylinder { <0,-0.03,0>, <0,0.01,0>, 0.3 pigment {color red 0.5} finish { diffuse 0.7 ambient 0.3 specular 0 } } } difference { #local a=0.8; #local b=1.1; box {<-1,-1,-1>, <1,1,1>} box {<-b,-a,-a>, } box {<-a,-b,-a>, } box {<-a,-a,-b>, } translate 1.001*y texture { pigment {color Yellow} finish {diffuse 0.7 specular 0.1 phong 0.1 ambient 0.1} normal {bumps 0.2 scale 0.02 turbulence 0.4} } interior { ior 1.5 } scale 0.12 } union { object { Axis(2,0.3,0.05,0.1) translate 0.85*x pigment {color red 1} } object { Axis(2,0.3,0.05,0.1) translate 0.85*x pigment {color green 1} rotate -90*y } object { Axis(2,0.3,0.05,0.1) translate 0.85*x pigment {color blue 1} rotate 90*z } scale 0.2 translate 0.12*y } }