当前位置:网站首页>【TA-霜狼_may-《百人计划》】2.4 传统经验光照模型
【TA-霜狼_may-《百人计划》】2.4 传统经验光照模型
2022-07-01 03:24:00 【zczplus】
–
这部分内容跟着Games101已经详细推过了,主要看后半部分吧
光照模型的分类
- 基于物理理论的光照模型:偏重于使用物理的度量和统计方法,效果真实,计算复杂,实现较为复杂;
- 经验模型:对光照的模拟,通过简化和总结归纳,以达到可接受的效果;
本章节重点考虑经验模型的方法
漫反射
不受观察角度影响,Lambert光照模型仅仅针对漫反射:
镜面反射
受到观察角度影响,有Phong模型和Blinn-Phong模型两种这两种模型包含了漫反射、镜面反射、环境光三个部分,是最初得比较完整的模型。后者在前者基础上引入了半程向量从而降低了计算复杂度。
Phong模型:
Blinn-Phong模型:
区别就在于绿色框框中利用到了半程向量,半程向量的计算实现如下:
环境光
一般上对这部分光照进行简化,直接利用环境光颜色乘以漫反射材质。
着色方法
后面的内容应该对应的是Games101的着色方法章节,范别是逐平面、逐顶点和逐像素的着色,利用到的则是面差值、顶点插值和法线插值对上述部分进行实现。
对应英文名称分别是:
- Flat shading
- Gouraud shading
- Phong Shading
注意区分此处的Phong shading与之前的Phong模型,Phong shading注重着色的频率问题,而Phong模型则是在描述如何模拟真实的光照现象。
顶点法线
顶点法线之前一直不明白如何计算,看过Games101之后明白了是利用相邻面的法线和或者是加权和(权值为相邻面的面积)求得的。
总结
跟着入门精要第六章过了一遍,大致明白了各种经验光照模型的实现方法。

作业里要求的能量守恒的实现我愣住了,后面学完PBR再回来补吧。能量守恒的应用则是在于:光打到物体表面之后形成的漫反射,镜面反射以及被吸收的能量总和是一定的,无论如何变化整体强度不变。
感觉不带点基础来看百人有点不好理解,先速通一下《入门精要》吧,10天之内弄完。
边栏推荐
- 【EI检索】2022年第六届材料工程与先进制造技术国际会议(MEAMT 2022)重要信息会议网址:www.meamt.org会议时间:2022年9月23-25日召开地点:中国南京截稿时间:2
- RSN:Learning to Exploit Long-term Relational Dependencies in Knowledge Graphs
- 使用selenium自动化测试工具爬取高考相关院校专业招生分数线及排名情况
- File upload and download
- Finally in promise
- 报错:Plug-ins declaring extensions or extension points must set the singleton directive to true
- Gorilla/mux framework (RK boot): RPC error code design
- Include() of array
- 409. 最长回文串
- Valentine's Day is nothing.
猜你喜欢

Server rendering technology JSP

Feign remote call and getaway gateway

Learning notes for introduction to C language multithreaded programming

TEC: Knowledge Graph Embedding with Triple Context
![5. [WebGIS practice] software operation - service release and permission management](/img/5d/070e207bd96e60ba1846d644d4fb54.png)
5. [WebGIS practice] software operation - service release and permission management

Research on target recognition and tracking based on 3D laser point cloud

Pyramid Scene Parsing Network【PSPNet】论文阅读

Asgnet paper and code interpretation 2

衡量两个向量相似度的方法:余弦相似度、pytorch 求余弦相似度:torch.nn.CosineSimilarity(dim=1, eps=1e-08)

复习专栏之---消息队列
随机推荐
静态库使用MFC和共享库使用MFC的区别
409. 最长回文串
数据库DDL(Data Definition Language,数据定义语言)知识点
Test function in pychram
leetcode 1818 绝对值,排序,二分法,最大值
The difference between MFC for static libraries and MFC for shared libraries
Asgnet paper and code interpretation 2
Leetcode:剑指 Offer 59 - I. 滑动窗口的最大值
后台系统页面左边菜单按钮和右边内容的处理,后台系统页面出现双滚动
Appium fundamentals of automated testing - basic principles of appium
JS daily development tips (continuous update)
Valentine's Day is nothing.
389. 找不同
pytorch训练深度学习网络设置cuda指定的GPU可见
Processing of menu buttons on the left and contents on the right of the background system page, and double scrolling appears on the background system page
Gorilla/mux framework (RK boot): RPC error code design
Explain spark operation mode in detail (local+standalone+yarn)
监听器 Listener
Leetcode:829. Sum of continuous integers
RSN:Learning to Exploit Long-term Relational Dependencies in Knowledge Graphs