Unity ARCore Cloud Anchor
https://developers.google.com/ar/develop/unity/cloud-anchors/overview-unity
ARCore Cloud Anchor를 왜 사용하는가 :
AR 씬에서 virtual object를 Multiple User가 동시에 같은 물리적 공간에서 다른 위치에서 interact하기 위함
https://developers.google.com/ar/develop/unity/cloud-anchors/quickstart-unity-android
Requirement :
1. arcore sdks 1.13 or later
2. you must disclose the use of Cloud Anchors prominently
Unity build :
1. ARCore Package 불러오기(1.13 or later)
2. Package – Multiplayer HLAPI, XR Legacy Input Helpers
3. Switch platform to Android
4. Remove vulkan
5. Multithreaded Rendering uncheck
6. Package name
7. Minimum api level – android 7.0 nougat
8. Arcore supported enable
9. Api key 넣기(google cloud)*
10. Setup project services and multiplayer*
https://console.cloud.google.com/apis/library/arcorecloudanchor.googleapis.com
https://docs.unity3d.com/Manual/SettingUpProjectServices.html
https://docs.unity3d.com/Manual/UnityMultiplayerSettingUp.html
App Host :
A. Wait a few secs after the session starts to stabilize
B. When selecting a location to host the anchor, find distinguishable from each other
C. Point the rear device camera at the center of interest
D. Move the device around to map the environment from different viewing angles and positions for up to 30 secs
E. Call hostCloudAnchor() to initiate the hosting request.
F. arcore Uploads visual data, device poses, anchor pose
G. cloud anchor creates a 3d feature map of space, return anchor id
H. use Anchor.CloudAnchorState to check the status of a hosted anchor
App Resolve :
A. wait a secs after the session starts to stabilize
B. scan the original area of interest
C. call resolveCouldAnchor() and use Anchor.CloudAnchorState toe check the status
D. if you want to cancel call detach()
E. when it finds a match, the service return the pose of the cloud anchor
'Unity' 카테고리의 다른 글
Swift(StoryBoard) + Unity (0) | 2020.05.28 |
---|