#include "colors.inc" // Standard Color definitions #include "textures.inc" // Standard Texture definitions camera { location <0,0,-40> look_at<0,0,0> //rotate<90,0,0> } light_source { <2000,2000,-2000> color White } light_source { <-2000,2000,-2000> color White } background { color White } #declare R1 = seed(38); #declare SpikeObj = blob { #declare Count = 0; #declare Switch2 = rand(R1)*10; #while (Count <= 1000) #declare Switch = rand(R1)*10; #declare Rad = rand(R1)*5 + 1; #declare Str = Rad; #if(Switch<5) #declare Str = -Rad; #end sphere { <10,0,0>,Rad,Str*2 rotate } #declare Count = Count+1; #end #if (Switch2 < 5) texture { Aluminum } #else texture { Aluminum pigment { color Red }} #end } object { SpikeObj }