bssrdf

博客园 首页 新随笔 联系 订阅 管理
  14 Posts :: 0 Stories :: 44 Comments :: 0 Trackbacks

Turbidity 3.0
Time      
6:00AM
Longitude 
0
Latitude  
20
Julian Day 
120

Note: Aerial perspective is not supported now. No extra gamma correction applied.


 
.Text Admin : Editing Post "Physical Sky in PBRT"


Update: Added Sunlight as a second light source.

Gamma 1.0


Gamma 2.2


Update: Sunlight is too bright with the same scaling as the skylight. I use a larger scaling factor to get the following image

还是用建筑物来表现太阳光效果好些

posted on 2006-06-08 06:26 BSSRDF 阅读(1136) 评论(10)  编辑 收藏

Feedback

#1楼  2006-06-20 19:17 ChenA      
呵呵,效果不错。
用的哪篇论文的算法?计算太阳的Intensity和位置用的哪个公式?
谢谢。
我最近也在做这方面的工作,我msn:chena224503@hotmail.com,有空聊聊啊。
  回复  引用  查看    

#2楼 [楼主] 2006-06-21 01:02 BSSRDF      
The paper is "A Practical Analytic Model for Daylight" by A. J. Preetham et al. (1999). The method from this paper has been used in Nextlimit Maxwell, the most advanced ray tracer today.

All the equations are listed in the paper, along with the c++ source code on their website (http://www.cs.utah.edu/vissim/papers/sunsky/).


  回复  引用  查看    

#3楼  2006-10-16 14:40 li kong [未注册用户]
将光谱转化成RGB的方法是怎样实现的?
有什么好的参考资料?
  回复  引用    

#4楼 [楼主] 2006-10-17 09:28 BSSRDF      
@li kong
The methods are described in the paper I mentioned above in very much details.

Google that paper's name will give you some additional information, especially a post on gamedev.net.
  回复  引用  查看    

#5楼  2006-10-18 19:09 li kong [未注册用户]
你介绍的这些资料我看了,他们使用的是xyY向XYZ转化,然后再转化成
RGB。我用这种方法实现了。
但是论文中skylight 和 sunlight对场景中物体的作用是用光谱计算的,
有个xyY向光谱的转化程序,我没找到具体的转化过程,论文用riS0Spectrum = RiRegularSpectralCurve(S0Amplitudes,300,830,54);
转化,但没有给出初始化的程序。你是怎样实现的?
或许实现Aerial perspective,图象更真实点,建筑上的蓝色太突出了,
使用后应该会削减点。

  回复  引用    

#6楼 [楼主] 2006-10-19 00:31 BSSRDF      
@li kong
I wrote a function which transforms SPD (spectrum data) to RGB through XYZ.

First you use CIE X,Y,Z data to convert SPD, which is a series of number corresponding to their wavelength, to XYZ. Then XYZ to RGB is straightforward.

  回复  引用  查看    

#7楼  2006-10-20 08:48 li kong [未注册用户]
由光谱值向CIE X,Y,Z转化是应用光谱采样,用离散的公式计算出来的。
但是怎样求根据CIE X,Y,Z所对应波长的光谱值呢?


  回复  引用    

#8楼  2006-10-20 11:01 li kong [未注册用户]
不好意思,还有个问题。
就是物体本身的颜色怎样计算,在室外的物体把太阳当做光源,用render equation计算?还是有别的方法计算?

  回复  引用    

#9楼  2006-11-03 12:05 AdamGamer      
Good work.
Is the image yor posted rendered in real time?

  回复  引用  查看    

#10楼 [楼主] 2006-11-03 13:05 BSSRDF      
@AdamGamer
No way for this kind of images to be rendered in real time, at least not in the near future.
  回复  引用  查看    


标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2006-06-24 10:42 编辑过


相关链接: