In Photoshop there is a tool that allows the selection to be "Distorted". This allows easy shadow creation among other things. How could this sort of distortion be applied for a polygon (a bunch of points)?
Thanks
In Photoshop there is a tool that allows the selection to be "Distorted". This allows easy shadow creation among other things. How could this sort of distortion be applied for a polygon (a bunch of points)?
Thanks
This all links into matrices unless I'm mistaken - you'll want to look it up on the net, I'll not be onto it for a couple of weeks but thought I might as well give you a pointer.
If your aim is to accomplish something like this (black original, red after distortion)
then you can:
Using such a sequence of such distortion cycles, you can get the transformation that you want.
This particular distortion (pictured) is called the "shear" effect and is just a matter of applying an horizontal offset to each scanline of the polygon.
Many graphic effects can be done with simple primitives like this (there is even a shear rotation).
Have a look at "Graphic GEMS" with Google.