// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2021-12-08 23:45:02 by stolfi // ====================================================================== // CORES E TEXTURAS background{ color rgb < 0.2, 0.2, 0.2 > } #declare tx_UFO_body = texture{ pigment{ color rgb < 0.2, 0.2, 0.2 > } finish{ diffuse 0.8 reflection 0.25 ambient 0.1 specular 0.5 roughness 0.1} } #declare tx_glass = 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 } } #declare tx_etSkin = texture{ pigment{ color rgb < 0.1, 0.6, 0.1 > } finish{ diffuse 0.8 ambient 0.9 specular 0.5 roughness 0.5} } #declare tx_etEye = texture{ pigment{ color rgb < 0.7, 0.0, 0.0 > } finish{ diffuse 0.8 ambient 0.6 specular 0.5 roughness 0.1} } // ====================================================================== // DESCRICAO DA CENA #declare ovni_radius = 1.000; #declare cabine_radius = 0.4; #declare head_radius = 0.2; #declare eye_radius = 0.05; #declare body_radius = 0.1; #declare neck_radius = 0.4; // Partes da cena: #declare ufo_sphere = sphere{ < 0.00, 0.00, 0.00 >, ovni_radius texture{ tx_UFO_body } } #declare box_diff = box{ < -1.00, -1.00, 0.00 >, < 1.00, 1.00, 1.00 > texture{ tx_UFO_body } } #declare cabine = cylinder { <0.00, 0.00, 0.00>, <0.00, 0.00, 1.00>, cabine_radius texture{ tx_glass } } #declare cabine_sphere = sphere{ < 0.00, 0.00, 1.00 >, cabine_radius texture{ tx_glass } } #declare et_head = sphere{ < 0.00, 0.00, 0.7 >, head_radius texture{ tx_etSkin } } #declare et_eye = sphere{ < head_radius-0.051, head_radius-0.051, 0.76 >, eye_radius texture{ tx_etEye} } #declare et_body = cone{ <0, 0, 0>, neck_radius, <0,0,0.5>, body_radius texture{ tx_etSkin } } #include "eixos.inc" // Aqui est� a cena, finalmente: union{ // object{ eixos(1.0) } difference{ difference{ object{ ufo_sphere translate < 0,0,2 > } object{ box_diff translate <0,0,2.3> } } object{ box_diff translate <0,0,0.7> } } union { object{ cabine translate <0,0,2>} difference { object{ cabine_sphere translate <0,0,2>} object{ cabine translate <0,0,2>} } } union { object{ et_body translate <0,0,2>} object{ et_head translate <0,0,2>} object{ et_eye translate <0,0,2>} object{ et_eye translate <0,0,2>} } } #include "camlight.inc" #declare centro_cena = < 0.30, 0.30, 2.50 >; #declare raio_cena = 2.0; #declare dir_camera = < 14.00, 7.00, 9.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)