Jump to content
  • Advertisement

Archived

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

Guest Anonymous Poster

Parallel Projections

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

Guest Anonymous Poster
How could I manipulate the matrices (D3D matrices) so that a quad would be drawn like a isometric tile?

Share this post


Link to post
Share on other sites
Advertisement
The world matrix would be unity.

The view matrix could, i think, be a shear in x, followed by a shear in y followed. i.e.

Sx =
[ 1 sx 0 0 ]
[ 0 1 0 0 ]
[ 0 0 1 0 ]
[ 0 0 0 1 ]

Sy =
[ 1 0 0 0 ]
[ sy 1 0 0 ]
[ 0 0 1 0 ]
[ 0 0 0 1 ]

experiment with sx and sy each between 0 and 1 to get the particular tile shape you want.

The projection matrix is just whatever parallel projection is appropriate for your application.

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!