Return CATransform3D to map quadrilateral to quadrilateral

前端 未结 1 1506
情书的邮戳
情书的邮戳 2020-12-15 13:36

I\'m trying to derive a CATransform3D that will map a quad with 4 corner points to another quad with 4 new corner points. I\'ve spent a little bit of time researching this a

相关标签:
1条回答
  • 2020-12-15 14:04

    I was able to achieve this by porting and combining the quad warping and homography code from these two URLs:

    • http://forum.openframeworks.cc/index.php/topic,509.30.html
    • http://forum.openframeworks.cc/index.php?topic=3121.15

    UPDATE: I've open sourced a small class that does this: https://github.com/dominikhofmann/DHWarpView

    0 讨论(0)
提交回复
热议问题