// Monica Aparecida Pires Nascimento RA 7873 // Mestre : Stolfi - Aula 30/06/01 - Carroceria // Last edited on 2001-07-31 15:57:46 by stolfi #include "textures.inc" # declare cor_vermelha = < 2.0,0.0,0.0 >; # declare cor_branca = < 1.0,1.0,1.0 >; # declare cor_azul = < 0.0,0.0,1.0 >; #declare ctr = <10,-2,-2> camera { location ctr + <15,15,10> right <-1.2,0,0> up <0,0.9,0> sky y look_at ctr } background{ color rgb < 0.0, 0.0, 0.5> } light_source { < 70, 500, 70> color rgb 1.2*<1,1,1> } #declare tinta_A = texture { pigment { color rgb < 1,1,0> } finish { diffuse 0.8 ambient 0.3 specular 0.2 roughness 0.004 reflection 0.3 } } // Declaracao das coordenadas #declare A1 = <6, 3, 2>; #declare A2 = <6, 0, 1>; #declare A3 = <6, 0, 1>; #declare A4 = <6, 2, 2>; #declare A5 = <11, 5, 3>; #declare A6 = <9, 1, 1>; #declare A7 = <9, 1, 1>; #declare A8 = <8,1, 1>; #declare A9 = <13, 5, 3>; #declare A10 = <12, 1.5, 1>; #declare A11 = <12, 1, 2>; #declare A12 = <13, -5, -3>; #declare A13 = <18, 4, 3>; #declare A14 = <14, 2, 1>; #declare A15 = <26, -1, 2>; #declare A16 = <21, -2, -5>; // Exemplo de BICUBIC //bicubic_patch { // type 1 flatness 0.0100 u_steps 3 v_steps 3, // variaveis declaradas e Texture { } } #declare patchA= bicubic_patch { type 1 flatness 0.1 u_steps 5 v_steps 5, A1, A2, A3, A4, A5,A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16 texture { Copper_Metal }} plane { y, 0 pigment { checker < 1.0,1.0,1.0>, < 0.0,0.0,0.30 >} finish { ambient 0.4 diffuse 0.6 } translate -4*y } // Para verificar a posicao dos pontos sphere { A1, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A2, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A3, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A4, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A5, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A6, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A7, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A8, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A9, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A10, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A11, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A12, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A13, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A14, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A15, 0.1 texture {pigment {color rgb <1,0,0> }}} sphere { A16, 0.1 texture {pigment {color rgb <1,0,0> }}} // figura final object {patchA}