iPhone 上的变形图像动画
正在准备构建另一个应用程序,我们希望能够提供屏幕区域动画以响应设备震动/触摸等的功能。例如,您可以点击屏幕,设备会以动画方式“戳”到图像中在这一点上(认为这将是一种镜头类型的效果,就像蹦床上的重物一样)或者您可以摇动设备,并且屏幕上的区域或预先存在的物体会摆动(类似于摆动 iPhone 应用程序)
任何人都可以建议在哪里开始包含这些效果?我不想从头开始编写它们,所以有没有可用的库或示例(我看过 cocos2d,它似乎只有全屏默认转换)?
just working up to building another app and we'd like to include the ability to animate regions of the screen in response to device shakes/touches etc. For example you could tap the screen and the device would animate a 'poke' into the image at that point (think this would be a lens type effect, like a weight on a trampoline) or you could shake the device and a region or pre-existing object on-screen would wobble (similar to wobble iPhone app)
Can anyone suggest where to get started on including these sort of effects? I'd rather not have to code them from scratch so are there any libraries or examples available (I've looked at cocos2d which seems to only have full screen default transforms)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你想要的是 CoreImage 库。您基本上可以使用自定义着色器做任何您想做的事情。
What you want is the CoreImage library. You can do basically anything you want with custom shaders.