#include "colors.inc" #include "textures.inc" #include "stones.inc" #include "skies.inc" background { SkyBlue } light_source { < 5.00, 3.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 6.00, 00.00, 1.00 > right < -1.00, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 6.00 > } plane { z,0 texture{ pigment { color rgb < 0.5, 0.5, 0.5 > } normal { granite 0.3 } } } sky_sphere { pigment { gradient y color_map { [0.000 0.002 color Blue color Blue] [0.002 0.200 color rgb <0.0, 0.1, 0.8> color rgb <0.3, 0.2, 0.2>] } scale 2 translate -1 } pigment { bozo turbulence 0.65 octaves 6 omega 0.7 lambda 2 color_map { [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>] [0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>] [0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>] } scale <0.2, 0.5, 0.2> } rotate -135*x } #declare chao = union{ box { <-80, -3.5, -0.01>, <80, -3, 0.5 > texture{ pigment { color rgb < 0.9, 0.9, 0.9 > } normal { granite 0.3 } } } box { <-80, -3, -0.01>, <80, 3, 0 > texture{ pigment { color rgb < 0, 1, 0 > } normal { dents .075 scale .075 } } } box { <-80, 3, -0.01>, <80, 3.5, 0.5 > texture{ pigment { color rgb < 0.9, 0.9, 0.9 > } normal { granite 0.3 } } } } #declare pilar = union{ box { <-0.6, -3, 0>, <0.6, 3, 0.01> pigment { color rgb < 0.9, 0.9, 0.9> } } box { <-1.2, -1.2, 0>, <1.2, 1.2, 0.01> pigment { color rgb < 0.9, 0.9, 0.9> } } box { <-0.5, -0.3, 0.01 >, <0.5, 0.3, 5.0 > pigment { color rgb < 0.8, 0.8, 1 > } } prism { linear_sweep linear_spline -0.3, // sweep the following shape from here ... 0.3, // ... up through here 3, // the number of points making up the shape ... <-0.5, 5>, < 0.5, 5>, <-0.5, 6> pigment { color rgb < 0.8, 0.8, 1 > } } } #declare livro = union { cylinder { <3.5, -0.6, 3>, // Center of one end <3.5, -0.6, 5>, // Center of other end 1.0 // Radius pigment { color rgb < 0.8, 0.8, 1 > } rotate y*(-45) } cylinder { <3.5, 0.6, 3>, // Center of one end <3.5, 0.6, 5>, // Center of other end 1.0 // Radius pigment { color rgb < 0.8, 0.8, 1 > } rotate y*(-45) } } #declare buraco = union { cylinder { <3.5, 0.6, 2.99>, // Center of one end <3.5, 0.6, 5.01>, // Center of other end 0.7 // Radius pigment { color rgb < 0.8, 0.8, 1 > } rotate y*(-45) } cylinder { <3.5, -0.6, 2.99>, // Center of one end <3.5, -0.6, 5.01>, // Center of other end 0.7 // Radius pigment { color rgb < 0.8, 0.8, 1 > } rotate y*(-45) } /* prism { linear_sweep linear_spline 0.3, // sweep the following shape from here ... 2.6, // ... up through here 3, // the number of points making up the shape ... <-1, 4>, < 1, 5>, <-1, 6> pigment { color rgb < 0.8, 0.8, 1 > } } */ } object { chao } object { pilar } difference { object { livro } object { buraco } }