Perspective distortion of a bitmap image?

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Perspective distortion of a bitmap image?

Post 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?
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Perspective distortion of a bitmap image?

Post 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
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Re: Perspective distortion of a bitmap image?

Post 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
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Perspective distortion of a bitmap image?

Post 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
Post Reply