Arcore-android-sdk: How can I move objects with touch in the arcore-android-sdk example

Created on 2 Nov 2017  路  5Comments  路  Source: google-ar/arcore-android-sdk

I can place Objects on tap, how can I move those Objects by touching them? Can this be demonstrated in the example?

Most helpful comment

Thanks for the reply, I have never worked with OpenGL and the concepts that I came across seemed overwhelming and are very complicated.

I'll start looking into the frustum raycast approach but I hope that in future ARCore like ARKit will include utility methods for basic user interaction.

All 5 comments

From what I know, touching object with OpenGL itself is very tricky. That's why I've been trying to use ARCore with other OpenGL based 3D engines like Rajawali.

Right now our goal is to keep the sample as simple and focused as possible. We're looking at releasing some more UI helpers down the line, but if you want help with this kind of "how to" question, I suggest you post it on StackOverflow as our focus here is bugs in the SDK.

I was not specific with my question.

I wanted to know that since the .obj files are loaded with help of ObjectRenderer and since they are not View's how should we go about touching and interacting with them, I understand that you want to keep these examples to a basic level, but basics should also include interaction with the said objects. Right now the sample doesn't give a complete picture of how to go about developing an ARCore app other than loading a .obj model and placing it on a plane.

On the other hand ArKit has a comprehensive guide on how to go about interacting with objects ArKit, I wanted to know if perhaps we could have something like this in the future?

Hi, I think any kind of "touch" functionality is not the responsibility of ARCore since it depends on the fact what graphics framework you're using. For example in case of Rajawali you could use the Raypicker functionality. If you're on plain OpenGL like in the example here, you need to implement the frustum raycast on your own.

Thanks for the reply, I have never worked with OpenGL and the concepts that I came across seemed overwhelming and are very complicated.

I'll start looking into the frustum raycast approach but I hope that in future ARCore like ARKit will include utility methods for basic user interaction.

Was this page helpful?
0 / 5 - 0 ratings