// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2023-09-13 14:31:41 by stolfilocal // Original version by jstolfi // Moved Around by jevs // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.45, 0.10, 0.20 > } #declare tx_estofado = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_rodas = texture{ pigment{ color rgb < 0.0, 0.0, 0.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_escape = texture{ pigment{ color rgb < 0.90, 0.0, 0.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_pernas = texture{ pigment{ color rgb < 0.70, 0.70, 0.70 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 1.0, 1 , 0 >, color rgb < 1, 1 , 1 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } // ====================================================================== // DESCRI��O DA CENA #declare raio = 2.000; // Partes da cena: #declare guidao = intersection { object{ box { <0, 0, 0>, <4, 1, 1> }} object {sphere { <0.5, 1, 0>, 1 // , radius }} texture { tx_pernas } } #declare escapamento = cone { <0, -1, 0>, 1.0 // , center & radius of one end <0, 1, 0>, 0.25 // , center & radius of the other end } #declare assento = box { < 0, 0, 0>, <4, 1, 4> // near lower left corner, far upper right corner texture { tx_estofado } } #declare janelaEncosto = box { < 0, 0, 0>, <2, 4, 1> // near lower left corner, far upper right corner texture { tx_estofado } } #declare rodinha = sphere { <0, 0, 0>, 0.5 // , radius texture { tx_rodas } } #declare caboPerna = cylinder { <0, 0, 0.2>, <0, 0, 4>, 0.25 // center of one end, center of other end, radius open // remove end caps texture { tx_pernas } } #declare perna = union { object{rodinha} object{caboPerna} } #declare escapamento = cone { <0, -1, 0>, 1.0 // , center & radius of one end <0, 1, 0>, 0.25 // , center & radius of the other end texture{tx_escape} rotate <0, 0, 180> // } // #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare donut = torus { 2, 0.5 pigment{ color rgb < 1, 1, 1> } } #declare MySphere = sphere { <0, 0, 0>, 1 // , radius } #declare guidaoDois = intersection { object{donut} object{MySphere} texture { tx_pernas } } #include "eixos.inc" // Aqui est� a cena, finalmente: union{ // object{ eixos(5.00)} object{ guidaoDois } difference { union { object{ assento } object{ assento rotate <90, 0, 0> } translate <0, 0, 4> } object{ janelaEncosto translate <1, -0.5, 6> } } object{ guidao translate <1.5, -4, 6> } object{ perna translate <0.5, 0, 0> } object{ perna translate <3.5, -3.5, 0> } object{ perna translate <0.5, -3.5, 0> } object{ perna translate <3.5, 0, 0> } object{ escapamento translate <0.5, 2, 4> } object{ escapamento translate <3.5, 2, 4> } object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } } #include "camlight.inc" #declare centro_cena = < 1.50, -1.00, 4.00 >; #declare raio_cena = 8.0; #declare dir_camera = < 8.00, -14.00, 5.00 >; #declare dist_camera = 10*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)