#include "colors.inc" #include "shapes.inc" #include "shapes2.inc" #include "glass.inc" #include "metals.inc" #include "woods.inc" #include "skies.inc" #include "textures.inc" #include "colori.inc" global_settings { assumed_gamma 1.5 } background { color .1 } #version 3.1; #declare asse = union { cylinder { <0,0,0>, <0,8,0>, 0.03 } cone { <0,8,0>, 0.15, <0,8.3,0>,0 } pigment { red 0 green 0 blue 0.0 } } asse object {asse rotate -90 * z } object {asse rotate 90*x} #declare anello = union { torus { 1.5, 0.01 } cone { <1.5,0,0>, 0.12, <1.5,0,0.4>,0 } } #declare trottola = union { cylinder { <0,4,0>, <0,5,0>, 0.5 } cone { <0,2,0>, .4, <0,0,0>,0 } difference { sphere { <0,4,0>, 3 scale <.6,1.0,.6> } box { <-4,4,-4>, <4,8,4> } } texture { T_Wood14 scale 1.5 rotate <90,0,0> } } box { <-20, -1, -20>, <20, 0, 20> pigment { White } finish { ambient 0.05 diffuse 0.1 // reflection 0.3 specular .85 } } //asse object { trottola rotate y * -1440 * clock rotate z * 20 rotate y * -720 * clock translate <4,0,4> } /*object { anello scale 3.5/1.5 translate 3.5 * sqrt(3) * y } object { union { cylinder { <0,0,0>, <0,5,0>, 0.03 } cone { <0,5,0>, 0.15, <0,5.3,0>,0 } } pigment { red 1.0 green 0 blue 0 } rotate 90 * z rotate y * -360 * clock }*/ camera { location < 2, 5, -9> look_at < 4, 4, 4> } light_source { <-20, 20,-25> color rgb 1 } light_source { <-20, 20,-25> color White spotlight radius 8 falloff 9 tightness 1.5 point_at <0,3,0> }