// MP004 - COMPUTACAO GRAFICA // NOME: LUCIANA RAMOS // RA: 007868 // Last edited on 2001-07-31 15:30:55 by stolfi // TRABALHO DE LABORATORIO 7 // Ferrari Grand Price #include "colors.inc" //ckground{ color rgb < 0.00, 1.0, 0.50 > } background{ color rgb < 1.00, 0.80, 0.50 > } #declare ctr = < 25, 5, 10 >; light_source { <70, 200, 300> color rgb < 1.00, 1.00, 1.00 > } camera { location ctr + < 50, 25 , -85> // location ctr + < 100, 0, 0> right < -1.2,0,0 > up < 0,0.9,0 > sky y look_at ctr } #declare cor_cristal = < 0.5, 0.5, 1 > #declare tx_cristal = texture { finish { ambient 0.1 diffuse 0.1 reflection 0.25 specular 1 roughness 0.001 } pigment { color cor_cristal filter 1 } } //metal #declare cor_espelho = < 1, 0.8, 0.5> #declare tx_espelho = texture { pigment { rgb cor_espelho } finish { ambient 0.05 diffuse 0.05 reflection cor_espelho specular 0.20 roughness 0.05 } } #declare A1 = <0,0,0>; #declare A2 = <0,0,0>; #declare A3 = <0,0,0>; #declare A4 = <0,0,0>; #declare A5 = <6,0,0>; #declare A6 = <6,9,12>; #declare A7 = <6,17,24>; #declare A8 = <6,28,37>; #declare A9 = <14,0,0>; #declare A10 = <14,9,12>; #declare A11 = <14,17,24>; #declare A12 = <14,28,37>; #declare A13 = <19,2,0>; #declare A14 = <19,2,0>; #declare A15 = <19,2,0>; #declare A16 = <19,2,0>; #declare B1 = <19,2,0>; #declare B2 = <19,2,0>; #declare B3 = <19,2,0>; #declare B4 = <19,2,0>; #declare B5 = <35,2,0>; #declare B6 = <35,8,10>; #declare B7 = <35,16,19>; #declare B8 = <35,22,30>; #declare B9 = <53,2,0>; #declare B10 = <53,8,10>; #declare B11 = <53,16,19>; #declare B12 = <53,22,30>; #declare B13 = <67,2,0>; #declare B14 = <67,2,0>; #declare B15 = <67,2,0>; #declare B16 = <67,2,0>; #declare patchA = bicubic_patch { type 1 flatness 0.01 u_steps 5 v_steps 5 A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12 A13, A14, A15, A16 } #declare patchB = bicubic_patch { type 1 flatness 0.01 u_steps 5 v_steps 5 B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12 B13, B14, B15, B16 } #declare ptA1 = sphere { A1, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA2 = sphere { A2, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA3 = sphere { A3, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA4 = sphere { A4, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA5 = sphere { A5, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA6 = sphere { A6, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA7 = sphere { A7, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA8 = sphere { A8, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA9 = sphere { A9, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA10 = sphere { A10, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA11 = sphere { A11, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA12 = sphere { A12, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA13 = sphere { A13, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA14 = sphere { A14, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA15 = sphere { A15, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptA16 = sphere { A16, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB1 = sphere { B1, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB2 = sphere { B2, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB3 = sphere { B3, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB4 = sphere { B4, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB5 = sphere { B5, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB6 = sphere { B6, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB7 = sphere { B7, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB8 = sphere { B8, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB9 = sphere { B9, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB10 = sphere { B10, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB11 = sphere { B11, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB12 = sphere { B12, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB13 = sphere { B13, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB14 = sphere { B14, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB15 = sphere { B15, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare ptB16 = sphere { B16, 1.0 texture { pigment {color rgb <1,0,0> } } } #declare x1 = cylinder { < +100.00, 0.00, 0.00 >, < -100.00, 0.00, 0.00 >, 0.1 texture { pigment { color rgb < 1.00, 0.00, 0.00 > } } } #declare y1 = cylinder { < +0.00, 100.00, 0.00 >, < 0.00, -100.00, 0.00 >, 0.1 texture { pigment { color rgb < 0.00, 1.00, 0.00 > } } } #declare z1 = cylinder { < 0.00, 0.00, 2.00 >, < 0.00, 0.00, -2.00 >, 0.1 texture { pigment { color rgb < 0.00, 0.00, 1.00 > } } } // Aqui está a cena, finalmente: union{ /* object{ x1 } object{ y1 } object{ z1 } */ object {ptA1 } object {ptA2 } object {ptA3 } object {ptA4 } object {ptA5 } object {ptA6 } object {ptA7 } object {ptA8 } object {ptA9 } object {ptA10 } object {ptA11 } object {ptA12 } object {ptA13 } object {ptA14 } object {ptA15 } object {ptA16 } object {ptB1 } object {ptB2 } object {ptB3 } object {ptB4 } object {ptB5 } object {ptB6 } object {ptB7 } object {ptB8 } object {ptB9 } object {ptB10 } object {ptB11 } object {ptB12 } object {ptB13 } object {ptB14 } object {ptB15 } object {ptB16 } object { patchA texture { tx_espelho } hollow interior { ior 1.0 } } object { patchB texture { tx_espelho } hollow interior { ior 1.0 } } plane {<0,1,0>,-8 pigment { brick color <1,1,0.5>, color <0.5, 0.5, 1>} finish{ ambient 0.4 diffuse 0.6 } } plane {<0,-1,0>,-8 pigment { brick color <1,1,0.9>, color <1,1,0.5>} finish{ ambient 0.4 diffuse 0.6 } scale 1000 } }