- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个位置(纬度/经度)和一个时间戳(年/月/日/小时/分钟)。
假设天空晴朗,是否有算法可以粗略估计当时和地点的阳光色温?
如果我知道当时的天气情况,有没有建议的方法可以根据当时的云量来修改色温?
最佳答案
我建议看看this paper它对 CG 应用程序有很好的实际实现:
A Practical Analytic Model for Daylight A. J. Preetham Peter Shirley Brian Smits
Abstract
Sunlight and skylight are rarely rendered correctly in computer graphics. A major reason for this is high computational expense. Another is that precise atmospheric data is rarely available. We present an inexpensive analytic model that approximates full spectrum daylight for various atmospheric conditions. These conditions are parameterized using terms that users can either measure or estimate. We also present an inexpensive analytic model that approximates the effects of atmosphere (aerial perspective). These models are fielded in a number of conditions and intermediate results verified against standard literature from atmospheric science. Our goal is to achieve as much accuracy as possible without sacrificing usability.
Both compressed postscript and pdf files of the paper are available.
Example code is available.
Color images from the paper are shown below.
关于colors - 计算日光的预期色温,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31198810/
我是一名优秀的程序员,十分优秀!