开发者

Porting Actionscript into C++ - has any one crearted any instructions on such topic?

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 c开发者_如何转开发urrent 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))


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜