#include "colors.inc" camera { location <-3, -15, -7.5> look_at <7, 0, 0> } background { color Black } //to make the patch easier to see light_source { <0, 0, -500> White } plane { y, 700 texture { pigment { SkyBlue } finish { ambient 1 diffuse 0} } texture { pigment { bozo turbulence .5 color_map { [0 White] [1 White filter 1] } } finish { ambient 1 diffuse 0 } scale <1000, 250, 250> rotate <5, 45, 0> } } #declare prata = texture { pigment { Silver } finish { ambient .1 diffuse .4 specular .3 roughness 0.001 reflection .3 metallic } } #declare A1 = <0.0, 0.0, 0.0>; #declare A2 = <0.0, 1.0, 0.0>; #declare A3 = <0.2, 2.5, 0.0>; #declare A4 = <0.4, 2.8, 0.0>; #declare A5 = <1.0, 0.0, -1.5>; #declare A6 = <1.0, 1.0, -1.5>; #declare A7 = <1.1, 2.6, -1.5>; #declare A8 = <1.2, 3.0, 0.0>; #declare A9 = <4.0, 0.0, -1.1>; #declare A10 = <4.0, 1.0, -1.1>; #declare A11 = <4.0, 3.0, -1.1>; #declare A12 = <4.0, 3.4, 0.0>; #declare A13 = <6.0, 0.0, -2.0>; #declare A14 = <6.0, 1.0, -2.0>; #declare A15 = <6.0, 3.0, -2.0>; #declare A16 = <6.0, 3.4, 0.0>; #declare B1 = <8.0, 0.0, -3.0>; #declare B2 = <8.0, 1.0, -3.0>; #declare B3 = <8.0, 3.0, -3.0>; #declare B4 = <8.0, 3.4, 0.0>; #declare B5 = <10.0, 0.0, -1.5>; #declare B6 = <10.0, 1.0, -1.5>; #declare B7 = <10.0, 2.6, -1.5>; #declare B8 = <10.0, 3.0, 0.0>; #declare B9 = <17.0, 0.0, 0.0>; #declare B10 = <17.0, 0.0, 0.0>; #declare B11 = <17.0, 0.0, 0.0>; #declare B12 = <17.0, 0.0, 0.0>; #declare carro1 = union { 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 { prata }} sphere{ A1, 0.1 pigment { Yellow }} sphere{ A2, 0.1 pigment { Yellow }} sphere{ A3, 0.1 pigment { Yellow }} sphere{ A4, 0.1 pigment { White }} sphere{ A5, 0.1 pigment { Blue }} sphere{ A6, 0.1 pigment { Blue }} sphere{ A7, 0.1 pigment { Blue }} sphere{ A8, 0.1 pigment { White }} sphere{ A9, 0.1 pigment { Yellow }} sphere{ A10, 0.1 pigment { Yellow }} sphere{ A11, 0.1 pigment { Yellow }} sphere{ A12, 0.1 pigment { White }} sphere{ A13, 0.1 pigment { Blue }} sphere{ A14, 0.1 pigment { Blue }} sphere{ A15, 0.1 pigment { Blue }} sphere{ A16, 0.1 pigment { White }} } #declare carro2 = union { bicubic_patch{ type 1 flatness 0.1 u_steps 5 v_steps 5 A13, A14, A15, A16, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12 texture { prata }} sphere{ A13, 0.1 pigment { Yellow }} sphere{ A14, 0.1 pigment { Yellow }} sphere{ A15, 0.1 pigment { Yellow }} sphere{ A16, 0.1 pigment { White }} sphere{ B1, 0.1 pigment { Blue }} sphere{ B2, 0.1 pigment { Blue }} sphere{ B3, 0.1 pigment { Blue }} sphere{ B4, 0.1 pigment { White }} sphere{ B5, 0.1 pigment { Yellow }} sphere{ B6, 0.1 pigment { Yellow }} sphere{ B7, 0.1 pigment { Yellow }} sphere{ B8, 0.1 pigment { White }} sphere{ B9, 0.1 pigment { Blue }} sphere{ B10, 0.1 pigment { Blue }} sphere{ B11, 0.1 pigment { Blue }} sphere{ B12, 0.1 pigment { White }} } object { carro1 } object { carro1 scale <1,-1,1> } object { carro2 } object { carro2 scale <1,-1,1> }