当前位置:网站首页>Project training of Software College of Shandong University rendering engine system radiation pre calculation (IX)
Project training of Software College of Shandong University rendering engine system radiation pre calculation (IX)
2022-06-12 15:51:00 【chenxiang_ two hundred thousand one hundred and eight】
< Project training of Software College of Shandong University > Rendering engine system —— Radiation precomputation ( Nine )
Preface
This project hopes to implement a basic renderer , At the same time, it can support the use of precomputing . This article mainly explains the PathTracer Specific code .
Project address
One 、 Basic logic
The path tracking process doesn't make much difference , The specific change is that the results are not displayed on the screen , Instead, save it to the picture . We opened up a space for the picture in advance , After that, make a good correspondence between the picture and the direction of local space , That is, each frame corresponds to a pixel of the picture , Then save the result of one frame directly into the picture .
Because what we store is the result of one frame , So before accumulate It doesn't work anymore , We use multiple samples within a pixel , Try to make the result converge in one frame .
about ToneMapping, Because we don't want to get a final color on the screen , But to get the incident light distribution for a certain point , Therefore, there is no need for tone mapping , If it does , On the contrary, you will get the wrong result when restoring .
Two 、 Main function code
1、 Trace the color

2、 Save color to cubemap

Normalize the solid angle before saving

summary
It mainly shows the PathTracer The main code of function realization .
边栏推荐
猜你喜欢

Servlet connects to database to realize user login function

Explore the Apache shardingsphere SQL parse format function

< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(四)

UDP summary (tcp/ip details volume 1/2)

SOA Architecture
![CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small](/img/2c/63f1c865105a74ed651bb0ef97ab60.png)
CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small

The difference between TCP and UDP, the three handshakes of TCP and the four waves of TCP
![CUDA out of memory 或 BrokenPipeError: [Errno 32] Broken pipe 或 OSError: [WinError 1455] 页面文件太小的解决办法](/img/2c/63f1c865105a74ed651bb0ef97ab60.png)
CUDA out of memory 或 BrokenPipeError: [Errno 32] Broken pipe 或 OSError: [WinError 1455] 页面文件太小的解决办法

从斐波那契数列求和想到的俗手、本手和妙手

Fiddler packet capturing (mobile app)
随机推荐
Using the CSDN markdown editor
CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small
Points chocolate (two points answer) Blue Bridge Cup provincial competition
[OWT server] customized script 3: server construction
Difference between tinyint and int
Raccourci vers le nouvel environnement du carnet de notes Jupiter
5g new scheme! Upgrade the existing base station and UE simulator to 5g millimeter wave band
Singleton mode instance
Broadcast and multicast (tcp/ip details volume 1/2)
广播和多播(TCP/IP详解卷1/2)
Apache kylin Adventure
Some useful websites
Golang collaboration scheduling (I): Collaboration Status
Jupyter notebook new environment shortcut
2021-06-20
[game server design cases] insights
Change according to the situation, the road to promotion in the second half of 2022
Dongmingzhu talks about batteries: the most essential thing is safety
< 山东大学软件学院项目实训 > 渲染引擎系统——点云处理(十)
< 山东大学软件学院项目实训 > 渲染引擎系统——辐射预计算(九)