|
![](/i/fill.gif) |
When running the following code with:
povray +a0.03 +kff240
#include "colors.inc"
#include "metals.inc"
#include "stones.inc"
#include "math.inc"
light_source { <10, 50, -30> rgb 1 }
camera {
location <0.0, 6.0, -15.0>
up y
right x*(image_width/image_height)
look_at 0.0
}
#default {
pigment { White }
finish { ambient 0.1 diffuse 0.6 }
}
difference {
plane { y, 0 }
sphere { 0.0, 5.0 }
pigment { White*0.625 }
finish { ambient 0 diffuse 0.4 }
}
difference {
intersection {
torus { 5.0, 0.75 }
cylinder { -0.5*y, 0.5*y, 6.0 }
}
sphere { 0.0, 4.9375 }
}
#declare Frame_Rate = 24;
#declare Duration = 10;
#declare Frame_Count = Frame_Rate * Duration;
#macro index(seconds)
#local tick = (1 / Frame_Count) * Frame_Rate;
seconds*tick
#end
union {
union {
difference {
cylinder { -0.375*y, 0.375*y, 4.875 }
cylinder { -0.4375*y, 0.4375*y, 4.625 }
}
difference {
cylinder { -0.375*y, 0.375*y, 4.5 }
cylinder { -0.4375*y, 0.4375*y, 4.25 }
}
}
difference {
cylinder { -0.375*y, 0.375*y, 4.125 }
cylinder { -0.4375*y, 0.4375*y, 3.875 }
#if(clock <= index(5))
rotate (3600*pow((clock-index(0)),2)/index(5))*x
#else
rotate (3600*(clock-index(5))/index(10))*x
#end
}
}
A.D.B.
Post a reply to this message
|
![](/i/fill.gif) |