// Bernardo do Amaral Teodosio - 167494 - MC937 A // LAB 08 // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.75, 0.80, 0.85 > } #local tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #local tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #local tx_fosca_2 = texture{ pigment{ color rgb < 0.40, 0.40, 0.40 > } finish{ diffuse 0.9 ambient 0.1 } } #local tx_fosca_3 = texture{ pigment{ color rgb < 1.00, 1.00, 0.00 > } finish{ diffuse 0.9 ambient 0.1 } } #local tx_fosca_black = texture{ pigment{ color rgb < 0.20, 0.20, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } } #local tx_coke = texture{ pigment{ color rgb < 1, 0, 0 > } finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 } } #local tx_coke_2 = texture{ pigment{ color rgb < 0.9, 0.00, 0.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #local tx_white = texture{ pigment{ color rgb < 1, 1, 1 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #local tx_fosca_4 = texture{ pigment{ color rgb < 0.5, 0.9, 0.5 > } finish{ diffuse 0.9 ambient 0.1 } } #local tx_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 } } #local 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 } } #local tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #local tx_xadrez_2 = texture{ pigment{ checker color rgb < 0.00, 0.02, 0.00 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 1 } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: #include "eixos.inc" union { difference { prism { 0, 3, 6, <0, 0> <0.5, 1> <2.5, 1> <3, 0> <2.5, -1> <0.5, -1> rotate <0, 0, 0> texture { tx_coke_2 } scale 1 } prism { 0, 3, 6, <0.01, 0> <0.49, 0.9> <2.49, 0.99> <2.99, 0> <2.49, -0.99> <0.49, -0.99> rotate <0, 0, 0> texture { tx_coke_2 } scale 1 translate <0, 0.0, 0.01>} text { ttf "arialbd.ttf" "Deus te ama" 3 0 texture { tx_coke_2 } rotate <90, 0, 270> scale 0.4 translate <3.5, 2.5, 0.5>} } light_source { <0.5, 1.5, 0> rgb <1, 1, 1> } box { <0, 0, 0>, <0.1, 6, 6> texture { tx_white } translate <4, -1, -2>} } #include "camlight.inc" #local centro_cena = < 0.00, 3.00, 0.00 >; #local raio_cena = 6.0; #local dir_camera = < -14.00, 7.00, 4.00 >; #local dist_camera = 5*raio_cena; #local intens_luz = 0; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)