Search code examples
javaandroid3dartoolkit

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. (or any other 3d models formats like .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.


Solution

  • 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

    It is not 100% complete, since on some resolutions the FOV is not correct, but most of the times it is fine.

    There are also some examples on how to use it.

    Hope that helps.