I:source code
1.ini文件
;POV-Ray animation ini file
Antialias=Off
Antialias_Threshold=0.1
Antialias_Depth=2
Input_File_Name="1.pov"
Initial_Frame=1 //起始帧1,最后一帧200, 总共产生200张图片
Final_Frame=200
Initial_Clock=0 //在1.pov文件中 clock的值为变量 ,利用这个变量,产生不同的过程图片
Final_Clock=1
Cyclic_Animation=on
Pause_when_Done=off
1.pov文件
#include"colors.inc"
#include"stones.inc"
background {
color Gray
}
camera {
location <10, 20, 10>
look_at <0,0,0>
// angle 36
}
light_source {
<500, 500, -1000> White
}
plane {
y, -5
pigment { checker Green White
}
}
#macro myball(xx,zz,yy)
sphere {
<xx,0,yy>,0.2
pigment {Red}
finish {phong .9}
}
#end
#declare hcircle=union {
#local pii=3.1415;
#local rr=5;
#for (deg,0,360,5)
#local degg=deg*pii/180.0;
#local yp=sin(degg)*rr;
#local xp=cos(degg)*rr;
myball(xp,0,yp)
#end
}
#declare cball=union {
object {
hcircle
}
object {
hcircle
rotate x*90
}
object {
hcircle
rotate z*90
}
sphere {
<0,0,0>,5
pigment { White filter .5}
finish {phong 1}
}
}
//clock 0 0.1 0.2 0.3 1
object
{
cball
rotate x*360*clock //clock为 200分之1到 200共200帧图片
}
II:Figure

III:Video
视频效果如下:
http://pan.baidu.com/s/1eRcp6iI
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。