Advertisement

Matrix Shearing...

Started by June 03, 2003 08:06 AM
3 comments, last by jonnii 21 years, 8 months ago
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
-jonnii=========jon@voodooextreme.comwww.voodooextreme.com
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.
Advertisement
Ehm... why don''t you just try and see what happens?
alter ab or ba. you dont need to third collumn or row at all when working with 2d afaik.
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.
If at first you don't succeed, redefine success.

This topic is closed to new replies.

Advertisement