Sign in to follow this  

Transforming 3D coordinate to 2D

Recommended Posts

Hi, I’m not really graphics programmer, but I’m working on a project that requires me to transform the earth onto a 2D triangle or a square. I’m not familiar with any of the transformation/projection algorithms, so can anyone please help me out? I’m sure this could be done using some third party software, but I need the algorithm in order to implement it in my present program. Thanks raven

Share this post

Link to post
Share on other sites
Yea, all u need to do is draw the x and y, the z is only in the calculations when you are using the 4 by 4 matrix, for example, if you want to translate the object you use the identity matrix and just modify the last column...
|1 0 0 2|
|0 1 0 2|
|0 0 1 2|
|0 0 0 1|

u multiply that with

this will move the object +2 x, y and z....rotation matrices are a little different, they require sin/cos algorithms....its for sure on the site DevLiquidKnight gave above...i just wanted to give a short summary about them, i implement it all myself too but u must remember its not going to be as fast as other programs since you have to implement backfilling and view volume youself

and thanks alot DevLiquidKnight, that site really helped me out, i needed help with texture mapping and it was awsome....thanks

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this