Flash 11 和 Stage3D 用于矢量渲染?

发布于 2024-12-20 21:05:20 字数 141 浏览 3 评论 0原文

我有一个 Flash 应用程序,它严重依赖于本机 Flash 渲染器(主要是使用一堆 lineto、curveto 命令进行矢量绘图)。

我见过的大多数演示和基准测试只是调整/旋转精灵的大小。新的 3D 引擎是否会提高主要进行矢量渲染的应用程序的性能?

I have a flash application that relies heavily on the native flash renderer (mainly vector drawing with a bunch of lineto, curveto commands).

Most of the demos and benchmarks I've seen are just resizing/rotating sprites. Will the new 3d engine improve performance on an application that mainly does vector rendering?

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

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

发布评论

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

评论(1

执手闯天涯 2024-12-27 21:05:20

解决此问题的最佳方法是在设计或运行时将矢量艺术渲染为位图。例如,您可以使用 bitmapData.draw。然后,您可以使用这些位图作为精灵来快速渲染。不幸的是,直接在 GPU 上渲染矢量效果不太好。 Flash 尝试使用 wmode=gpu 来做到这一点,虽然这对于某些演示来说很好,但它永远不会像在 cpu 中渲染和在 gpu 上位图传输那样以相同的质量执行。编程要困难得多,但如果您确实需要性能,例如在游戏中,那么这是值得的。

The best way to go about this is to render vector art to bitmaps, either at design or run time. You can use bitmapData.draw for example. Then you use those bitmaps as sprites for fast rendering. Rendering vectors directly on the gpu does not work too well unfortunately. Flash tried to do this with wmode=gpu, and while it is nice for some demos it never performs at the same quality like rendering in cpu and blitting on the gpu. It is a lot harder to program, but if you really need the performance, for example in a game, it is worth it.

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