// // MC930A - TRABALHO 2 - 05/outubro/2000 // // Paulo Eduardo Ferreira de Castro - 971379 // background{ color rgb < 1, 1, 1 > } light_source { < 100.00, 100.00, -100.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -10.00, 2.00, -30.00 > look_at < 0.00, 10.00, 0.00 > } #declare tinta_A = texture { pigment { color rgb < 0.10, 0.80, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.6 } } #declare tinta_B = texture { pigment { color rgb < 0, 0, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.6 } } #declare tinta_C = texture { pigment { color rgb < 1, 1, 0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.6 } } #declare tinta_D = texture { pigment { color rgb < .5, .5, .5 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.6 } } #declare caixa = // create a box that extends between the 2 specified points box { <0, 0, 0>, // one corner position < 20, 10, 10> // other corner position texture { tinta_A } } #declare cabine = cylinder { <0, 0, 0>, <0, 0, 10>, 5 texture { tinta_C } } #declare roda = cylinder { <0, 0, 0>, <0, 0, 2>, 2 texture { tinta_B } } #declare eixo = cylinder { <10, 10, 5>, <10, 12, 5>, 2 texture { tinta_B } } #declare helice = box { <2, 12, 4>, // one corner position <18, 13, 6> // other corner position texture { tinta_D } } // Aqui está a cena, finalmente: union { object { caixa } object { cabine translate <0, 5, 0.01> scale <1, 1, .95> } object { cabine translate <20, 5, 0.01> scale <1, 1, .95> } object { roda translate <5, 0, 0.01> } object { roda translate <15, 0, 0.01> } object { roda translate <5, 0, 7.99> } object { roda translate <15, 0, 7.99> } object { eixo } object { helice } }