当前位置:网站首页>GAMES101复习:三维变换
GAMES101复习:三维变换
2022-07-25 15:23:00 【老闫在努力】
目录
1.4 欧拉角:roll(旋转)、pitch(上下)、yaw(左右)
2.1.2 视图变换矩阵:先考虑逆矩阵,然后根据正交矩阵性质(逆=转置)获得
2.2.2 透视投影:先思考齐次坐标点表示的性质,后思考坍缩成立方体正交投影
1.平移、缩放、旋转
1.1 平移:最后一列为t

1.2 缩放:对角线为s

1.3 旋转:绕y轴比较特殊,因为叉乘是z×x

1.4 欧拉角:roll(旋转)、pitch(上下)、yaw(左右)

1.5 (补充)四元数:
2.视图变换
2.1 视图/相机变换,模型跟随视图一起变换
2.1.0 MVP变换:类比:现实中拍摄照片
思考现实生活中我们如何拍摄一张照片?
- 把拍摄的物体摆好(Model Transformation)
- 调整相机的位置(View Transformation)
- 拍照!cheese!(Projection Transformation)
2.1.1 相机/视角的定义:位置、视线方向、视线上方?
这里直接说结论:原点、上方为Y轴方向、视线为-Z方向


2.1.2 视图变换矩阵:先考虑逆矩阵,然后根据正交矩阵性质(逆=转置)获得
2.2 投影变换:正交投影、透视投影
3D to 2D

2.2.1 正交投影:先平移至原点,再缩放到标准坐标系

一个简单的理解:确定了相机的位置(原点)和朝向(-Z方向,上朝Y轴),直接在Z轴方向拖动模型,并将其平移和缩放到[-1,1]的范围内。

矩阵表示形式:

2.2.2 透视投影:先思考齐次坐标点表示的性质,后思考坍缩成立方体正交投影









边栏推荐
- UITextField的inputView和inputAccessoryView注意点
- Node learning
- CGO is realy Cool!
- 小波变换--dwt2 与wavedec2
- Solve the timeout of dbeaver SQL client connection Phoenix query
- MySQL installation and configuration super detailed tutorial and simple database and table building method
- 盒子躲避鼠标
- Spark SQL空值Null,NaN判断和处理
- How to solve the problem of scanf compilation error in Visual Studio
- Is it safe to open futures online? Which company has the lowest handling charge?
猜你喜欢

ML - Speech - advanced speech model

What is the Internet of things

Recommend 10 learning websites that can be called artifact

Delayed loading source code analysis:

ML - 语音 - 深度神经网络模型

Image cropper example

图论及概念

Overview of JS synchronous, asynchronous, macro task and micro task

Outline and box shadow to achieve the highlight effect of contour fillet

p4552-差分
随机推荐
2021HNCPC-E-差分,思维
VMware Workstation fails to start VMware authorization service when opening virtual machine
Xcode添加mobileprovision证书文件报错:Xcode encountered an error
CF685B-求有根树每颗子树的重心
Overview of JS synchronous, asynchronous, macro task and micro task
ML - 语音 - 语音处理介绍
理解“平均负载”
从 join on 和 where 执行顺序认识T-sql查询执行顺序
ML - 语音 - 高级语音模型
SVD奇异值分解推导及应用与信号恢复
Spark submission parameters -- use of files
NPM's nexus private server e401 E500 error handling record
HDU3873-有依赖的最短路(拓扑排序)
pageHelper不生效,sql没有自动加上limit
My creation anniversary
ML - natural language processing - Basics
window系统黑窗口redis报错20Creating Server TCP listening socket *:6379: listen: Unknown error19-07-28
Graph theory and concept
UITextField的inputView和inputAccessoryView注意点
Simulate setinterval timer with setTimeout
