Jump to content
  • Advertisement

Archived

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

jonnii

Matrix Shearing...

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

Hi, Is it possible to shear in both the x and the y at the same time... this is for 2D. i blieve the form for shear is 1 0 shx 0 0 1 shy 0 0 0 1 0 0 0 0 1 is this correct? thanks

Share this post


Link to post
Share on other sites
Advertisement
I have absolutely (well, nearly) no idea what I''m doing, but

1 shx 0 0
shy 1 0 0
0 0 1 0
0 0 0 1

seems the one for me... as the y (column 2) coord of the source pixel influences the x coord (1st row) of the dest. pixel.

Just guessing here.

Share this post


Link to post
Share on other sites
alter ab or ba. you dont need to third collumn or row at all when working with 2d afaik.

Share this post


Link to post
Share on other sites
The shear matrix:

[1, cot( theta ), 0, 0]
[0, 1, 0, 0]
[0, 0, 1, 0]
[0, 0, 0, 1]

This will shear on the zy plane.

Death of one is a tragedy, death of a million is just a statistic.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!