Warp \ bend effect on a UIView?

前端 未结 5 2042
猫巷女王i
猫巷女王i 2020-12-07 21:34

I\'m trying to get a similar effect to the one described in the pictures. The white area on the left isn\'t on the original photo, it pushes the pixels away

5条回答
  •  既然无缘
    2020-12-07 21:46

    What you show looks like a mesh warp. That would be straightforward using OpenGL, but "straightforward OpenGL" is like straightforward rocket science.

    I wrote an iOS app for my company called Face Dancerthat's able to do 60 fps mesh warp animations of video from the built-in camera using OpenGL, but it was a lot of work. (It does funhouse mirror type changes to faces - think "fat booth" live, plus lots of other effects.)

提交回复
热议问题