google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.98k stars 1.22k forks source link

How to resolve multiple cloud anchors in one go? #503

Closed rohitagarwal3011 closed 6 years ago

rohitagarwal3011 commented 6 years ago

This is written in google's documentation of Working with cloud anchors

Keep objects close to anchors When anchoring objects, make sure that they are close to the anchor you are using. Avoid placing objects farther than a few meters from the anchor to prevent unexpected rotational movement due to ARCore's updates to world space coordinates.

If you need to place an object more than a few meters away from an existing anchor, create a new anchor closer to this position and attach the object to the new anchor.

My question is that , if we host multiple cloud anchors for objects that are placed few meters away, then while we are resolving them, how can we resolve all the cloud-anchors by scanning at a particular place?

rohitagarwal3011 commented 6 years ago

@claywilkinson Can you please help me out with this?

asadullahnaweed commented 6 years ago

Hey Rohit. So sorry for the late reply. For resolving cloud anchors, you need to be looking at the rough area where the anchor was placed. You cannot resolve anchors by looking at areas other than where they were placed.

rohitagarwal3011 commented 6 years ago

@asadullahnaweed That's true. I have implemented that and i am able to resolve anchors by scanning roughly the area where they were placed. But the problem is that if I want to place multiple objects in a big room or a big open area then I will have multiple anchors attached to objects that are closeby and so is there a way by which i can resolve the whole scene with all the anchors and child nodes in one go ? If i attach multiple child nodes to a single anchor and the child nodes are a bit far away then the scene is somewhat distorted.

inio commented 6 years ago

@rohitagarwal3011 Your question isn't really getting much uptake here because this board is for the core Java motion tracking API, not Sceneform. If you'd like Sceneform to provide something that can average multiple anchors together or something like that, please post a feature request on the google-ar/sceneform-android-sdk issues board.

amirtha17 commented 1 year ago

how to host multiple anchors?