当前位置:网站首页>Sampling Area Lights
Sampling Area Lights
2022-07-01 02:31:00 【Crazy rotten ball】
Overview
This is just an introduction AreaLight Sampling of , The following default Light All are Area Light,Delta Light Not within the scope of this article .
Purpose : stay path tracing in ,Sampling Lights Is not intended to obtain a certain direction of a certain light source radiance, But to It is estimated that At present path The intersection of is generated by all light sources of the whole scene irradiance.
sample : Any estimation is made through a sample , So in Sampling Lights Sample in , Is the current path From the intersection of One way .
Integrals over Area
Due to the calculation of the area of the light source irradiance It's a lot easier than calculating the integral in the hemispherical direction of a point , therefore irradiance The area of the light source can be used as the integral for the calculation of .
Relation between area and solid angle :

As can be seen from the above figure dA and dω The relationship between :

Sampling Light Source
As mentioned earlier , After sampling to a light source , We need to estimate the total of this light source irradiance,irradiance Is obtained by integrating the solid angles in the hemisphere . According to Monte Carlo method , We need to know the direction from this light source to a point pdf, Finally participate in bsdf Calculation of .
Here are the specific steps for sampling light sources .
1) Because the scene may have too many lights , According to the light source distribution ( Or you can use uniform sampling ) sampling , It is necessary to calculate the pmf.
2) Sample a specific face of the light source , Calculate the position of the face in the light source pmf.
3) Randomly sample a point on the face , And generate rays with the illumination points for visibility detection first .
4) If this direction is visible , Calculate the direction pdf.
In the direction of light pdf The following is derived :
Sampled by AreaLight The area of the face of is A, The direction is ω, because pdf(ω) The integral of is 1, We have :

according to dω and dA The relationship between , The above integral can be converted from direction to point integral :

So we can get :


Put the last one pdf do irradiance Estimation .
One principle must be understood : What is the sample , It is necessary to calculate the pdf, For example, if the sample is a dot , that pdf That's the point pdf, The sample is the direction , So that's the direction pdf.
Reference
边栏推荐
- Detailed data governance knowledge system
- How to use Jieba participle in unity
- SWT/ANR问题--ANR/JE引发SWT
- Restcloud ETl数据通过时间戳实现增量数据同步
- Fix names in the table (first character uppercase, other lowercase)
- SWT / anr problem - deadlock
- Some uses of Halcon array
- 522. Longest special sequence II
- 视觉特效,图片转成漫画功能
- Zero foundation self-study SQL course | window function
猜你喜欢

SWT / anr problem - binder stuck

Zero foundation self-study SQL course | window function

Evaluation of the entry-level models of 5 mainstream smart speakers: apple, Xiaomi, Huawei, tmall, Xiaodu, who is better?

AI edge computing platform - beaglebone AI 64 introduction

Pycharm 打开远程目录 Remote Host

RestCloud ETL实践之无标识位实现增量数据同步
![[JS] [Nuggets] get people who are not followers](/img/cc/bc897cf3dc1dc57227dbcd8983cd06.png)
[JS] [Nuggets] get people who are not followers

Restcloud ETl数据通过时间戳实现增量数据同步

产业互联网中,「小」程序有「大」作为

Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
随机推荐
URLs and URIs
Ernie gram, an explicit and complete n-gram mask language model, implements explicit n-gram semantic unit knowledge modeling.
小程序自定义顶部导航栏,uni-app微信小程序自定义顶部导航栏
集群方法同步执行框架 Suona
go: finding module for package
nacos配置中心使用教程
园区运营效率提升,小程序容器技术加速应用平台化管理
股票开账户如何优惠开户?还有,在线开户安全么?
Alphabet rearrange inator 3000 (dictionary tree custom sorting)
十大劵商如何开户?还有,在线开户安全么?
Cluster method synchronous execution framework suona
Find the length of the common part of two line segments
如何在智汀中实现智能锁与灯、智能窗帘电机场景联动?
Template: globally balanced binary tree
UE4渲染管线学习笔记
(translation) reasons why real-time inline verification is easier for users to make mistakes
现在开户有优惠吗?另外,手机开户安全么?
SWT/ANR问题--ANR/JE引发SWT
go: finding module for package
鼠标悬停效果三