// EXERCICIO 2 - Heli-Carro // By Daniel Salles de Araujo 05 Out 2000 #include "glass.inc" #include "colors.inc" #include "metals.inc" background{ color rgb < 0.00, 0.00, 0.00 > } light_source { < 10.00, 10.00, 10.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 10.00, 10.00, 10.00 > look_at < 0.00, 0.00, 0.00 > } #declare vermelho = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 1.0 roughness 0.005 ambient 0.1 } } #declare marrom = texture { pigment { color rgb < 1.00, 0.80, 0.80 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare azul = texture { pigment { color rgb < 0.0, 0.0, 1.0 > } } #declare corpo = sphere { < 0.00, 0.00, 0.00 >, 3.00 texture { vermelho } scale <1, 2, 1> } #declare roda = torus { 0.7, 0.3 texture { marrom } rotate < 90, 0, 0> } #declare helice = cylinder { <0, 0, 0>, <0, 0, 0.1>, 6.0 texture { azul } translate <0, 0, -3> rotate <0, 90, 0> } #declare carro = union { object { corpo } object { helice } object { roda translate <2.2, 3.5, 2> } object { roda translate <2.2, 3.5, -2> } object { roda translate <2.2, -3.5, 2> } object { roda translate <2.2, -3.5, -2> } } object { carro rotate < 0, 200, 90 > }