POV-Ray
POV-Ray屏幕截图(Windows XP) |
|
| 開發者 | The POV-Team |
|---|---|
| 穩定版本 | 3.6.2/ 2009年6月1日 |
| 預覽版本 | 3.7 rc3 |
| 作業系統 | Windows、Mac OS 、Linux |
| 類型 | 三维计算机图形 |
| 許可協議 | POV-Ray License |
| 網站 | www.povray.org |
POV-Ray,全名是Persistence of Vision Raytracer,是一个使用光线跟踪绘制三维图像的开放源代码免费软件。运行POV脚本语言。它是基于DKBTrace来开发的,DKBTrace是由 David Kirk Buck和 Aaron A. Collins编写在 Amiga上的。POV-ray早期也受到了Polyray raytracer 作者 Alexander Enzmann 的帮助。很多漂亮的图片就是由POV-ray来制作的。
目录 |
历史[编辑]
该软件最初发展始于80年代。,David Kirk Buck下载了一个为 Unix编写的Amiga光线跟踪软件的 source code。有趣的是,当他玩了一段时间后,他觉得应该自己写一个类似软件,最初名字叫DKBTrace 。 他把它贴在了一个论坛上面,以为别人会对它感兴趣。 1987, Aaron Collins下载了DKBTrace然后开始了 x86机器的移植工作。他和David Buck一起合作为它添加了更多的功能特性。直到这个软件更加的流行,他们已经为了加新功能而应付不过来的时候。 1989, David 把这个项目变成了一个程序员团队合作的工程。这时候,他觉得已经没有资格来命名软件名字了。所以考虑了很多新的名字。 "STAR"(为动画和渲染而生存的软件:Software Taskforce on Animation and Rendering)是一个最初的考虑,但是最后变成了 "持续不断更新版本的光线跟踪引擎Persistence of Vision Raytracer," 简写为 "POV-Ray" .
POV-Ray 是第一个在空间轨道渲染出图片的光线跟踪软件,由 马克·沙特尔沃思在 国际空间站 渲染。
特征[编辑]
当前版本[编辑]
基元[编辑]
场景描述语言(Scene Description Language)例子[编辑]
下面的例子给出了场景描述语言 (Scene Description Language)在POV-Ray的一个应用实例。展示了使用视角,光线,一个简单的方块模型和缩放,旋转,平移变换的效果。
#version 3.6;
#include "colors.inc"
global_settings { assumed_gamma 1.0 }
background { color rgb <0.25, 0.25, 0.25> }
camera { location <0.0, 0.5, -4.0>
direction 1.5*z
right x*image_width/image_height
look_at <0.0, 0.0, 0.0> }
light_source { <0, 0, 0>
color rgb <1, 1, 1>
translate <-5, 5, -5> }
light_source { <0, 0, 0>
color rgb <0.25, 0.25, 0.25>
translate <6, -6, -6> }
box { <-0.5, -0.5, -0.5>
<0.5, 0.5, 0.5>
texture { pigment { color Red }
finish { specular 0.6 }
normal { agate 0.25 scale 1/2 } }
rotate <45,46,47> }
下面的脚本片段展示了使用变量声明,赋值,比较和while循环结构。
#declare the_angle = 0;
#while (the_angle <= 360)
box { <-0.5, -0.5, -0.5>
<0.5, 0.5, 0.5>
texture { pigment { color Red }
finish { specular 0.6 }
normal { agate 0.25 scale 1/2 } }
rotate the_angle }
#declare the_angle = the_angle + 45;
#end