简体   繁体   English

启动Java 3D

[英]starting Java 3D

我想知道什么是最好的方式来开始编码一个简单的3D ...(使用java)就像一个男人走来走去...我知道这不是那么容易,但我相信这不是不可能的:D所以..是否有一个推荐教程或者什么???

Two suggestions: 两个建议:

  1. Start with something like jMonkeyEngine . jMonkeyEngine开始。 Lots of great tutorials on their site using their scenegraph API. 使用他们的scenegraph API在他们的网站上有很多很棒的教程。 It's where you want to end up eventually anyway, IMHO. 无论如何,这是你想最终结束的地方,恕我直言。

  2. NeHe Productions: OpenGL Tutorials . NeHe Productions:OpenGL教程 These are great because they give you a lot of OpenGL info and instructions. 这些都很棒,因为它们为您提供了大量的OpenGL信息和说明。 Note that all the code in the tutorial is C however, at the bottom of the tutorials are links to ports of the code to various platforms and languages, including Java. 请注意,本教程中的所有代码都是C,但是在教程的底部是指向各种平台和语言(包括Java)的代码端口的链接。

You could start with Java 3D API or Java OpenGL (JOGL) . 您可以从Java 3D APIJava OpenGL(JOGL)开始 I think, if you want something like OpenGL then you should consider about JOGL 我想,如果你想要像OpenGL这样的东西,你应该考虑JOGL

The best way to start is to find out a good and free 3d game engine. 最好的方法是找到一个好的免费3D游戏引擎。 You should know something about 3d graphics: basic transformation, how to work with matrices (specially multiply order), etc. 你应该对3D图形有所了解:基本转换,如何使用矩阵(特别是乘法顺序)等。

I can recommend you Lightweight Java Game Library , Ogre3D for Java or even jMonkeyEngine. 我可以推荐你轻量级Java游戏库Ogre3D for Java甚至jMonkeyEngine。 Later you can try to use OpenGL directly - its easy to learn, multiplatform 3D graphics library. 稍后您可以尝试直接使用OpenGL - 它易于学习的多平台3D图形库。

For better understanding of the scene graph-based and Java3D programming I recommend you to read this tutorial. 为了更好地理解基于场景的图形和Java3D编程,我建议您阅读教程。 It helps me very much 它对我很有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM