Transform 3d viewport vector to 2d vector

Posted by learning_sam on Game Development See other posts from Game Development or by learning_sam
Published on 2012-06-20T00:04:49Z Indexed on 2012/06/20 3:24 UTC
Read the original article Hit count: 228

Filed under:
|
|
|

I am playing around with 3d transformations and came along an issue.

I have a 3d vector already within the viewport and need to transform it to a 2d vector. (let's say my screen is 10x10)

Does that just straight works like regualar transformation or is something different here?

i.e.: I have the vector a = (2, 1, 0) within the viewport and want the 2d vector.

Does that works like this and if yes how do I handle the "0" within the 3rd component?

© Game Development or respective owner

Related posts about 2d

Related posts about 3d