Search code examples
javakotlinaugmented-realityarcore

ARCore – Augment an image in realtime with the given coordinates


I'm using ARCore in Android Studio. My app will provide the X,Y,Z coordinates. I want the 3D image rendered in definite position.

  • How can I achieve this?

  • Am I able to render an object when plane is detected and I tapped it?


Solution

  • Image Detection and Plane Detection are different technologies in ARCore or other AR framework. When you implement ARCore's image detection feature for placing a 3D model in a scene you can use the following code.

    If you want to implement a plane detection feature read Google article that contains info not only about plane detection but also about raycasting and hits.