google-ar / arcore-android-sdk

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

Anchor is not visible for far location. #1632

Open SuryaChundawat opened 9 months ago

SuryaChundawat commented 9 months ago

SPECIFIC ISSUE ENCOUNTERED

VERSIONS USED

I am using ArCore SDK version 1.41. Anchor is not visible if I use lat long altitude more than 200 meter. Anchor is not visible on screen.

Anchor anchor = earth.createAnchor( 23.500000, 73.055983, 290.86, (float) quaternion.getQ0(), (float) quaternion.getQ1(), (float) quaternion.getQ2(), (float) quaternion.getQ3());

Can any one suggest better option.

15kingben commented 9 months ago

Can you provide more details about this issue? Is a line of anchors abruptly cut off from rendering at 200m distance from the camera? Does the anchor render again when the user is closer to the anchor? Does the behavior change from horizontal distance to vertical distance?

200 meters is very far, the anchor could be too far to see, or the anchor could be culled. (although the default far frustum in GeospatialActivity is 1000)

SuryaChundawat commented 9 months ago

So I want to place an anchor which is more than 200-400m horizontally far from current lat long. But when I am using

Anchor anchor = earth.createAnchor(23.500000, 73.055983, 290.86, (float) quaternion.getQ0(), (float) quaternion.getQ1(), (float) quaternion.getQ2(), (float) quaternion.getQ3())

That anchor is not rendering from current location.

15kingben commented 9 months ago

Can you try making the object much larger, like 100m wide, and see if the object is still not visible?

SuryaChundawat commented 8 months ago

So I need an idea weather it is possible to place an anchor 1 mile or 2 mile far from current camera location with this. So my usecase is to place an anchor at 2mile away from current user location.