// 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_pele = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_azul = texture{ pigment{ color rgb < 0, 0.25, 0.70 > } } #declare tx_verde = texture{ pigment{ color rgb < 0, 0.7, 0.25 > } } #declare tx_cinza = texture{ pigment{ color rgb < 0.95, 0.95, 0.95 > } } #declare tx_laranja = texture{ pigment{ color rgb < 0.6, 0.4, 0.1 > } } #declare tx_marrom = texture{ pigment{ color rgb < 0.70, 0.3, 0.0 >} } #declare 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 0.1 } #declare tx_xadrez2 = texture{ pigment{ checker color rgb < 0.70, 0.82, 0.0 >, color rgb < 0.10, 0.4, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2 } #declare tx_chao = texture{ pigment{ color rgb < 1.00, 0.85, 0.85 > } finish{ diffuse 0.2 reflection 0.3*< 0.6, 0.85, 0.85 > ambient 0.1 } } // ====================================================================== // DESCRIÇÃO DA CENA // Partes da cena: #declare coluna = cylinder { <0, 0, 0>, <0, 0, 1>, 0.1 texture { tx_cinza } } #declare entrada = union{ object{ coluna } object{ coluna translate<0,1,0> } difference { box{ <-0.1, 0, 0.9>, <0.1, 1, 1.2> texture{tx_cinza}} text{ ttf "arial.ttf" "ENTRADA" 0.3 0.0 scale<0.2, 0.2, 1> rotate<0, 0, 90> rotate<0, 90, 0> translate<-0.15,0.04,1> } } } #declare bem_vindo = union{ text{ ttf "arial.ttf" "Bem-Vindo!!!" 0.1 0.0 scale<0.1, 0.1, 1> rotate<0, 0, 90> rotate<0, 90, 0> translate<0,-0.1,0.2> } cone{<0,0.12,0>,0.1,<0,0.12,0.2>,0} } #declare cubico = union{ text{ ttf "arial.ttf" "O CUBO" 0.1 0.0 scale<0.1, 0.1, 1> rotate<0, 0, 90> rotate<0, 90, 0> rotate<-45, 0, 0> translate<0,0,0.3> texture{tx_marrom}} box{<0,0,0>,<0.05,0.3,0.4> texture{tx_pele}} } #declare texto_navio = text{ ttf "arial.ttf" "NAVIO" 0.05 0.0 scale<0.2, 0.2, 0> rotate<0, 0, 90> rotate<0, 90, 0> translate<0,0,0.2>} #declare chao = box{<-4,-2,-0.1>,<0.5,2,0> texture{tx_chao}} #declare barco = union{ difference{ sphere{<1,1,1>, 0.8 texture{tx_pele}} sphere{<1,1,1.4>, 1 texture{tx_azul}} } box{<0.6,0.6,0.6>,<1.4,1.4,1> texture{tx_xadrez}} object{ texto_navio texture{tx_verde} translate<1.37,0.7,0.55> } } #include "eixos.inc" // Aqui está a cena, finalmente: union{ object{ eixos(3.00) } object{ entrada } object{ bem_vindo texture{tx_azul} rotate<0,0,30> translate<-0.7,0.25,0>} object{ cubico rotate<0, 0, 45> translate<-2,-1,0>} object{barco translate<-4,1,-0.2> scale<0.5,0.5,0.5>} object{chao} } #include "camlight.inc" #declare centro_cena = < 0.00, 2.00, 1.00 >; #declare raio_cena = 5.0; #declare dir_camera = < 5.00, 6.00, 1.00 >; #declare dist_camera = 20.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)