Finally add it to the libs folder on the android studio project. Download zip from the downloads section, unzip it and get the library (jpct-ae.jar). If your camera sees the Hiro Pattern, then a cube will show up on top of it. Simply import the project into Android studio, and run it on your phone. This blog entry is based on importing the ARSimple example and work on it.
ARTOOLKIT TUTORIAL ANDROID STUDIO HOW TO
How to set up artoolkit is defined in the Android ARToolkit section, take a look at it. 3ds files out-of-the-box, and has an OOP approach that OpenGL has not. On the other hand, JPCT-AE is a library to render 3D models and animate them which works on top of OpenGL, making it easier for developers to handle with OpenGL. There you can use OpenGL to draw whatever you want. So there is a Renderer that on each frame can have the information on where the marker is situated in the 3D space. Over the camera preview, there is a GLSurfaceView where the program is supposed to draw the 3D augmentations. This is done each frame, as the camera or the marker may move. the position and the orientation), and gives this information back to the program. Once it detects a marker, it analyzes its situation relative to the screen (i.e. The AR framework scans the camera input in each frame, and detects the markers that are configured to be detected.
In this case we’ll use ARToolkit, but the same may apply to the Vuforia case. And in both cases, they end up in a method that draws every frame, and where you get a matrix for the camera projection and a transformation matrix to place things on each detected marker. The most used AR frameworks based on markers ( ARToolkit and Vuforia) have SDKs for android.