Sign in to follow this  

Do I understand view transformations correctly?

This topic is 4216 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is how i understand how the camera works for the view transformation. I was gettig confused. Initially the camera will point at the orgin in the centre of the screen usally. If I want the camera to move to the right 2 unts along X axis. The view (screen)shifts to the left and I am looking at (2,0,0) in the centre of the screen . If I want the camera to rotate 45% as I look up along y axis. The view (screen)rotates down and I am looking at (2, 45 deg up, 0) in the centre of the screen but I am looking up and the terrain has shifted down. If I want output the view matrix I should see the coordiantes in theory? Is this right?

Share this post


Link to post
Share on other sites
Basically yes.

But i think what you should do is read about matrices.
Especially doing transformations using matrices.

Clicky : first result returned by google for "matrix transformation"

Share this post


Link to post
Share on other sites
if i want to know what point I am looking at eg a centre of the screen then what do i do?

Share this post


Link to post
Share on other sites
There is little value in knowing what you are looking at unless:

a) You are setting your initial lookat point
b) You are doing intersectoin

Otherwise it is just a case of doing rotations and translations of the view matrix.

Share this post


Link to post
Share on other sites
what i didn't like is that you are just plugging a few matrix values and the rest you take as it works fine. There just seems 1 way only to move the camera so accept it.

Share this post


Link to post
Share on other sites

This topic is 4216 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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