将 Actionscript 移植到 C++ - 有没有人针对这一主题制定过任何说明?
将 Actionscript 移植到 C++ 中 - 有没有人针对这一主题创建过任何说明?所以我想尝试将 papervision3d 移植到 C++ 中,而不是使用 alchymy 向后移植它。你觉得怎么样?是否可以?
1)为什么要移植PV3d?它很快。这很简单。我知道并且喜欢它。可以推动PV3d兴趣的新飞跃。如果 g++ 和 LLVM 能够像他们所说的那样优化代码,那么它可能会击败当前的 Alternativa 7.5。 2)据我所知,有一种方法可以使用 C/C++ 中的 Alchemy 库并编译为 swf 来创建真正的工作 swf,因此这意味着所有事件模型和显示列表可能已经存在。 (证明链接到 adobe tv 上来自 maxdevelop 2008 的视频))
Porting Actionscript into C++ - has any one crearted any instructions on such topic? So I vant to try to port papervision3d into C++ for than porting it backwards using alchymy. What do you think of it? Is it possible?
1) Why do I want to port PV3d? It is fast. It is simple. I know and like it. It could push new leap of PV3d interest. It would probably beat current Alternativa 7.5 if g++ and LLVM can optimize code as wall as they say it can.
2) As far as I know there is a way to create real working swf's using Alchemy libs from C/C++ and compiling into swf so it means all event model and display list are probably already there. (prooving link to video on adobe tv from max develop 2008))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 ActionScript 移植到 C++ 并非完全不合理,但是,您将缺少 Flash 为您提供的所有支持代码。您必须重新实现显示列表、事件调度等。
不管怎样,我不建议移植 Papervision,距离上次更新已经一年多了,而且首席开发人员已经离开了该项目。如果有的话,我建议您研究一下更加“活跃”的 Away3D。
第三,flash 播放器的“molehill”版本将支持适当的硬件加速 3d(和软件兼容层),使您的移植工作在几个月内变得毫无意义。
总而言之。不要这样做。
It's not completely unreasonable to port ActionScript to C++, however, what you will be missing is all the support code that Flash supplies you with. You'd have to reimplement the display list, event dispatching and so on.
Disregarding that, I wouldn't recommend porting Papervision, it's more than a year since the last update and the lead developer has left the project. If anything, I'd recommend looking into the considerably more "alive" Away3D.
Thirdly, the "molehill" version of flash player will have support for proper hardware accelerated 3d (and a software compatibility layer) making your porting efforts rather pointless within a few months.
All in all. Don't do it.
不。即使您的移植成功,您所要做的就是将 ActionScript 3 转换为 C++ 再转换为 ActionScript 3。因此您最终会得到与最初相同的代码,甚至可能更糟,因为您将您对第二个翻译影响很小或没有影响。
尝试改进原始 papervision3d 源代码可能会更有成效,尽管我不希望性能有很大的飞跃。
Don't. Even if your port were successful, all you would do is translate ActionScript 3 to C++ to ActionScript 3. So you'd end up with just about the same code you had in the first place, or possibly even worse, since you'd have a second translation you have little or no influence on.
It would likely be more productive to try to improve the original papervision3d source code, although I wouldn't expect great performance leaps.