Page 1 of 1

Perspective distortion of a bitmap image?

Posted: Fri Jun 22, 2018 8:44 am
by thatkeith
I’d like to take a triangular section of an image and apply a perspective-style distortion to it, converting an A-shaped triangle to an H-shaped end result. The top would be massively distorted, I know, but that’s fine.

Apologies for the crude ascii graphic!

Code: Select all

  /\          |—————|
 /  \     –>  |     |
/    \        |     |
——————        |—————|
The image quality is not a massive concern; it would be just to represent the top part of an equirectangular panoramic image, not be final rendered output.

Is this possible in LC?

Re: Perspective distortion of a bitmap image?

Posted: Fri Jun 22, 2018 8:53 am
by Klaus
Hi Keith,

please browse Hermanns really amazing collection of image-manipulating scripts here:
http://forums.livecode.com/viewtopic.ph ... &start=105
I'm sure he already has created something like that.

Best

Klaus

Re: Perspective distortion of a bitmap image?

Posted: Fri Jun 22, 2018 4:20 pm
by thatkeith
Wow. Those example stacks really are amazing things! I'm going to have to do some serious digging, reading and pondering, I think, but it is fantastic that LC *can* do this and that those stacks exist. Thank you Klaus and Hermann, both!

BTW, the first page of that thread is even better, as it contains links to just over 100 (!) example stacks covering an astounding range of things. http://forums.livecode.com/viewtopic.php?f=76&t=19248

Re: Perspective distortion of a bitmap image?

Posted: Fri Jun 22, 2018 6:18 pm
by Klaus
thatkeith wrote:
Fri Jun 22, 2018 4:20 pm
BTW, the first page of that thread is even better, as it contains links to just over 100 (!) example stacks covering an astounding range of things.
I really didn't mean to keep page 1 of that thread back from you, pointing to the last page of the thread was just accidentally. :D