3D国际象棋在android项目上使用adobe flash cs5和OpenGL可能吗?

发布于 2025-01-03 16:17:41 字数 441 浏览 3 评论 0原文

我可以同时使用 Adob​​e Flash cs5 和 OpenGL 在 Android OS4.3 设备上创建应用程序吗?

我正在创建一个与 android OS 4.3 兼容的 3D 国际象棋游戏,所以我显然使用 eclipse 和 SDK。

我现在面临的问题是我应该让棋子变得像人类一样。例如,棋子应该看起来像微型步兵,而国王棋子应该是坐在王座上的人形等。我从 OpenGL 开始,但因为我是新手,所以我可能无法进行放置显示使用 OpenGL 进行图形处理。所以我决定使用 adobe flash cs5 来创建棋子并使用 OpenGL 来制作棋盘,因为我可以做到这一点,也因为在我的规格中,我说我将使用 OpenGL。

我想知道这是否真的有效,以及是否有一种我没有想到的更简单的方法。任何建议将不胜感激,特别是如何用人工智能来实现这一点

如果有人有一个样本或一个我可以使用的想法,我也将非常感激。

Can I Use both Adobe Flash cs5 and OpenGL to create an application on an android OS4.3 device?

I am creating a 3D chess game compatible for an android OS 4.3, so I am using eclipse and the SDK obviously.

The problem I have now is I am meant to make the chess pieces human like. For instance, the pawn pieces should look like miniature foot soldiers and the king piece should be a figure of a person sitting on a throne etc. I started with OpenGL but because I am new to it, I might not be able to carry put displaying the graphics with OpenGL. So I decided to use adobe flash cs5 to create the pieces and use OpenGL to make the chess board because I can do that and also because in my specs, I said I would be using OpenGL.

I want to know if this will actually work and also if there is a much easier way of doing this I just haven't thought of. Any suggestions would be appreciated, especially how to implement this with the A.I.

If anyone has a sample or an idea I could work with, I will also be very grateful.

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

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

发布评论

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

评论(1

慵挽 2025-01-10 16:17:41

Adobe 表示,未来移动设备将支持“Stage 3D”,但目前还没有任何方法可以通过 Adob​​e AIR 加速 3D。

尽管 Away3D 或其他 2.5D 库对于 Web 或桌面来说足够快,但我不确定这对于移动设备来说效果如何,因为即使对于 2D 游戏,AIR 的移动速度也足够慢。

由于国际象棋是一种相对静态的游戏,因此您可以创建 3D 图形,然后渲染为 2D 精灵。我是 Facebook 一款大型游戏的首席工程师,我们使用了这种方法。尽管它需要更大的文件大小,但它在质量和性能方面效果非常好。最终的结果与《暗黑破坏神 1》类似,但主题是牛仔而不是中世纪。

尽管它没有真正的 3D 支持,但您也可以考虑研究 NME。我制作的 Facebook 游戏使用 Flash 的运行速度为 5-6 FPS,但在我的旧 Palm Pre 上使用 NME 的速度达到了 30 FPS(所以不是世界上最快的手机)。这可能会帮助您获得额外的开销,以便能够使用丰富的图形。该框架还将作为真正的 C++ NDK 应用程序发布,因此实际上可以使用您自己的 OpenGL 调用来扩展或修改该框架(它是开源的)。

如果您有兴趣,请访问以下网站:http://www.haxenme.org

Adobe has said that "Stage 3D" support will be coming to mobile devices in the future, but in the meantime, there are not any ways to accelerate 3D with Adobe AIR.

Although Away3D or another 2.5D library would be fast enough for the web or desktop, I am not sure how well this will work for mobile, as AIR moves slow enough even for 2D games.

Since chess is a relatively static game, you might be able to create 3D graphics, then render to 2D sprites. I was the lead engineer for a large Facebook game, and we used this approach. ALthough it required more file size, it worked very well for quality and performance. The end result was something similar to Diablo 1, but in a cowboy theme instead of medieval.

Although it does not have true 3D support, yet, you might also consider looking into NME. That Facebook game I made ran at 5-6 FPS using Flash, but topped 30 FPS using NME on my old Palm Pre (so not the fastest phone in the world). That might help give you extra overhead to be able to lean into rich graphics. The framework will also publish as a true C++ NDK application, so it is actually possible to extend or modify the framework (it's open source) with your own OpenGL calls.

Here's the website if you're interested: http://www.haxenme.org

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