Might as well ask first... :)

BlitzPlus Forums/BlitzPlus Programming/Might as well ask first... :)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Does anyone have code that'll map an image onto a (2D) quad with arbitrarily positioned corner points?


1, 2, 3, 4 -- corners

1-------------------2
|                   |
|                   |
|     Original      |
|                   |
|                   |
3-------------------4

     1
                 2

        Remapped

                    4

  3



... so in the remapped version it'll have the image appropriately stretched/scaled, etc, between the points? I'm going to attempt it, but I think it's actually a lot harder than it looks (for me, anyway), so it'd obviously be handy if someone's already done it :)