摘要: Let there be light.介绍了光与物体之间的作用,主要是pixel与颜色之间的关系.其中提到了cos公式,为了做本章的图,我用python产生数据,gnuplot队数据进行展现.python 代码:import mathimport iooutput = io.open("LightsData.txt",'w');thetaStart = -2*math.pithetaEnd = 2*math.pithetaCount = 10000deltaTheta = (thetaEnd-thetaStart)/thetaCountiRange = ra 阅读全文
posted @ 2012-12-25 15:20 geometry_ 阅读(188) 评论(0) 推荐(0) 编辑