// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2010-03-04 15:44:01 by stolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_body = texture{ pigment{ color rgb < 0.80, 0.0, 0.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_head = texture{ pigment{ color rgb < 0, 1, 0 > } finish{ diffuse 0.9 ambient 0.2 specular 0.5 roughness 0.005 } } #declare tx_foot = texture{ pigment{ color rgb < 0.0, 0.5, 1.0 > } finish{ diffuse 0.8 ambient 0.4 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 0.00, 0.80, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 1.00, 1.00 > } finish{ diffuse 0.4 reflection 0.7*< 1.00, 1.00, 1.00 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 1.0, 1.0, 1.0 >, color rgb < 0.0, 0.0, 0.0 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare tx_cc = texture{ pigment{ color rgb < 0.00, 0.9, 0.5 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } // ====================================================================== // DESCRIÇÃO DA CENA #declare raio = 2.000; // Partes da cena: #declare head = sphere{<0,0,0>, 0.5 texture{tx_head} } #declare left_upper_joint = cylinder{ <0, 0, 0>, <0.3, 0, 1>, 0.15 texture{ tx_body } } #declare right_upper_joint = cylinder{ <0, 0, 0>, <-0.3, 0, 1>, 0.15 texture{ tx_body } } #declare left_bottom_joint = cylinder{ <0, 0, 0>, <0.15, 0, -0.6>, 0.15 texture{ tx_body } } #declare right_bottom_joint = cylinder{ <0, 0, 0>, <-0.15, 0, -0.6>, 0.15 texture{ tx_body } } #declare body = box{ <0, 0, 0>, <2.2, 0.5, 0.5> texture{tx_body} } #declare foot = box{ <0, 0, 0>, <1.2, 0.6, 0.18> texture{tx_foot} } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare ccilindro = cylinder{ < 0, 0, 0>, < 0, 0, 0.2>, 0.3*raio texture { tx_cc } } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(20.00) } object{foot translate <-0.1,0.1,0>} object{foot translate <1.8,0.1,0>} object{left_bottom_joint translate <2.2,0.4,0.8>} object{body translate <0.3, 0.2, 0.8>} object{right_bottom_joint translate <0.6,0.4,0.8>} object{left_upper_joint translate <2.2,0.4, 1.25>} object{right_upper_joint translate <0.6,0.4,1.25>} object{head translate <2.5,0.45,2.4>} object{head translate <0.3,0.45,2.4>} } #include "camlight.inc" #declare centro_cena = < 0.00, 0.00, 1.00 >; #declare raio_cena = 6.0; #declare dir_camera = < 4.00, 35, 4.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)