// Exercicio 3 de MC930 #include "textures.inc" #include "finish.inc" #include "glass.inc" #include "colors.inc" #include "metals.inc" background{ color rgb < 1.00, 1.00, 1.00 > } camera { location < 0.00, 3.50, 3.50 > right < 0.00, 1.20, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.50 > } light_source { <0.00, 4.00, 3.50> color rgb <1.00,1.00,1.00> } #declare preto = rgb < 0.00,0.00,0.00 >; #declare cinza = rgb <0.50,0.50,0.50>; plane { <0, 0, 1>, -1 texture {pigment{DMFWood4 scale 4} finish { Shiny }} } #declare base = box { <1.50, 1.00, 0.20>, <-2.00, -1.00, 0.00> texture {T_Glass1} } #declare ret1 = box { <1.30, 0.80, 1.50>, <0.30, -0.80, 0.20> texture {pigment{color preto}} } #declare furo1 = box { <1.20, 0.70, 1.51>, <0.40, -0.70, 0.20> texture {pigment{color cinza}} } #declare porta_caneta = cylinder { <-1.00, -0.50, 0.00> <-1.00, -0.50, 2.00> 0.45 open texture {pigment {color cinza}} } #declare cinzeiro = sphere { <-1.00, 0.50, 0.65> 0.45 texture {T_Silver_1A} } #declare oco_cinzeiro = sphere { <-1.00, 0.50, 0.65> 0.35 texture {T_Silver_1B} } #declare corte_cinzeiro = box { <-0.54, 0.03, 1.11>, <-1.46, 0.96, 0.45> texture {T_Silver_1B} } #declare porta_cigarro = cylinder { <0.00, 0.00, 0.00>, <0.00, 0.00, 0.15> 0.10 texture {T_Silver_1A} rotate <90.00,0.00,0.00> translate <-1.00,0.90,0.45> } object {base} difference { object {ret1} object {furo1} } object {porta_caneta} difference { difference { difference { object {cinzeiro} object {oco_cinzeiro} } object {corte_cinzeiro} } object {porta_cigarro} }