Linear Transform From 3D Space To 2D Space
Author: Kagula
Date: 2010-03-23
简介:
本文是文章后半部分所列教材的学习笔记。
Introduction
How a point from the 3d cartesian space project to window space. I explanation it used Matlab language symantics.I assume the reader be familiar with matlab and linear algebra.
World Space To Camera Space
Here I suppose a point is in the 3d cartesian space,other words is in the world space. It’s already undergo the linear transform of some rotation , translation , uniform scales and the shear.
Now I stand in the original point and want view the star in the sky, how can I see it.
Assume the star is a point in the world space I call it Xworld. The same point I see with my eye is in my view space(also name it camera space).How to transform the point from world space to camera space.
First I assume the point in the 4d tuple.The coordinate I defined here is, A Axis Left to right is positive direction I call it x axis. Down to up and perpendicular to x axis is y axis. Another axis perpendicular with x and y axis is z axis,From your eye to the monitor is positive direction. Where they cross is original point,I assigned it to(0,0,0). The fourth component of the point I defined 1,why be 1 I discuss later.
Xworld=[x1,y1,z1,1]’
Xview =[x2,y2,z2,1]’
Mview=[a11 a12 a13 a14;a21 a22 a23 a24;a31 a32 a33 a34]
So the identity should be like this