// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2003-08-01 00:12:11 by stolfi background{ color rgb < 0.75, 0.80, 0.90 > } camera { location 0.85*< 10.00, -4.00, 5.00 > right -1.2*x up 0.9*y sky z look_at < 0.00, 0.00, 1.00 > } light_source { < 4.00, -30.00, 20.00 > color rgb 1.4*< 1.00, 1.00, 1.00 > } light_source { < 24.00, 10.00, 10.00 > color rgb 0.8*< 1.00, 1.00, 1.00 > } #declare raio = 2.000; #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.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_P = texture { pigment { color rgb < 0.00, 0.00, 0.00> } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_G = texture { pigment { color rgb < 0.00, 1.00, 0.00> } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } # declare caixa1 = box { < 1.50, -2.00, 0.00> <-1.50, 2.00, 0.50> texture { tinta_A } } # declare encosto1 = box { < -1.00, -0.50, 0.00> < -1.50, 0.50, 2.00> texture { tinta_P } } # declare encosto2 = box { < -0.50, -2.00, 1.00> < -1.00, 2.00, 4.00> texture { tinta_A } } // Adicionado braço para a poltrona para dar mais realismo! # declare brasso1 = box { < 0.00, 2.00, 0.00> < 0.50, 2.25, 1.50> texture { tinta_P } } # declare brasso2 = box { < 0.00, -2.00, 0.00> < 0.50, -1.75, 1.50> texture { tinta_P } } # declare brasso3 = box { < 2.00, 1.75, 1.50> < -0.75, 2.25, 1.75> texture { tinta_A } } # declare brasso4 = box { < 2.00, -2.25, 1.50> < -0.75, -1.75, 1.75> texture { tinta_A } } # declare peh1 = cylinder { < 0.00, 0.00, -2.00> < 0.00, 0.00, 0.00> 0.25 texture { tinta_P } } # declare peh2 = cylinder { < 2.00, 0.00, -2.00> < 0.00, 0.00, -2.00> 0.25 texture { tinta_P } } # declare peh3 = cylinder { < 0.00, -2.00, -2.00> < 0.00, 0.00, -2.00> 0.25 texture { tinta_P } } # declare peh4 = cylinder { < 0.00, 0.00, -2.00> < 0.00, 2.00, -2.00> 0.25 texture { tinta_P } } # declare peh5 = cylinder { < 0.00, 0.00, -2.00> < -2.00, 0.00, -2.00> 0.25 texture { tinta_P } } # declare rodinha1 = sphere { < 1.75, 0.00, -2.25> 0.25 texture { tinta_P } } # declare rodinha2 = sphere { < -1.75, 0.00, -2.25> 0.25 texture { tinta_P } } # declare rodinha3 = sphere { < 0.00, 1.75, -2.25> 0.25 texture { tinta_P } } # declare rodinha4 = sphere { < 0.00, -1.75, -2.25> 0.25 texture { tinta_P } } // Aqui está a cena, finalmente: #declare poltrona = union { object { caixa1 } object { encosto1 } object{ peh1 } object{ peh2 } object{ peh3 } object{ peh4 } object{ peh5 } object{ rodinha1 } object{ rodinha2 } object{ rodinha3 } object{ rodinha4 } object{ encosto2 } object{ brasso1 } object{ brasso2 } object{ brasso3 } object{ brasso4 } } object { poltrona rotate -135*z }