// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 09:50:30 by stolfi background{ color rgb < 1.00, 1.0, 1.0 > } //light_source { // < 10.00, 50.00, 10.00 > // color rgb < 1.00, 1.00, 1.00 > //} light_source { < 100.00, 50.00, 10.00 > color rgb < 1.00, 1.00, 1.00 > } light_source { < 5, 5.00, 5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 8.00, -5.00 > right < 2.40, 0.00, 0.00 > up < 0.00, 0.00, 1.80 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare tinta_A = texture { pigment { color rgb < 1.0, 0.0, 0.0 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 0.0, 0.0, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare carcaca = prism { linear_sweep linear_spline 0, // sweep the following shape from here ... 4, // ... up through here 4, // the number of points making up the shape ... <-2,0>,<6,0>,<3,3>,<-2,3> texture { tinta_A } } #declare roda1 = cylinder { <0,-0.4,-0.4>, <0,0,-0.4>, 0.4 texture { tinta_B } } #declare roda2 = cylinder { <0,4.4,-0.4>, <0,4,-0.4>, 0.4 texture { tinta_B } } #declare cilindro = cylinder { <0,0,-0.4>, <0,4,-0.4>, 0.2 texture { tinta_B } } declare eixo = union {object {cilindro} object {roda1} object {roda2}} // Aqui está a cena, finalmente: object {carcaca} object { eixo } object {eixo translate <4,0,0>}