论文部分内容阅读
提出了一个有效的线光源照明模型。该模型同时考虑了线光源在被照射表面引起的漫反射分量和镜面反射分量。通过将线光源看作一个具有无限细小宽度的有向长方形光源,我们得到了一个计算漫反射分量的简洁公式。而镜面反射分量被表示成一个Phong镜面模型为积分核的积分,高斯积分技术则用来求解该积分。考虑到镜面反射分量的求解比较复杂,我们通过一个简单的测试算法来快速决定当前被照射点是否位于高光区域内。最后,结合shaft体技术,给出了一个有效的线光源阴影生成算法。结果表明,该模型绘制的图形具有很强的真实感效果。
An effective linear light source lighting model is proposed. The model also considers the diffuse and specular components caused by the linear light source on the irradiated surface. By considering a linear light source as a directed rectangular light source with an infinitely small width, we obtain a concise formula for calculating the diffuse component. The specular component is represented as a Phong mirror model integrating the integral, Gaussian integration is used to solve the integral. Taking into account the complexity of the specular component of the more complex, we pass a simple test algorithm to quickly determine the current point of illumination is located in the highlight area. Finally, combined with the shaft body technology, an effective algorithm of line shadow generation is given. The results show that the graphics drawn by the model have a strong realistic effect.