当前位置:网站首页>Games101 Lesson 7 shading 1 Notes
Games101 Lesson 7 shading 1 Notes
2022-07-06 07:23:00 【Fenghou Qimen L】
To color 1
One 、 The depth of the cache (Z-buffering)
(1) Painter algorithm : Like an oil painter painting , Draw the farthest first , Paint and cover from far to near .
① Painter's algorithm works in most cases , You need to arrange the distance first .
② But if there is partial coverage of each other , There will be problems with the painter's Algorithm , Here's the picture .
(2) The depth of the cache 
① The depth of the cache Z-buffer The algorithm records the depth of each pixel , In addition to recording the color of each pixel , The depth of each pixel is also recorded .
② The pseudo code of deep cache is as follows .
③ An example of deep caching is as follows .
④ The complexity of the deep cache algorithm is O(n).
Two 、 To color (Shading)
(1) Coloring in this course refers to applying different materials to objects .
(2) A simple coloring model :Blinn-Phong Reflectance Model
① Highlights are shown from top to bottom 、 Diffuse reflection 、 Three parts of ambient light .
(3) Shading point
① These inputs are required : Observation direction 、 normal 、 The direction of the light 、 Surface parameters ( Such as color 、 Brightness, etc ).
② Observation direction 、 normal 、 The illumination directions are unit vectors .
③ Shading discussed in this section does not consider shadows .
3、 ... and 、 Diffuse reflection (Diffuse Reflection)
(1) Definition of diffuse reflection 
① Light will be reflected evenly to all angles .
② The color is the same in all observation directions .
(2) The energy that light at different angles can accept 
(3) Light attenuation 
① The farther away the point is, the energy of light will be attenuated .
② For example, light radiates a circle , The length of the circumference near , The circumference in the distance is long , According to the conservation of energy , Distant points should get less energy .
(4)Lambertian Shading
① Combined with the energy received by light at different angles and the light attenuation formula, the coloring of a point can be obtained .
(5) Different diffuse reflection coefficients kd Examples of different coloring situations obtained .
reference
Course video link : GAMES101 Lecture07 Shading 1
边栏推荐
- leetcode704. Binary search (find an element, simple, different writing)
- 杰理之需要修改 gatt 的 profile 定义【篇】
- 数据仓库建设思维导图
- Methods for JS object to obtain attributes (. And [] methods)
- Oracle column to row -- a field is converted to multiple rows according to the specified separator
- [window] when the Microsoft Store is deleted locally, how to reinstall it in three steps
- Week6 weekly report
- C - Inheritance - hidden method
- Typescript void base type
- Ble of Jerry [chapter]
猜你喜欢

How Navicat imports MySQL scripts

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

L'auteur est mort? Ai utilise l'art pour conquérir l'humanité

杰理之BLE【篇】

JDBC learning notes

杰理之BLE【篇】
![Ble of Jerry [chapter]](/img/ed/32a5d045af8876d7b420ae9058534f.png)
Ble of Jerry [chapter]

1091: two or three things in childhood (multi instance test)
![If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]](/img/d6/92ad1c6f84415de6ab0dfd16cd6073.png)
If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]

MVVM of WPF
随机推荐
Raspberry pie serial port login and SSH login methods
Ble of Jerry [chapter]
Bit operation XOR
word怎么只删除英语保留汉语或删除汉语保留英文
ORACLE列转行--某字段按指定分隔符转多行
Ble of Jerry [chapter]
杰理之BLE【篇】
【JDBC】快速入门教程
Simple and understandable high-precision addition in C language
Lesson 12 study notes 2022.02.11
Typescript variable scope
Openjudge noi 2.1 1749: Digital Square
Excel的相关操作
Wechat official account infinite callback authorization system source code, launched in the whole network
烧录场景下的源代码防泄密方案分享
The way to learn go (I) the basic introduction of go to the first HelloWorld
jmeter性能测试步骤实战教程
Oracle column to row -- a field is converted to multiple rows according to the specified separator
Bugku CTF daily question: do you want seeds? Blackmailed
CDN acceleration and cracking anti-theft chain function