#include "colors.inc" #include "textures.inc" #include "finish.inc" // Exercicio 5 de MC930 background{ color rgb < 0.00, 0.00, 0.00 > } camera { location < -12.00, 14.50, 5.50 > right < 0.00, 1.20, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 2.00, 0.00, 0.00 > } light_source { <-5.00, 8.00, 1.50> color rgb <1.00,1.00,1.00> } light_source { <0.00, 0.00, 25.50> color rgb <1.00,1.00,1.00> } light_source { <-10.00, 0.00, 0.50> color rgb <1.00,1.00,1.00> } plane {z, -4.5 texture { pigment { DMFWood4 scale 4 } finish { Shiny } } } #declare enfeite = bicubic_patch{ type 1 flatness 0.0100 u_steps 3 v_steps 3, <6.00, 4.00, 8.00>, <3.00, 4.00,8.00>, <-3.00,4.00,8.00>, <-6.00, 4.00, 8.00>, <6.00,2.00,7.0>, <3.00,2.00,7.0>, <-3.00,2.00,7.0>, <-6.00,2.00,7.0>, <6.00,2.00,1.0>, <3.00,2.00,1.0>, <-3.00,2.00,1.0>, <-6.00,2.00,1.0>, <6.00,-2.00,0>, <3.00,-2.00,0>, <-3.00,-2.00,0>, <-6.00,-2.00,0> pigment { RichBlue } } #declare pclipe = box{<0.00, 0.00,0.00>, <4.00, 4.00, 2.50> pigment { Green } rotate <0,0,40> translate <-0.2,0,-4> } #declare pclipemenor = box{<0.00, 0.00,0.00>, <3.00, 3.00, 3.00> pigment { Green } rotate <0,0,40> translate < -0.4,0.8,-3> } #declare pcaneta = cylinder { < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 7.50 >, 3.00 pigment { Magenta } translate <-4.2, 0, -4> } #declare pcanetamenor = cylinder { < 0.00, 0.00, 0.00 >, < 0.00, 0.00, 8.00 >, 2.00 pigment { Magenta } translate <-4.2, 0, -4> } object { enfeite rotate <0,0,310> translate <4.6,4,-3.7> } difference { object { pcaneta } object { pcanetamenor } } difference { object { pclipe } object { pclipemenor } }