当前位置:网站首页>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 .
边栏推荐
- Defer learning in golang
- Explore the Apache shardingsphere SQL parse format function
- 安装rhel 7/8 (红帽)虚拟机(转载)
- 从斐波那契数列求和想到的俗手、本手和妙手
- Notes on ARM 64 instructions
- 小飞页升级变智能修复Bug更快速了
- 【周赛复盘】LeetCode第80场双周赛
- Differences between microservice architecture and SOA Architecture
- Broadcast and multicast (tcp/ip details volume 1/2)
- Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11
猜你喜欢

虚拟机中用户和root忘记密码解决办法

POSTMAN-REST Client插件的应用

Two ways of array simulating queue

Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11

ER diagram made by StarUML based on the last student achievement management system

Redis string type common commands

Axure RP 9 for Mac(交互式产品原型设计工具)中文版

Change according to the situation, the road to promotion in the second half of 2022

IGMP报文(TCP/IP详解卷1/卷2)

Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11
随机推荐
MySQL blob and text types
Deepin20.6 rtx3080 installing graphics card drivers 510.60.02, cuda11.6, pytorch1.11
办公室VR黄片,骚操作!微软HoloLens之父辞职!
< 山东大学软件学院项目实训 > 渲染引擎系统——辐射预计算(八)
Use and understanding of generics
jupyter notebook新环境快捷方式
[jvm learning] parental delegation mechanism and PC register (program counter)
当编程纳入到高考。。。
Design concept of ORM framework
sql server 2008 的导入导出步骤
RARP总结(TCP/IP详解卷1/2)
Chapter I linear table
Apache Kylin 历险记
同源?跨域?如何解决跨域?
鼻孔插灯,智商上升,风靡硅谷,3万就成
Use of packet capturing tool Fiddler: simulating speed limit test process in weak network environment
Go Net Library (to be continued)
Differences between microservice architecture and SOA Architecture
Axure RP 9 for Mac(交互式产品原型设计工具)中文版
Some useful websites