Does anyone have code that'll map an image onto a (2D) quad with arbitrarily positioned corner points?
... 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 :)
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 :)