Log in or register to post comments

Add a button on ObjectRecognition app

June 18, 2018 - 7:52am #1


I'm currently developing an Android app which recongizes an object, and then displays informations next to it.

The recognition/display informations part works well, and is implemented in OpenGl.

But now i would like to interact with my object or with the informations displayed, but I can't find any way to do it...


The idea was to interact with an OpenGl image shaped like a button and adding an Android listener to it, possibly with some box collision handler.

The fact that the button is moving in three dimensions and that OpenGl calculations are pretty hard to comprehend (I'm new to it) is blocking me in this task...

I've looked at some documentation from samples and for Virtual Buttons for example, but cannot find a way to implement it as it is specific to Image Target.


Has someone ever done anything similar ? Does anybody knows or have an idea about how to solve my problem ?


Thanks by advance !

Add a button on ObjectRecognition app

June 27, 2018 - 7:26am #2

My problems were due to rotations and translations in openGl that were applies directly on the Pose of the Vuforia object, so my ModelViewProjection wasn't adapted to my screen position in the model of the object but in a translated/rotated model.

It's now fixed.

I haven't deleted this question as it may be useful for someone as inattentive as I am about OpenGl manipulations.

Log in or register to post comments