// Arquivo para exemplificar exemplo de aplicação gráfica. // Last edited on 2001-06-02 22:20:05 by stolfi #include "colors.inc" camera { location < 8.00, -8.00, 4.00 > right < -0.90, 0.00, 0.00 > up < 0.00, 0.00, 1.20 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.0 > } light_source { < 7.00, 5.00, 7.00 > color rgb < 1.00, 1.00, 1.00 > } background { color Gray } #declare cor_toro = <0.0, 0.0, 1.0>; #declare tx_toro = texture{ finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment { color cor_toro filter 1 } } #declare cor_cilindro = <1.0, 0.0, 0.0>; #declare tx_cilindro = texture{ finish{ ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment { color cor_cilindro filter 1 } } #declare cor_placa = <0.9, 0.9, 0.0>; #declare tx_placa = texture{ pigment{ rgb cor_placa } finish{ ambient 0.1 diffuse 0.1 reflection cor_placa specular 0.1 roughness 0.005 reflection < 1.0, 0.8, 0.8> } } #declare toro = torus { 2.5, 1 rotate -90*x texture { tx_toro } } #declare base = box{ <3.0, 3.0, -2.0>, <-3.0, -3.0, -0.5> pigment{ Black } } #declare placa = box{ <3.0, 2.0, -1.8>, < 3.2, -2.0, -0.7> texture{ tx_placa } } #declare cilindro = cylinder { < 0.0, 0.0, -0.0>, < 0.0, 0.0, 4.5>, 2.0 texture { tx_cilindro } } #declare chao = box{ <9.0, 9.0, -2.2>, < -9.0, -9.0, -2.0> pigment{ marble } } #declare texto = text { ttf "arial.ttf" "T R O F E U" 0.1, 0.1 pigment { Blue } translate <0.0, 3.1, 0.0> // rotate 90*y rotate 90*x rotate 90*z } //box { <-19.0, 0.0, 0.0>, < 19.0, 0.0, 0.06 > pigment{ Blue } } //box { <0.0, -19.0, 0.0>, < 0.0, 19.0, 0.06 > pigment{ Green } } //box { <0.0, 0.0, -19.0>, < 0.06, 0.0, 19.0 > pigment{ Yellow } } object { union { object { chao } object { base } object { placa } // object { texto } object { toro hollow interior{ ior 1.5} } object { cilindro hollow interior{ ior 1.5} } } }