Java 3D 游戏编程

发布于 2024-10-31 03:55:22 字数 340 浏览 0 评论 0原文

我最近同意帮助一位朋友制作他一直在开发的游戏,并且我决定更喜欢用 Java 编写它。我不确定在 Java 中实现 3D 的最佳途径是什么。我发现大多数人都在谈论 Java 中 3d 图形的 Java 3d,它似乎基本上是 DirectxopenGL 的包装器,但我还发现 Java 3d 自 2008 年以来一直没有积极开发。它仍然是最好使用的东西还是有更积极开发的东西会更好。我看过一些关于其他一些 API 的讨论,但是 Java 3d 似乎有更好的文档,并且有一些关于 Java 3d 编程的相当不错的书籍,它们似乎都基于 Java 3d代码>.

I recently agreed to help a friend make a game he has been working on and I decided that I would prefer to write it in Java. I am unsure what the best route is to take for 3D in Java. I have found that most everyone talks about Java 3d for 3d graphics in Java, which seems to basically be a wrapper for Directx and openGL but I have also found that Java 3d hasn't been in active development since 2008. Is it still the best thing to use or is there something with more active development that would be better. I have seen some discussion about some other APIs but Java 3d seems to have better documentation and there are some fairly decent books on 3d programming in Java that all seem to be based on Java 3d.

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

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

发布评论

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

评论(5

腹黑女流氓 2024-11-07 03:55:22

使用 Java 编写 3D 应用程序时,您有多种选择。

  • JOGL 是一个用 Java 编写的非常薄的 OpenGL 包装器。使用它需要学习用 OpenGL 进行编程,这不是一件容易的事。它确实可以让您最大限度地提高性能,但代价是大大增加开发时间。如果您碰巧已经熟悉 OpenGL,或者需要非常低级的功能,那么这是您的最佳选择。
  • Java3D 是 Java 的面向对象扩展,它比 JOGL 更易于使用,并且具有受Java 社区。与其他一些解决方案相比,它的使用较少。
  • LWJGL(轻量级 Java 游戏库)是一个用 Java 制作 2D 和 3D 图形游戏的库,它还支持声音(OpenAL),并为游戏开发提供许多有用的功能。不太适合其他3D开发。
  • 还有许多基于 LWJGL 和其他库构建的其他游戏引擎,它们提供了比其他库更广泛的功能。 JMonkeyEngine 可能是其中的领跑者。它们会在视图控制、动画等方面为您提供更多功能。

您读哪本书完全取决于您在上面做出的选择。

There are a number of options you have when writing 3D apps in Java.

  • JOGL is a very thin wrapper for OpenGL written in Java. Using it involves learning to program in OpenGL, which is no small undertaking. It does allow you to maximize your performance at the cost of a big increase in development time. If you happen to be familiar with OpenGL already , or need very low level functionality, this is your best choice.
  • Java3D is an object oriented extensions to Java that is easier to use then JOGL and has the advantage of being supported by the Java community. It's less used than some of the other solutions.
  • LWJGL (Lightweight Java Game Library) is a is a library for making games in Java with 2D and 3D graphics, and it also supports sound (OpenAL), and provides many useful features for games development. It's less suitable for other 3D development.
  • There are a number of other game engines built on LWJGL and the other libraries that provide a greater range of features than any of the others. JMonkeyEngine is probably the frontrunner of these. They will provide more functionality for you in terms of view control, animation etc.

Which book you read entirely depends on which choice you make above.

青春有你 2024-11-07 03:55:22

JOGL 是正在积极开发的现代替代品。它基本上只是绑定到 OpenGL 库。

JOGL is a modern replacement under active development. It's basically just bindings to the OpenGL library.

以歌曲疗慰 2024-11-07 03:55:22

看看 jMonkeyEngineLWJGL

jMonkeyEngine 正在积极开发中,它包括一个完整的工具包和 IDE,用于用 Java 创建 3D 图形应用程序。

LWJGL(轻量级Java游戏库)是一个用Java制作2D和3D图形游戏的库,它还支持声音​​(OpenAL)。

Have a look at jMonkeyEngine and LWJGL.

jMonkeyEngine is being actively developed and it includes a complete toolkit and IDE for creating 3D graphics applications in Java.

LWJGL (Lightweight Java Game Library) is a library for making games in Java with 2D and 3D graphics, and it also supports sound (OpenAL).

感情废物 2024-11-07 03:55:22

前段时间有朋友用过Processing,觉得还算合理。

A friend used Processing a while ago and found it reasonable.

太阳哥哥 2024-11-07 03:55:22

我已经有一段时间没有检查过它了,但 JMonkeyEngine 是最好的 Java 3D 引擎。

I haven't checked it out in a while, but JMonkeyEngine was the best Java 3D engine around.

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