Advertisement

a 'skewing' matrix?

Started by December 14, 2002 09:15 PM
1 comment, last by billybob 22 years, 2 months ago
how would i make a matrix that skews a mesh. like this:

original:
+--------+
|        |
+--------+

skewed:
+
|.+....\.......\.........\...+
.......\.|
.........+
  
i know its a crap example, but if you see what i mean is it possible? i don't see how, because its almost 'conditional', like you have to multiply the y axis coord by the x or something like that. but it happens on a per-vertex basis, whereas matrices are like one time things, that get applied uniformly. but if it is possible, how? edit: after googling some more, i found out 'shear' is the same thing, but didn't find anything about matrices edit like number 5: the pos edit thing is messing up my diagram, but it was basically a box the same width but the right side was dropped down a bit [edited by - billybob on December 14, 2002 10:16:48 PM] [edited by - billybob on December 14, 2002 10:17:58 PM] [edited by - billybob on December 14, 2002 10:18:44 PM] [edited by - billybob on December 14, 2002 10:19:46 PM]
What the Matrix and Quaternion FAQ has on shearing matrices.

Advertisement
thanks

This topic is closed to new replies.

Advertisement