当前位置:网站首页>Games101 review: 3D transformation
Games101 review: 3D transformation
2022-07-25 15:33:00 【Lao Yan is working hard】
Catalog
1. translation 、 The zoom 、 rotate
1.1 translation : The last column t
1.2 The zoom : The diagonal to s
1.3 rotate : Around the y The shaft is special , Because cross multiplication is z×x
1.4 Euler Angle :roll( rotate )、pitch( Up and down )、yaw( about )
1.5 ( Add ) Four yuan number :
2.1 View / The camera changes , The model changes with the view
2.1.0 MVP Transformation : analogy : Take photos in reality
2.1.1 The camera / Definition of perspective : Location 、 Direction of sight 、 Above line of sight ?
2.2 Projection transformation : Orthographic projection 、 Perspective projection
1. translation 、 The zoom 、 rotate
1.1 translation : The last column t

1.2 The zoom : The diagonal to s

1.3 rotate : Around the y The shaft is special , Because cross multiplication is z×x

1.4 Euler Angle :roll( rotate )、pitch( Up and down )、yaw( about )

1.5 ( Add ) Four yuan number :
2. View transformation
2.1 View / The camera changes , The model changes with the view
2.1.0 MVP Transformation : analogy : Take photos in reality
Think about how we take a picture in real life ?
- Put the objects in order (Model Transformation)
- Adjust the position of the camera (View Transformation)
- Taking pictures !cheese!(Projection Transformation)
2.1.1 The camera / Definition of perspective : Location 、 Direction of sight 、 Above line of sight ?
Here is the conclusion : origin 、 For the above Y Axis direction 、 The line of sight is -Z Direction


2.1.2 View transformation matrix : First consider the inverse matrix , Then according to the properties of orthogonal matrix ( The inverse = Transposition ) get
2.2 Projection transformation : Orthographic projection 、 Perspective projection
3D to 2D

2.2.1 Orthographic projection : First translate to the origin , Zoom back to the standard coordinate system

A simple understanding : Determine the position of the camera ( origin ) And orientation (-Z Direction , Shang Dynasty Y Axis ), Directly in Z Drag the model in the axis direction , And pan and zoom it to [-1,1] Within the scope of .

Matrix representation :

2.2.2 Perspective projection : First think about the properties of homogeneous coordinate point representation , Post thinking collapses into cube orthogonal projection









边栏推荐
- Xcode added mobileprovision certificate file error: Xcode encoded an error
- How to finally generate a file from saveastextfile in spark
- 请问seata中mysql参数每个客户端连接最大的错误允许数量要怎么理解呢?
- ZOJ - 4114 Flipping Game-dp,合理状态表示
- PAT甲级1151 LCA in a Binary Tree (30 分)
- MySQL heap table_ MySQL memory table heap Usage Summary - Ninth Five Year Plan small pang
- MySQL transactions and mvcc
- Deadlock gossip
- Ml speech depth neural network model
- Args parameter parsing
猜你喜欢
随机推荐
PAT甲级1153 Decode Registration Card of PAT (25 分)
Understanding the execution order of T-SQL query from the execution order of join on and where
2019浙江省赛C-错排问题,贪心
The development summary of the function of fast playback of audio and video in any format on the web page.
ios 面试题
Find out what happened in the process of new
PAT甲级1152 Google Recruitment (20 分)
ICPC2021昆明M-暴力+主席树
Args parameter parsing
matlab--CVX优化工具包安装
《图书馆管理系统——“借书还书”模块》项目研发阶段性总结
异步fifo的实现
C#精挑整理知识要点12 异常处理(建议收藏)
GAMES101复习:变换
JVM-垃圾收集器详解
Ml speech depth neural network model
Get the ask code corresponding to the key pressed by the keyboard
Object.prototype. Hasownproperty() and in
Reflection - Notes
Node learning








