简体   繁体   English

如何使用Java中的ARToolkit for Android(非本机C ++)加载3D模型

[英]How to load 3d models using ARToolkit for Android in java (not native c++)

How to render .obj 3d models using ARToolkit library for Android in Java . 如何使用Java中的Android ARToolkit库渲染.obj 3d模型。 (or any other 3d models formats like .dae ) (或其他任何3d模型格式,例如.dae

Doing the same thing using Native c++ and ARToolkit wrapper is easy and they have examples for it, but I didn't find any thing in ARToolkit documentation or examples to help me render 3d models in Java. 使用Native c ++和ARToolkit包装器做相同的事情很容易,并且有示例,但是我在ARToolkit文档示例中找不到任何帮助我用Java渲染3d模型的东西。

You need to use a 3D Engine to render the models, I did implement the connection between jPCT-AE and ARToolKit a while ago, you can check it here: https://github.com/plattysoft/ArToolKitJpctBaseLib 您需要使用3D引擎来渲染模型,前一阵子我确实实现了jPCT-AE和ARToolKit之间的连接,您可以在此处进行检查: https : //github.com/plattysoft/ArToolKitJpctBaseLib

It is not 100% complete, since on some resolutions the FOV is not correct, but most of the times it is fine. 它不是100%完整的,因为在某些分辨率下FOV是不正确的,但在大多数情况下都可以。

There are also some examples on how to use it. 还有一些有关如何使用它的示例。

Hope that helps. 希望能有所帮助。

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

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