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: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Perspective distortion of a bitmap image?

Post by thatkeith » Fri Jun 22, 2018 8:44 am

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: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Perspective distortion of a bitmap image?

Post by Klaus » Fri Jun 22, 2018 8:53 am

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: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Perspective distortion of a bitmap image?

Post by thatkeith » Fri Jun 22, 2018 4:20 pm

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: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Perspective distortion of a bitmap image?

Post by Klaus » Fri Jun 22, 2018 6:18 pm

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

Return to “Multimedia”