Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Nickels

forward vector from a right-hand matrix.

This topic is 5411 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

if the right-hand matrix is row-major, would the forward vector be the second row of the matrix? what about the Up vector? thanks everyone.

Share this post


Link to post
Share on other sites
Advertisement
Well the forward vector depends on which coordinate axis you specify as the forward, x,y,z? If y is forward then it should be the second row of a row majour matrix.

Generally engineers have the convention that x and y are on the horisontal plane and z is the vertical, ie z is up and y could very well be forward.

Often in computer graphics however we are heavily influenced by the screen view, where x is left or right y is up and z extends out of the screen.

So in answer, it all depends...

Share this post


Link to post
Share on other sites
i am sure the z goes up and down.
so i guess the second row is the forward vector.
so where would my up vector be then?

Share this post


Link to post
Share on other sites
I think the general agreement with vectors is that they represent the axis x, y, and z respectively. So if z is the one you are after then it will be the third row in the matrix.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!