当前位置:网站首页>Games-101 闫令琪 5-6讲 光栅化处理 (笔记整理)
Games-101 闫令琪 5-6讲 光栅化处理 (笔记整理)
2022-06-11 22:47:00 【Crer_lu】
Games-101 闫令琪 5-6讲 光栅化处理 (笔记整理)
首先是第四讲Transformation没讲完的一点点内容 Viewport transformation
Viewport transformation
在projection结束后,所有几何体都已经被放在了一个[1, 1]^3中,下面就是如何把成像显示在屏幕上的过程
视角和宽高比的定义
视角(Vertical Field of View):取屏幕的上下边缘的中心点与(0,0)所成角度
宽高比(Aspect ratio):屏幕宽度和高度之比
利用这两个概念就可以轻松确定屏幕的各个要素
(图片来源:课程配套ppt)
屏幕的定义
(图片来源:课程配套ppt)
我们其实只要对原矩阵乘上矩阵 M V i e w p o r t M_{Viewport} MViewport
[ w i d t h / 2 0 0 w i d t h / 2 0 h e i g h t / 2 0 h e i g h t / 2 0 0 1 0 0 0 0 1 ] \begin{bmatrix} width/2&0&0&width/2\\ 0&height/2&0&height/2\\ 0&0&1&0\\ 0&0&0&1 \end{bmatrix} ⎣⎢⎢⎡width/20000height/2000010width/2height/201⎦⎥⎥⎤
Rasterization
本质上就是一个把图像识别并显现出来的一个过程
Drawing to Raster Displays
一些常见光栅化设备
Oscilloscope(早期)
CRT(示波器)
Frame Buffer(显存缓冲显示)
LCD(液晶显示)——利用光线的方向穿过液晶时方向转变,实现像素点不同的显示
LED——不同颜色提前设定,只有是否显示两种状态
Electrophoretic (Electronic Ink) Display——Kindle内部原理,刷新率低,但效果真实
Triangle——基础图形
Sampling——取样
由于取样速度跟不上信号变化速度导致图像失真,或者走样(或者是频率)
Aliasing(Jaggies)——锯齿
AntiAliasing——抗锯齿(AntiAlised Sampling)
方法一:提高分辨率
方法二:取样前模糊化(Blurring)处理
Filtering(滤波)= Convolution(卷积)
取样时对每一个像素块进行平均化处理,然后根据值的大小用不同灰度显示
卷积定理——两种选择结果相同
(时域下卷积,频域下乘积)

(图片来源:课程配套PPT)
Repeating的理解
从另一层面上讲:Sampling本质上是重复频域内容的结果
https://www.researchgate.net/figure/The-evolution-of-sampling-theorem-a-The-time-domain-of-the-band-limited-signal-and-b_fig5_301556095
Aliasing本质上是部分频域出现交叉的结果,所以我们也就明白了为什么模糊化处理可以抗锯齿。
(图片来源:课程配套PPT)
方法三:超级样本(Supersampling)MSAA
对一个像素点进行更小的拆分,根据包含在图形内部的点的个数来作为这一点处的取样值,但是会有一定的代价(cost)
(图片来源:课程配套PPT)
Today AntiAliasing
FXAA
图像化处理,对含锯齿的图像进行后期处理
TAA
根据上一帧的情况,作为这一帧图像的主要数据,但是主要应用于静态图像,动态图有别的处理方式。
DLSS
(Deep Learning Super Sampling)
通过人工智能的帮助,大量数据训练后即可对一些锯齿位置进行近乎准确的猜测,达到我们的目的。
边栏推荐
- Exercise 6-2 using functions to sum a special series of a numbers (20 points)
- 移动端——swipe特效之图片时间轴
- Matlab point cloud processing (XXIV): point cloud median filtering (pcmedian)
- 【解决】修改子物体Transform信息导致变换不对称、异常问题的解决方案
- 16 | 浮点数和定点数(下):深入理解浮点数到底有什么用?
- 6. project launch
- Is it too troublesome to turn pages manually when you encounter a form? I'll teach you to write a script that shows all the data on one page
- A simple example of linear regression in machine learning
- Exercise 8-5 using functions to realize partial copying of strings (20 points)
- MATLAB点云处理(二十五):点云生成 DEM(pc2dem)
猜你喜欢

Lecture de l'article dense Visual SLAM for RGB - D Cameras

Learn to crawl for a month and earn 6000 a month? Don't be fooled. The teacher told you the truth about the reptile

Tkinter study notes (III)

Matplotlib和tkinter学习笔记(一)

SVN本地部署server和cleint 并用阿里云盘自动备份

移动端——swipe特效之图片时间轴

Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?

Bit operation in leetcode
![[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects](/img/52/7e741154e4d6e61c5df7e8701ab177.png)
[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects

【解决】修改子物体Transform信息导致变换不对称、异常问题的解决方案
随机推荐
Matlab point cloud processing (XXIV): point cloud median filtering (pcmedian)
[matlab] second order saving response
Review C language I
IEEE-754 浮点转换器
Exercise 11-2 find week (15 points)
2022 online summit of emerging market brands going to sea will be held soon advance AI CEO Shou Dong will be invited to attend
Exercise 8-2 finding a specified element in an array (15 points)
Sword finger offer array question type summary
926. 将字符串翻转到单调递增
习题8-8 判断回文字符串 (20 分)
Exercise 6-6 using a function to output an integer in reverse order (20 points)
小程序启动性能优化实践
Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data
Using the command line to call shell in unity
仅需三步学会使用低代码ThingJS与森数据DIX数据对接
Analysis of the implementation principle of an open source markdown to rich text editor
360 online enterprise security cloud is open to small, medium and micro enterprises for free
Three years of college should be like this
Php+mysql library management system (course design)
[nodejs] electron installation