目录
一、基础知识
计算机3D图形学最最最基本的目标就是:将构建好的3D物体显示在2D屏幕坐标上;可以先了解一下相关知识。
防丢:下面两篇文章内容我打包到资源中了,可以在我的资源中找到;
要将一个3维图形 在二维界面旋转显示,可以采用旋转矩阵的方式;一个点需要进行三次矩阵点乘,然后把图形所有的顶点全部进行三次点乘就可以获得最终的点坐标
1.矩阵运算
大学唯一挂的科-线性代数;必须先补充一下,链接是讲的比较简单的文章;不用回去翻书。
线性代数- 矩阵运算
2.三维坐标旋转矩阵变换
二维旋转矩阵推导
下面的文章是坐标变换的过程
三维坐标旋转矩阵推导过程(包看懂)
3.三维旋转矩阵
绕X轴旋转 θ \theta θ角度的旋转矩阵Rx(θ)
R x ( θ ) = [ 1 0 0 0 cos θ − sin θ 0 sin θ cos θ ] R_x(\theta) = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos\theta & -\sin\theta \\ 0 & \sin\theta & \cos\theta \end{bmatrix} Rx(θ)= 1000cosθsinθ0−sinθcosθ
绕Y轴旋转 θ \theta θ角度的旋转矩阵 Ry(θ)
R y ( θ ) = [ cos θ 0 sin θ 0 1 0 − sin θ 0 cos θ ] R_y(\theta) = \begin{bmatrix} \cos\theta & 0 & \sin\theta \\ 0 & 1 & 0 \\ -\sin\theta & 0 & \cos\theta \end{bmatrix} Ry


1963

被折叠的 条评论
为什么被折叠?



