Unity AR Foundation - How To Use Google AR Cloud Anchors?

  Рет қаралды 25,457

Dilmer Valecillos

Dilmer Valecillos

Күн бұрын

In today's video I focus on teaching you how to implement Google AR Cloud Anchors in AR Foundation by using the AR Core Unity Extensions provided by Google. This video also teaches you how to enable Google Cloud Anchor API, how to setup API Keys, how to host anchors, and how to resolve anchors.
Review Google Cloud Anchor documentation:
developers.goo...
developers.goo...
Recommended Unity Asset For Today "AR Foundation Editor Remote"
assetstore.uni...
Get this video's source code from Patreon now at:
/ dilmerv
** Support me by Subscribing to the channel as it will help me in bringing a lot more content **
bit.ly/2NmnFMu
Get realtime indie development tips from me in Twitter
/ dilmerv
Subscribe to my indie development videos & game releases newsletter
www.dilmergame...
Blog about Indie development and startup
www.dilmergame...

Пікірлер: 87
@jannesludtke578
@jannesludtke578 2 жыл бұрын
this is the most chaotic tutorial i have ever seen 😭 wtf is going on? why do you have coded almost everything before the tutorial instead of walking us through step by step and explaining on the way, what you are doing and why? I'm supprised anyone found this helpful. I don't mean to be disrespecful or harsh, I just think, this could be actually a very useful and helpful tutorial, if you would have an actual structure and take your time going through every step slowly, while you are coding. Thanks a lot for trying though, even though this is a dead end for me... you're the only one I found on youtube who seems to care about AR and actually seems to know what he's doing 😊
@dilmerv
@dilmerv 2 жыл бұрын
Jannes thanks for your feedback man and yes I agree, my older videos need improvement and on the new ones I try my best to start from the ground up, I will re-make this video for 2022 and send you the link. Again thanks for your feedback.
@sanaomer2828
@sanaomer2828 2 жыл бұрын
Did you find any useful tutorials for ar and cloud anchor ??? Cuz I'm losing my mind right here there's no useful guide online, plus cloud anchor sdk for unity doesn't work anymore and you have to setup everything yourself.
@wimtofi5587
@wimtofi5587 2 жыл бұрын
@@dilmerv Heooo! thanks for this tutorial, but I am waiting for your remake of this video. When you will be uploaded this remake video, please?
@adeebsidani9091
@adeebsidani9091 2 жыл бұрын
@@dilmerv Hello Dilmer, are you going to create a step by step video on how to use cloud anchors, I think the video is important and there is no other on the internet but it is soooo confusing and sorry to say but one of the worst unity tutorials I watched so far.
@glistensol
@glistensol Жыл бұрын
Thank you so much for the tutorial! One question is there a way to integrate ARCore Extensions with AR Foundation 5.0.4, AR Session Origin has been deprecated, XR Origin is not assignable to ARCore Extensions -> AR Session Origin
@neerajXR
@neerajXR 4 жыл бұрын
Keep Uploading AR Tuts ❤️👍
@dilmerv
@dilmerv 4 жыл бұрын
Cool I am glad this was of your liking :) I have many more in progress !
@mqa7001
@mqa7001 3 жыл бұрын
Hi Dilmer, arAnchorManager.AddAnchor(Pose); looks deprecated or obsolete, I am looking for which code we need to use now. Cloud Anchor state do not become success
@lcd11001
@lcd11001 3 жыл бұрын
Hello FeatureMapQuality quality = arAnchorManager.EstimateFeatureMapQualityForHosting(GetCameraPose()); The quality always return Insufficient . How can I fixed it? Although I increased maxScanningAreaTime to 30s in scene. Thank you
@muhammadsarimmehdi
@muhammadsarimmehdi 3 жыл бұрын
Did you get it to work using the keyless approach (I want to host anchors for 365 days and not just one day)? I get the Error Not authorized message whenever I try to host an anchor. I have created the OAuth2.0 credential and assigned my app's package name. However, it is still not working.
@aamirbadershah887
@aamirbadershah887 Жыл бұрын
Did you manage to find a solution?
@DaltonSessumes
@DaltonSessumes 3 жыл бұрын
Thank you so much for this tutorial! I have a question for you- if my AR object that I place using cloud anchors is a video or animation, will any secondary device in a multiplayer network resolve the video or animation at the same playback time as the primary device? I.e. can we have an AR movie night where anyone who joins late is instantly at the same part of the movie as the rest of the group?
@tylerchapman9219
@tylerchapman9219 2 жыл бұрын
Unfortunately, cloud anchors just handle the AR pose of objects for everyone. If you wanted other synced network functionality (like synced video playback), you'd have to handle that separately via other methods. For example, after an anchor has been resolved on a second device, a separate synced network state (using unet, photon, or custom networking methods) would handle syncing the video itself. In summary: Cloud Anchor = placement, Separate Networking = syncing game states
@adityasprojects7126
@adityasprojects7126 3 жыл бұрын
Can u do video or tutorials on indoor navigation,, there s none online
@dilmerv
@dilmerv 3 жыл бұрын
Sounds good thank you for your suggestion !
@muhammadsarimmehdi
@muhammadsarimmehdi 3 жыл бұрын
So, I am assuming you also failed to get it working with the keyless approach. I think Google has disabled that feature in ARFoundation. Please confirm.
@nkofr
@nkofr Жыл бұрын
This is Google Cloud Anchors ARCore, so there is no support on iOS? I'm trying to figure if it's possible to share a multiplayer (photon?) AR experience that has the same spatialisation for every participant?
@dilmerv
@dilmerv Жыл бұрын
Yes Google Cloud Anchors works for both iOS and Android, Azure also has a similar solution called Azure Spatial Anchors.
@Yozzzein
@Yozzzein 3 жыл бұрын
Hi saw your comment in ARcore extension's git about Linker error. How did you fix that ?
@voropserg99
@voropserg99 3 жыл бұрын
Hey, did you manage to solve this problem ?
@lcd11001
@lcd11001 3 жыл бұрын
your voice combine with Spanish, hard to understand. hihi. Good job, bro. Thank for your sharing!
@olitworkowski
@olitworkowski 2 ай бұрын
Every time I get back to AR Unity development I have to use your videos because the documentation is so shit for AR development still... You always have a video on topic but please next time I come back please please create more structured tutorials. But thanks so much for doing them anyway!
@dilmerv
@dilmerv 2 ай бұрын
Thanks for your feedback! I will be updating some of these videos and improving them as some are very old and probably outdated.
@olitworkowski
@olitworkowski 2 ай бұрын
@@dilmerv yes I noticed this Tutorial is a bit out of date. But its hard to keep up with the development speed. I feel like every time I get back to developing AR in unity (ever half a year) i have to relearn how things are done
@ajononikostudio
@ajononikostudio 4 жыл бұрын
Just got the notification, if all is well and this tutorial finally helps me to build a cloud-based cloud anchor AR experience, then you are a saving grace to my potential project.
@dilmerv
@dilmerv 4 жыл бұрын
That’s awesome and yes this can definitely help you with that project !
@minhkhuephantran9007
@minhkhuephantran9007 3 жыл бұрын
I did not found ARCore Cloud Anchor API in restriction API section. How could you do that ?
@nandishrelekar9317
@nandishrelekar9317 Жыл бұрын
First do enable ARCore cloud anchor API and then go back and check ARCore cloud anchor api ll be visible.
@ugn
@ugn Жыл бұрын
Thanks for the tutorial, really appreciate it! I was wondering if you could do something on JWT authentification with Unity? I can't find a single tutorial on this online and having anchors stay for more than 1 day would be amazing :)
@dilmerv
@dilmerv Жыл бұрын
Great suggestion! Thanks I will add this as a future video.
@nickname8668
@nickname8668 Жыл бұрын
@@dilmerv The JWT authentication is kind important for most AR anchor use as they need to last more than one day
@mqa7001
@mqa7001 3 жыл бұрын
Thank you for video, I am working on! I guess ARCore Extensions is who manage data hosting any way. We didn't implement any multiplayer system like UNET or PHOTON NETWORKING. I am checking my project because it doesn't work fine, I don't know if I lost something in the process. I mean, Object positions are not the same for both devices
@lcd11001
@lcd11001 3 жыл бұрын
yes, me too. I use latest version & the position isn't correct. I'm investigating GG example
@sanaomer2828
@sanaomer2828 2 жыл бұрын
Can you please tell me how to make this work?? I'm using photo..
@mqa7001
@mqa7001 2 жыл бұрын
@@sanaomer2828 what do you need? To combine ARCore with photon?
@ZenothWG
@ZenothWG Жыл бұрын
does this same works for android?
@dilmerv
@dilmerv Жыл бұрын
Yes :)
@nandishrelekar9317
@nandishrelekar9317 Жыл бұрын
Can you please share the source code of this project
@dilmerv
@dilmerv Жыл бұрын
I believe is in Patreon ;)
@ajononikostudio
@ajononikostudio 4 жыл бұрын
By the way, with the cloud anchor feature could AR indoor navigation be developed easier? There's pretty much no tutorials in that regard here on KZbin, or anywhere really, basically developing AR indoor navigation through AR Foundation.
@calebbelk7780
@calebbelk7780 4 жыл бұрын
I am also wondering this.
@charrystheodorakopoulos4843
@charrystheodorakopoulos4843 4 жыл бұрын
With google persistent cloud anchor AR indoor navigation itw pretty easy. i have done it with azure spatial anchors.
@chamodweerasinghe8619
@chamodweerasinghe8619 3 жыл бұрын
@@charrystheodorakopoulos4843 Can you tell me how did you do that?
@0GRANATE0
@0GRANATE0 2 жыл бұрын
1 year later; did you do some progress? I wonder if the method above shown is also working for a bigger room/building with multiple rooms and floors.
@josephseger6053
@josephseger6053 2 жыл бұрын
Who hates the fact that he does not write the code in the video and shows prewritten code
@dilmerv
@dilmerv 2 жыл бұрын
I normally show the process of writing the code but I didn’t for this video ;) I will as I do today for future videos. Thanks for your feedback.
@josephseger6053
@josephseger6053 2 жыл бұрын
No hate, I like your content a lot. I just comprehend what is going on better that way.
@ahmedkhaled4234
@ahmedkhaled4234 2 жыл бұрын
Does anyone have the source code of the project the link does not open ? or Does anyone have a sample code to host and resolve cloud anchors? as i can not figure it out from arcore documentation
@N1rv4shTyp3Z3r0
@N1rv4shTyp3Z3r0 3 жыл бұрын
As I've been searching for quite a while now for our Uni project and not successful, I'll try my luck here.. Was something like this (detecting/creating anchor points, saving them (somewhere, disk or wherever) and resolving the anchors) possible before AR Foundation 4? For some reason the AR Camera only correctly worked on AR Foundation 2 and I'm trying to figure out how to create, save and later (possibly after a restart of my app) resolve the previously found anchor. Maybe someone will see this and could provide some insights, thanks for the great video nevertheless!
@samialfarra4275
@samialfarra4275 3 жыл бұрын
thank you so much . the google save the world map or just the anchor . i mean can i open second device and restore world map and anchor or only anchor in AR CORE ? i want use it in networking game ?
@nv7287
@nv7287 2 жыл бұрын
I needed to go to the APIs to enable ARCore Cloud Anchor API then I was able to restrict it.
@dilmerv
@dilmerv 2 жыл бұрын
Awesome I am glad you figured it out and thanks for sharing your findings.
@gbo10001
@gbo10001 4 жыл бұрын
Thanks for the video. Just to be sure, resolving time depend on the time of mapping before hosting?
@gbo10001
@gbo10001 3 жыл бұрын
hi there, can i test it with InstantPreview? I want to use instant because when trying to resolve cloud anchor in a different session- the cloud anchor returns null or task -in -progress. please help
@SKJagan-dh2ft
@SKJagan-dh2ft 2 жыл бұрын
Hey, have you solved the problem?
@clifflin7149
@clifflin7149 4 жыл бұрын
Is it so that now it's the same that google cloud anchor still has a time limit (24 hrs?) for its availability?
@dilmerv
@dilmerv 4 жыл бұрын
They extended, it is now up to 365 days, however you need token authentication for anything over than a day.
@kingrandow
@kingrandow 4 жыл бұрын
If multiple AR objects can be placed, is there a way track which one was placed?
@dilmerv
@dilmerv 4 жыл бұрын
Yeah definitely possible I will make a new video with placing multiple objects as well as hosting them all.
@mohammadrasoulfard-habibi3066
@mohammadrasoulfard-habibi3066 4 жыл бұрын
Sweet Dilmer. Cheers mate.
@dilmerv
@dilmerv 4 жыл бұрын
Thank you Mohammad Cheers to you as well :)
@ndh4200
@ndh4200 3 жыл бұрын
Hi, first of all, I'm not good at English, so I'm leaving comments through the translator, but I can't express myself well, so please excuse me in advance. I am studying AR Foundation and AR Cloud Anchor in Unity. The video you uploaded was very helpful. Thank you very much. Organize and record what you have studied on your personal homepage. I want to record what I studied with the video you uploaded. I'd like to make a post with this video link attached, can I quote this video?
@dilmerv
@dilmerv 3 жыл бұрын
Yes you are more than welcome to link this video thank you for your time and also for referencing my video in your own post 😊
@ndh4200
@ndh4200 3 жыл бұрын
@@dilmerv Thank you very much!
@guopage9012
@guopage9012 3 жыл бұрын
How can I get the source code? I have sent DM to you on Patreon...
@dilmerv
@dilmerv 3 жыл бұрын
Thanks for your support ! I just messaged you in Patreon.
@marcusmarcus4765
@marcusmarcus4765 3 жыл бұрын
Will this work on iPhone as well, or only android?
@dilmerv
@dilmerv 3 жыл бұрын
Yes this works for iOS and Android :)
@eucrocks141
@eucrocks141 3 жыл бұрын
How would a second device resolve a cloud anchor id? Would you need multiplayer networking in place to do this?
@dilmerv
@dilmerv 3 жыл бұрын
Yes you would, google examples use a deprecated version of unity networking to do this, so I would recommend using a networking solution to notify other clients.
@eucrocks141
@eucrocks141 3 жыл бұрын
@@dilmerv Dilmer, is there any chance of you doing a demo across 2 different devices?
@ateamgamesateamgames264
@ateamgamesateamgames264 3 жыл бұрын
how can i have its source code i need help with it
@dilmerv
@dilmerv 3 жыл бұрын
You can get the source code from Patreon thanks
@hernandeztorresederjairdej5564
@hernandeztorresederjairdej5564 3 жыл бұрын
Is it possible to do an ar multiplayer game using ar foundation?
@the7odmelmoney
@the7odmelmoney 4 жыл бұрын
😎
@dilmerv
@dilmerv 4 жыл бұрын
Thanks man !
@ateamgamesateamgames264
@ateamgamesateamgames264 4 жыл бұрын
i loved it it seems like we can change the world around us or its already changing just perfect
@dilmerv
@dilmerv 3 жыл бұрын
Couldn't agree more :) thank you
Unity AR Foundation - AR Draw With AR Anchor Manager (Part 1)
23:01
Dilmer Valecillos
Рет қаралды 23 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 44 МЛН
Augmented Reality (AR) Anchors [in depth]
10:57
Learning Dojo
Рет қаралды 9 М.
Get started with Geospatial Creator in Unity
15:21
Google AR & VR
Рет қаралды 31 М.
Geospatial Creator With Photorealistic 3D Tiles For Unity Is Here!
31:41
Dilmer Valecillos
Рет қаралды 28 М.
Build location-based augmented reality with ARCore geospatial API
15:52
Google for Developers
Рет қаралды 34 М.
Getting Started With ARFoundation in Unity (ARKit, ARCore)
31:20
The Unity Workbench
Рет қаралды 459 М.
Can You Make YouTube From Scratch Using Only Bash?
17:51
icitry
Рет қаралды 10 М.
Coding INDOOR NAVIGATION with A* Pathfinding
10:24
MatthewHallberg
Рет қаралды 188 М.