关于povray:天网
上一篇:第一颗卫星终于能够着手安排天网了。前几篇文章写得凌乱,而且也着实无趣。这是因为,它们充其量不过是我的一些学习笔记。 这篇文章仍然无趣,因为有变量,有各种几何体,有宏,有数组,有循环,有 union,没有 difference,有动画……最终我画进去的货色,无非是一个模仿地球自转的奇怪的几何体,只管我给它取了个巨大的名字叫世界。 从头开始每一份 .pov 文件都应该以 #version 3.7; // 取决于所用的 POV Ray 版本#include "colors.inc"global_settings { assumed_gamma 1.0}作为开始,skynet.pov 也不例外。 为了失去的图形点线明显,最好是定义一组全局变量, #declare PointSize = 0.03;#declare LineThickness = 0.5 * PointSize;#declare ArrowLength = 3 * PointSize;#declare PointColor = texture { pigment { color Gray50 } }#declare LineColor = texture { pigment { color Yellow } }#declare X_Color = texture { pigment { color Red } }#declare Y_Color = texture { pigment { color Green } }#declare Z_Color = texture { pigment { color Blue } }一是能够防止代码中呈现过多的幻数,二是便于图形的批改。 ...