// Last edited on 2009-10-10 17:16:35 by stolfilocal // Processed by remove-cam-lights #macro eixo(ponta,cor,nome) union{ sphere{ <0,0,0>, 0.02 } cylinder{ <0,0,0>, 0.91*ponta, 0.02 } cone{ 0.90*ponta, 0.06, ponta, 0.00 } texture{ pigment{ color rgb cor } finish{ ambient 0.5 diffuse 0.5 } } } #end #macro eixos(tamanho) union{ object{ eixo( , <1.0,0.2,0.2>, "X") } object{ eixo( <0,tamanho,0>, <0.0,0.8,0.0>, "Y") } object{ eixo( <0,0,tamanho>, <0.3,0.3,1.0>, "Z") } } #end background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = 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_fosca = texture{ pigment{ color rgb < 1.00, 0.40, 0.40 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fruta = texture{ pigment{ color rgb < 1.00, 0.80, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca2 = texture{ pigment{ color rgb < 0.60, 0.60, 0.60 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca3 = texture{ pigment{ color rgb < 0.00, 0.00, 0.00 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca4 = texture{ pigment{ color rgb < 1.00, 0.20, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca5 = texture{ pigment{ color rgb < 0.20, 1.00, 0.20 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.90, 0.70 > } finish{ diffuse 0.1 reflection 0.8*< 1.00, 0.90, 0.70 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.97, 0.98, 1.00 > filter 0.50 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare raio = 2.000; #declare bolinha = sphere{ < 0,0,0 >, 0.60 } #declare bolota = sphere{ < 0,0,0 >, 1.50 } #declare bola_grande = sphere{ < 0.00, 0.00, 0.00 >, raio texture{ tx_plastico } } #declare pino = cylinder{ < -2.00, +2.00, -1.00 >, < +2.00, -2.00, +1.00 >, 0.75 texture{ tx_fosca } } #declare furo = cylinder{ < -1.00, -2.00, -2.00 >, < +1.00, +2.00, +2.00 >, 0.75*raio texture{ tx_fosca } } #declare j_body2 = cylinder{ < +1.50, +1.50, +0.00 >, < +1.50, +1.50, +3.00 >, 1.50 texture{ tx_fosca } } #declare j_body_hole = cylinder{ < +1.50, +1.50, +0.20 >, < +1.50, +1.50, +2.80 >, 1.40 texture{ tx_fosca } } #declare j_body = box{ < +0.00, +0.00, +3.00 >, < +3.00, +3.00, +0.00 > texture{ tx_fosca } } #declare j_top = cone{ < +1.50, +1.50, +4.50 >, 1.00, < +1.50, +1.50, +3.00 >, 0.60 texture{ tx_vidro } } #declare j_hole = cone{ < +1.50, +1.50, +4.80 >, 0.90, < +1.50, +1.50, +2.70 >, 0.40 texture{ tx_vidro } } #declare j_man_1 = box{ < +1.60, +3.00, +2.40 >, < +1.40, +4.00, +2.60 > texture{ tx_fosca2 } } #declare j_man_2 = box{ < +1.60, +3.80, +2.40 >, < +1.40, +4.00, +1.00 > texture{ tx_fosca2 } } #declare j_man_3 = cylinder{ < +1.50, +4.00, +1.10 >, < +1.50, +5.00, +1.10 >, 0.20 texture{ tx_fosca3 } } #declare j_bico = cylinder{ < +1.50, +0.00, +1.00 >, < +1.50, -1.00, +1.00 >, 0.20 texture{ tx_vidro } } #declare j_furo_bico = cylinder{ < +1.50, +0.40, +1.00 >, < +1.50, -1.10, +1.00 >, 0.15 texture{ tx_vidro } } #declare j_left_cute = box{ < +2.80, +0.00, -0.10 >, < +3.10, +3.00, +3.10 > texture{ tx_fosca4 } } #declare j_right_cute = box{ < +0.20, +0.00, -0.10 >, < -0.10, +3.00, +3.10 > texture{ tx_fosca4 } } #declare j_laranja = union{ cylinder{ < +0.00, +0.00, +0.00 >, < +0.00, +0.00, +0.30 >, 0.06 translate < +1.47, +1.47, 5.10 > texture{ tx_fosca5 } } sphere{ < 0.00, 0.00, 0.00 >, 0.50 translate < 1.50, 1.50, 4.70 > texture{ tx_fruta } } } #declare g_cut = box{ < +0.00, -3.10, -0.10 >, < -4.00, +7.10, +7.10 > texture{ tx_fosca2 } } #declare body_formatted = difference{ object{ j_body2 } union{ object{ j_left_cute } object{ j_right_cute } } } #declare cena = union{ difference{ object{ body_formatted } union{ object{ body_formatted scale 0.9 translate < +0.20, +0.20, +0.20 >} object{ j_hole } object{ j_furo_bico } } } object{ j_man_1 } object{ j_man_2 } object{ j_man_3 } difference{ object{ j_bico } object{ j_furo_bico } } difference{ object{ j_top } object{ j_hole } } object{ j_laranja } } union{ object{ cena translate -3.7*z } intersection{ object{ cena } object{ g_cut translate < 1.50, 0.00, 0.00 > } translate +2.7*z } } // Original camera parameters: // #local cam_ctr = <0.00,0.00,1.00> // #local cam_vec = (<14.00,7.00,7.50>-<0.00,0.00,1.00>) // #local cam_sky = z #include "camlight.inc" camlight(<0.00,0.00,1.40>,8.5,<10,7,5>,17.0,z,1.2)