简体   繁体   English

有什么方法可以进行Java 3D模型/场景导出吗?

[英]Any way to do Java 3D model/scene exporting?

After asking my previous question I've assessed my possibilities to perform any export of 3D scenes and models from Java. 在问完我之前的问题之后,我评估了从Java执行任何3D场景和模型导出的可能性。 My first concern was to find a format that was compatible within some restraints of our application, but after some further research it seems that there are very few export methods available to perform 3D exporting from Java in general. 我首先关心的是找到在我们的应用程序的某些限制内兼容的格式,但是经过一些进一步的研究,似乎几乎没有可用的导出方法来从Java进行3D导出。 All examples I could find are either very old and unmaintained or export to propietary binary/XML formats that are incompatible with pretty much anything. 我可以找到的所有示例都非常旧并且没有维护,或者导出为专有的二进制/ XML格式,这些格式几乎与任何东西都不兼容。 Furthermore, none of the potential solutions I found is distributed as a library, but are part of a larger codebase. 此外,我发现的所有潜在解决方案都没有以库的形式分发,而是属于较大代码库的一部分。

What I'm looking for is a library that allows me to do scene and model manipulation in Java, and subsequently allows me to export that model to a file in a common format that is reusable (Collada, Wavefront, X3D even). 我正在寻找的是一个库,该库使我可以用Java进行场景和模型操作,然后使我能够将该模型导出为可重用的通用格式(甚至是Collada,Wavefront,X3D)的文件。 Is there any library that I overlooked? 有没有我忽略的图书馆? Can I maybe use native code from the JNI to perform conversion? 我可以使用JNI的本地代码执行转换吗? Are there any other solutions that I can use? 我还可以使用其他解决方案吗? Or is the best way to implement my own exporter for this? 还是为此实现自己的出口商的最佳方法?

I used to use .obj for exporting from Java as it is an ASCII based format, most editors have conversion tools to support it (ie Maya and 3D Max). 我曾经使用.obj从Java导出,因为它是基于ASCII的格式,大多数编辑器都有支持它的转换工具(即Maya和3D Max)。

I found an OBJ exporter library which is GPL as part of the sweethome3d project: http://sweethome3d.cvs.sourceforge.net/viewvc/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/j3d/OBJWriter.java?view=markup 我在sweethome3d项目中找到了作为GPL的OBJ导出器库: http ://sweethome3d.cvs.sourceforge.net/viewvc/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/j3d/OBJWriter.java?view =标记

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

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