Page 1 of 1

More about reflection

Posted: 2011-09-02T08:42:51-07:00
by wc2005
Hi, everybody! I love the reflection effect so much.
Please look at the screenshot here: http://img12.imageshack.us/my.php?image ... oncopy.png. Follow the instructions here http://www.imagemagick.org/Usage/advanced/#reflections, I can create a reflection like figure 1. Now I want a to create a reflection like figure 2 but I don't know how to do that, any suggestions? Thanks.

Re: More about reflection

Posted: 2011-09-04T02:39:13-07:00
by anthony
Create the reflection as you did for image 1, the distort the result, as a single unit! Use SRT, Affine, or Perspective!

I mention this method in the reflection examples....
Just append the reflection to the source image first, then distort the source image as if it has no reflection attached, letting its reflection distort along with the main image...

Re: More about reflection

Posted: 2011-09-07T00:00:54-07:00
by wc2005
Thanks so much for your precious reply!

Follow your instruction, we must distort the source image. But for this image (a .png file with a transparent background): http://img268.imageshack.us/my.php?imag ... ctiont.png, if we distort the source image, the result is wrong, I think. What can I do to have a right result in this case?

Many thanks!

Re: More about reflection

Posted: 2011-09-07T04:34:26-07:00
by anthony
I can see your problem. Tricky. You basically can not just simply 'flip' the image.

You just need to use affine to create the reflection image that 'flips' along the line of the feet.

Look at the affine using arrows distortion example
http://www.imagemagick.org/Usage/distorts/#affine

For your image your control arrows goes from from the first foot to the second, The other arrow from the first foot straight up (any distance). that gives you your three points for affine distortion.

For reflection the upward arrow goes downward by the same length while the other 'ground' arrow does not change (only one control point changes). That will 'flip' the reflects correctly for that image.

Re: More about reflection

Posted: 2011-09-10T20:28:20-07:00
by wc2005
Thanks, Anthony!

I'm trying. I must say it takes me too long to define points for control arrows for an image and this is the problem. Unlike the other reflection types, I have to redefine points for each image for this reflection type. I have too many images, so I wonder if there is another way to achieve this? Thanks a lot!

Re: More about reflection

Posted: 2011-09-11T04:49:10-07:00
by anthony
The other way would be to automate the selection of the 'fixed' control points.

Perhaps the 'best' fit of a sloped line to the image.