//Brian vincent //Helicoid Animation //Files with predefined colors and textures #include "colors.inc" #include "glass.inc" #include "golds.inc" #include "metals.inc" #include "stones.inc" #include "woods.inc" //Place the camera camera { sky <0,0,1> //Don't change this direction <-1,0,0> //Don't change this right <-4/3,0,0> //Don't change this location <15,10,10> //Camera location look_at <0,0,0> //Where camera is pointing angle 35 //Angle of the view } //Ambient light to "brighten up" darker pictures global_settings { ambient_light White } global_settings { max_trace_level 10 } //Place a light light_source { <15,0,0> color White*2 } light_source { <0,15,0> color White*2 } plane{<0,0,-1>,7 texture {T_Silver_3A}} //Set a background color background { color White } //Create the array to collect the projected points #declare b = 128; #declare q = array[b]; #declare p = array[b]; #declare s = array[b]; #declare o = array[b]; #declare r=.07; #declare d = 3; #declare a = 2.5; //Project the points #declare i=0; #declare j=0; #declare k=0; #while(i; #declare p[i]= < 0,0,d-k>; cylinder { q[i], p[i], r texture {T_Gold_1A}} #declare s[i]= < -a*cos(j), -a*sin(j), d-k>; #declare o[i]= < 0,0,d-k>; cylinder { s[i], o[i], r texture {T_Copper_1A }} #declare j=j+4*(2*pi)/b; #declare k=k+2*(d/b); #declare i=i+1; #end