Paterne K.
Paterne K.

Reputation: 31

Android : handle click on 3D object arcore, android studio - JAVA

I'm working on an AR Application for Android with Google ArCore SDK (using Android Studio and Java). I have a problem to handle invents : tap or clic on displayed image/3D Object, weither it is about Augmented images or placing a permanent anchor. Please do you have any example of how to handle click on 3D object in Android Studio? Thank you.

Upvotes: 1

Views: 793

Answers (2)

Paterne K.
Paterne K.

Reputation: 31

After looking through deep research, I found out that there is an open existing project for sceneform that is still working.

You can find the project here : https://github.com/SceneView/sceneform-android

and some Android Java samples there : https://github.com/SceneView/sceneform-android/tree/master/samples

But pay attention, it seems that some methods in samples are deprecated. I'm working on integrating this in my Augmented Image project but I have some trouble finding corresponding new methods for some of them.

I will appreciate any help from someone who has already done it.

Upvotes: 0

Ars_Codicis
Ars_Codicis

Reputation: 611

From this post:

ARCore is not supporting this feature. You need to do it by yourself.

The most recommended method is use of ray casting. Assuming you're using OpenGL, this post describes some methods of using ray casting in the way you need.

Upvotes: 1

Related Questions