MovieClip 的鱼眼失真 (AS3)

发布于 2024-08-27 15:22:56 字数 364 浏览 5 评论 0原文

一些用于实现电影剪辑内容的线性鱼眼失真的伪代码将非常感激。

附图显示了“鱼眼效果”如何自动应用于鼠标指针周围的区域。

Flare 工具包在此处提供了双焦点和鱼眼畸变的示例。

扭曲的影片剪辑 http://www.freeimagehosting.net/uploads/10925464bd.png

Some pseudo-code for accomplishing a linear fisheye distortion of a MovieClip's contents would be very appreciated.

The attached illustration shows how the "fisheye effect" is automatically applied to an area around the mouse-pointer.

The Flare toolkit has examples of both Bifocal and Fisheye distortion here.

distorted movieclip http://www.freeimagehosting.net/uploads/10925464bd.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你另情深 2024-09-03 15:22:56

DisplacementMapFilter 可以用于执行此操作。

DisplacementMapFilter(bmp,offset,1,2,75,75,"ignore")

会给出令人欣喜的结果。

The DisplacementMapFilter can be used to do this.

DisplacementMapFilter(bmp,offset,1,2,75,75,"ignore")

Will give pleasing results.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文