Log in or register to post comments

Technical: Reference frame 3d mesh position

June 21, 2015 - 7:47pm #1


I am trying to integrate libgdx and vuforia. I think I am almost there.

Except that I can't figure out how to position the 3d mesh properly.


This video is the current status of the development. As you can see in the video, the cube recognizes the rotation and closer or further camera changes.

However, the cube is always centered at the center of the viewport. It doesn't follow the trackable position.

I followed this article to get the camera attributes https://developer.vuforia.com/library/articles/Solution/Get-the-Camera-Position and set them accordingly in libgdx camera. 

I also set the projection of the camera as modelviewprojection float[16] returned by "Matrix.multiplyMM(modelViewProjection, 0, vuforiaAppSession.getProjectionMatrix().getData(), 0, modelViewMatrix, 0);"

And the 3d mesh position is at 1.0f, 1.0f, -1.0f. 

Please help me what  I missed. Thanks.

Best Regards,





Log in or register to post comments