Тёмный

Create World Space AR | Geospatial Creator Tutorial - ARCore in Unity 

The AR VR Guy
Подписаться 956
Просмотров 18 тыс.
50% 1

In this tutorial, you will learn how to create world space AR experiences using ARCore's Geo Spatial API and Unity. You will learn how to:
* Visualize 3D map tiles data in Unity using Cesium
*Create a scene that aligns with the real world
* Enable Google Cloud API etc.
By the end of this tutorial, you will be able to create your own world space AR experiences using Google's AR Core & Geo Spatial API & anchors
AR Core Extension: github.com/google-ar/arcore-u...
Cesium for Unity: github.com/CesiumGS/cesium-un...
#GoogleIO #GoogleAR #ARCore #GeospatialAPI #unity #arcore
#augmentedreality
#worldspacear
#geospatialdata
#geolocation
#markerbasedar
#objectbasedar
#spatialmapping
#artutorial

Наука

Опубликовано:

 

31 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 124   
@lisfloss
@lisfloss Год назад
thank you so much for this tutorial !! easy to understand
@thearvrguy
@thearvrguy Год назад
Glad you liked it 😁
@user-ku9bo3hb5s
@user-ku9bo3hb5s 9 месяцев назад
well explained, thank you. Would you know what kind of problem I'm having? I can't manage to make the tiles work, I did every step but the 3d render of the world doesn't show up at all. I enabled the API (with arcore), made a key and everything. The sample scene also doesn't show up.
@thearvrguy
@thearvrguy 9 месяцев назад
Make sure you've installed the correct versions... Check the documentation of you're using versions other than what I've used in the video and also make sure the cesium is setup correctly as shown in the video.
@sewingepiphanies
@sewingepiphanies 9 месяцев назад
Awesome! I watched the official google video, didnt work. yours, perfect!!
@thearvrguy
@thearvrguy 9 месяцев назад
Thank you , don't forget to subscribe! ❤️
@mohandeepatmuri6448
@mohandeepatmuri6448 9 месяцев назад
I'm setting Altitude type to Terrain and Altitude offset to 0 then setting gameobject exactly on the ground but it is instantiating at the same position(not Y axis) but the game object is not placed on the ground. Could you please help me with this senario.
@thearvrguy
@thearvrguy 9 месяцев назад
Might be something to do with altitude value or the fact that VPS is not available at the location
@Pinkokinawa84
@Pinkokinawa84 9 месяцев назад
Thank you so much for the tutorial :) This is great! Do you know how can we test where I put the anchor at home in Unity? For example, if I add an anchor to the effete tower in Paris, is there only way to test this is going to the actual location, or could we test it from home?
@thearvrguy
@thearvrguy 9 месяцев назад
I don't think so, you have to be at the location to test this out but you can explore Ninantic LIGHTSHIP SDK or vuforia Area Target if you want results like this at your location with no VPS and it will be more stable . Don't forget to like and subscribe and share it with your friends who might find this video helpful!
@Pinkokinawa84
@Pinkokinawa84 9 месяцев назад
@@thearvrguy Thank you ! I will check that!
@user-nc6yi9ni2p
@user-nc6yi9ni2p Год назад
Lovely tutorial, however i can't get a geospatial creator in my hierrachy. I use the 2022 LTS version. How do i go about this
@thearvrguy
@thearvrguy Год назад
Make sure you've followed each and every step mentioned in the tutorial and check whether you have enabled the geo spatial check mark in AR core settings
@Smellybiscuit
@Smellybiscuit 2 месяца назад
Thank you so much! What if i wanna try to interact or touch the 3D object to make it spin for example, am i able to do it? Do you have a tutorial for that? thank you one again!
@thearvrguy
@thearvrguy 2 месяца назад
I don't have a tutorial for that.. But I guess you should be able to do it very straight foward...see if you can try the helper scripts that come with AR foundation samples to add interactivity to this
@antimony.g7656
@antimony.g7656 7 месяцев назад
Errors when loading tileset, this error when i put api key in geospatial creator origin it is not showing 3d map
@thearvrguy
@thearvrguy 7 месяцев назад
It's difficult to know what exactly is the problem without looking at the project....Try to follow each and every step precisely again...if it still occurs, then it might be because there are changes/updates happening which are causing this issue
@harshitgoel3022
@harshitgoel3022 11 месяцев назад
Hi, When I try importing Cesium package, nothing happens, it seems it doesn't import.. Gives me this error : cesium.unity-1.3.0.tgz has invalid dependencies or related test packages..... Can you please help?
@thearvrguy
@thearvrguy 11 месяцев назад
You might be using different versions of the package, try to use the same versions that I've used for every SDK and unity editor
@ring2manu
@ring2manu Год назад
Nice tutorial. Did you face the issue of the gameobject drift in your project ? if yes , could you please let me know how did you solve it?
@thearvrguy
@thearvrguy Год назад
Thank you and regarding the drift, I think it will be there as it's relying on gps where vps is not available
@marvinbarboza1045
@marvinbarboza1045 10 месяцев назад
@@thearvrguy can you make a tutorial like the model will not move?
@thearvrguy
@thearvrguy 10 месяцев назад
@@marvinbarboza1045 for that we should have access to locationa which have VPS enabled....only few cities are covered....you can try NIANTIC LIGHTSHIP SDK to create Better tracking...you can scan any area to create a map and use that for tracking
@amitshrestha6833
@amitshrestha6833 Год назад
I'm a student and new to this, one quick question, can you add feature in the app to turn the AR on and off ? If so, how?
@thearvrguy
@thearvrguy Год назад
Yes, you can absolutely do that.... Check out AR foundation documentation/forums to know how to enable or disable AR
@shashankraj7239
@shashankraj7239 12 дней назад
I am very new to this so i just followed the steps and then directly build the application and then ran on my android device but it is not using my mobile camera at all . There is just a screen with that google information dialog box. Please help
@thearvrguy
@thearvrguy 8 дней назад
It's very difficult to know what exactly is the issue that's causing this without actually looking at the project
@TheMelixor
@TheMelixor 7 месяцев назад
Where i should see the map after adding XR Geospatial origin? The video go forward very fast look like it is damaged
@thearvrguy
@thearvrguy 7 месяцев назад
It's not damaged, I've fast-forwarded to not bore you guys , after adding the API key , you can select AR geo spatial creator origin. There you can see latitude & longitude, just enter the values of the place that you want to load, you're good to go By default, it might show you some random place but you can add your own coordinates as described above. Note : There might be some changes in the names/menus as there might be some updates to the SDK after I've recorded the video
@TheMelixor
@TheMelixor 7 месяцев назад
@@thearvrguy thanks for the answer, but in my case, after followed you instructions the map is not loaded. Do you have any suggestion? I'm using uninty 2022.3.14
@thearvrguy
@thearvrguy 7 месяцев назад
@@TheMelixor Not sure what exactly might be problem as there's some updates to the package but were you able to the enter the coordinates and despite that it's not showing the 3d map?
@LanK04
@LanK04 5 месяцев назад
can we make route to the object with this API? if yes, can you tell me how?
@thearvrguy
@thearvrguy 4 месяца назад
I'm not completely sure about this
@zafirahzaini8227
@zafirahzaini8227 Месяц назад
HI.. I encountered this error when I try to run my project on android device. "geospatial sample encountered an ARsession error state unsupported" Can you advise on solving this issue?
@thearvrguy
@thearvrguy Месяц назад
Hi , not sure what might be causing that issue. It has been updated now during the latest Google IO. Try updating to the latest version and go through the documentation to check any updates to the flow
@taarikaranjith7913
@taarikaranjith7913 21 день назад
I'm facing the same issue as well
@marvinbarboza1045
@marvinbarboza1045 10 месяцев назад
its' working! I saw the game object, but the problem is the camera is black only. why is that?
@thearvrguy
@thearvrguy 10 месяцев назад
I guess you're using URP, this issue comes with URP....When using URP, make sure to add the "AR Background Render Feature" to the render settings.
@marvinbarboza1045
@marvinbarboza1045 10 месяцев назад
@@thearvrguy that's fixed my problem :)
@thearvrguy
@thearvrguy 10 месяцев назад
@@marvinbarboza1045 Awesome! Don't forget to subscribe to the channel 😉😅
@aryanpatil1764
@aryanpatil1764 10 месяцев назад
I placed an object at a fixed coordinate but it appears on my mobile screen at a fixed distance relative to my ar camera. Can you please help me out?
@aryanpatil1764
@aryanpatil1764 10 месяцев назад
The object I place follows me everywhere and does not stay at the co-ordinates I gave it. I don't have the Google tiles api as I don't want to pay for it. Can you please give me a fix?
@aryanpatil1764
@aryanpatil1764 10 месяцев назад
@thearvrguy
@thearvrguy
@thearvrguy 10 месяцев назад
If you don't want to use tiles api then try NIANTIC LIGHTSHIP SDK or Immersal
@sandraeriusand9021
@sandraeriusand9021 Месяц назад
Thank you very much for the tutorial, however, it does not work for me. I have followed the tutorial and, when it comes time to test if it works, the Unity Console shows me quite a few errors. I have taken screenshots, would you mind if I show them to you somewhere (for example, Discord)? I am not sure how to fix them. Thanks.
@thearvrguy
@thearvrguy Месяц назад
Hi, there are a lot of updates to the latest version which is the reason why it might not be working in your case. I'm planning to make an updated video on this, stay tuned
@sandraeriusand9021
@sandraeriusand9021 Месяц назад
@@thearvrguy Thank you very much for your response. I will keep an eye on the updates on your channel :) The problem is, I need to know how to get ARCore and ARFoundation working in Unity as soon as possible. I will keep looking for information and hope to find something soon...
@gunterstunter
@gunterstunter Год назад
Hi after following your tutorial I get nothing showing on the build its just a blank unity scene in the void How can I fix this?
@thearvrguy
@thearvrguy Год назад
If you're using URP, you need to change a couple of things. Better go with built in render pipeline it should work
@gunterstunter
@gunterstunter Год назад
@@thearvrguy Great Thankyou!
@thearvrguy
@thearvrguy Год назад
@@gunterstunter you're welcome 🙂
@gunterstunter
@gunterstunter Год назад
@@thearvrguy That was good to know for the 2021 project, a 2022 guide would be helpful given the updated XR package :)
@gunterstunter
@gunterstunter Год назад
Can you create a tutorial showing us how to create a geospatial project with the 2022 LTS? In 2021 it works fine, however there seem to be issues with getting it to run according to the instructions in the new LTS
@thearvrguy
@thearvrguy Год назад
I'll try
@gunterstunter
@gunterstunter Год назад
@@thearvrguy thanks I actually figured it out, so it’s all good :)
@thearvrguy
@thearvrguy Год назад
@@gunterstunter Awesome! So, what was the issue?
@gunterstunter
@gunterstunter Год назад
@@thearvrguy I got it working thanks. I just started again and it worked, so im not sure exactly what the issue was that didn't allow the camera in the build to show up.
@gunterstunter
@gunterstunter Год назад
@@thearvrguy Although I have another question for you: in unity geospace creator i placed an object in front of my house to test, however it appears through walls and other houses at a distance, instead of appearing behind walls and buildings. It's as though it's on the front layer and everything else is on a layer behind. How do you think this can be fixed?
@user-ss5vx8bc6o
@user-ss5vx8bc6o 10 месяцев назад
how to add recording button to this to record the video of this ar
@thearvrguy
@thearvrguy 10 месяцев назад
You can use ARCore Session Recording or any third party plug-in on unity asset store
@ayamkaushik5694
@ayamkaushik5694 Год назад
helo i made an animation just as you did but the size is not the same as shown in unity and also for some eason my material keeps on falinh thrugh the ground
@thearvrguy
@thearvrguy Год назад
In Unity 1 unity = 1 meter , so scale it accordingly. I don't undersatnd the other half, what do you mean by your material falling though the ground?
@ayamkaushik5694
@ayamkaushik5694 Год назад
@@thearvrguy In India, there are 2d Tiles present and I am not able to get where should I keep the Object properly. Tried changing it to Terrain but still not working.
@thearvrguy
@thearvrguy Год назад
@@ayamkaushik5694 oooh you're talking about that, I got you. VPS is not available in all locations throughout the world. It's only available in a few cities in a few countries. Unfortunately, we are only limited to 2D satellite imagery and can use terrain anchors to place the content approximately
@ayamkaushik5694
@ayamkaushik5694 Год назад
@@thearvrguy yes but in my project we did everything as in the google Ar core in unity video and we also saw your video and tried to make a Augmented reality using the anchor all the settings were set as per the video but when we ran the app it was not working as expected
@thearvrguy
@thearvrguy Год назад
@@ayamkaushik5694 what is it showing?
@AhmadFaraz-bb9tp
@AhmadFaraz-bb9tp Год назад
Can we develope for IOS by just switching the platform?
@thearvrguy
@thearvrguy Год назад
Yes it should work but mark sure that you've enabled the arkit in xr plugin management and also the platform specific player settings
@user-xk1gi9vo4q
@user-xk1gi9vo4q Год назад
I have followed the same steps and when I build in my android phone it gives me this message: Geospatial Sample encountered an EarthState error: ErrornotAuthorized. And I can't see the 3d model in the environment Can you please help.
@thearvrguy
@thearvrguy Год назад
I'm not sure about this particular error but I guess it has something to do with the sdk setup or the google cloud
@user-xk1gi9vo4q
@user-xk1gi9vo4q Год назад
Hi, I have found the solution, ARCore api was not enabled from my end, after doing that I was able to see the model in environment
@thearvrguy
@thearvrguy Год назад
@@user-xk1gi9vo4q Awesome!
@tinabehrouz
@tinabehrouz 11 месяцев назад
hi, I have the same problem. could you explain a bit more about how did you solve it?@@user-xk1gi9vo4q
@ZERO-ii8sb
@ZERO-ii8sb 10 месяцев назад
After doing the steps to 10:15 but I can't see the satellite map like yours :(
@thearvrguy
@thearvrguy 10 месяцев назад
Make sure both the cesium and Google cloud account setup is done exactly as shown in the video and also don't forgot the API key
@kitschglitch
@kitschglitch 9 месяцев назад
same poblem, did make sure it is exactly as shown... still does not work@@thearvrguy
@quietwarriors2625
@quietwarriors2625 8 дней назад
is there a way to use geospatial ar without google cloud? . I really found your video useful .
@thearvrguy
@thearvrguy 8 дней назад
No, you can't.
@AhmadFaraz-bb9tp
@AhmadFaraz-bb9tp Год назад
Does this work for indoor also?
@thearvrguy
@thearvrguy Год назад
I don't think so
@zhichengu0614
@zhichengu0614 8 месяцев назад
Thanks for the tutorial! Why my object always follow me after rendering on the phone
@thearvrguy
@thearvrguy 8 месяцев назад
You're welcome . It might be because you're using it at a location where vps is not available
@user-nq7ou6vb1w
@user-nq7ou6vb1w 7 месяцев назад
How can i fix that?@@thearvrguy
@thearvrguy
@thearvrguy 7 месяцев назад
@@user-nq7ou6vb1w you cannot fix it.... VPS is available in only a few cities throughout the World. You can try NIANTIC's LIGHTSHIP ARDK
@user-nq7ou6vb1w
@user-nq7ou6vb1w 7 месяцев назад
@@thearvrguy ye i did NIANTIC's LIGHTSHIP ARDK, look good. TYSM!
@thearvrguy
@thearvrguy 7 месяцев назад
@@user-nq7ou6vb1w you're welcome... Don't forget to subscribe to the channel!
@karnsohot4123
@karnsohot4123 5 месяцев назад
Why I can’t build and run , it always said failed
@thearvrguy
@thearvrguy 5 месяцев назад
I'm sorry, I cannot provide you a solution without getting into the details
@karnsohot4123
@karnsohot4123 5 месяцев назад
It came up that Project path contains non-ASCII characters at position 9, Android Tools don't work properly with non-ASCII paths. Please move your project to path containing only ASCII characters. @@thearvrguy
@chalvlad
@chalvlad Год назад
to make this in aero i need the same steps?
@thearvrguy
@thearvrguy Год назад
No, it's completely a different app , actually much easier. But less customisation . I believe you need to experience it though their app after publishing whereas this approach is more towards building standalone app. In other words aero is for artists
@chalvlad
@chalvlad Год назад
@@thearvrguy thank you
@user-tp7zk3ss9z
@user-tp7zk3ss9z 11 месяцев назад
Could Geospatial work on Web?
@thearvrguy
@thearvrguy 11 месяцев назад
Not at this point
@user-tp7zk3ss9z
@user-tp7zk3ss9z 11 месяцев назад
Many thanks for your response!@@thearvrguy
@DhirenPathak
@DhirenPathak Год назад
Nice
@thearvrguy
@thearvrguy Год назад
Thank you
@yasmeenkhalil8318
@yasmeenkhalil8318 8 месяцев назад
i got 37 alert and one of them gives me this (Geospatial feature is checked in ARCore Extensions Project Settings, but it is not used by any Scenes in Build. To turn off Geospatial, uncheck it in Edit > Project Settings > XR Plug-in Management > ARCore Extensions > Optional Features > Geospatial.)
@thearvrguy
@thearvrguy 8 месяцев назад
This shouldn't be there if at all you're having the geospatial creator component in the scene view
@yasmeenkhalil8318
@yasmeenkhalil8318 8 месяцев назад
I'm had done the same as you did in the video, but it didn't work. I tried using both older and newer versions of Cesium for Unity, but nothing changed. I attempted to reinstall Unity and Unity Hub, but nothing happened. I also tried creating a new project, but the alerts keep coming up. what is the solution if you know ???@@thearvrguy
@yasmeenkhalil8318
@yasmeenkhalil8318 8 месяцев назад
Here are some of the alerts I'm currently facing (four of them) {{{{ Unity.Tutorials.Core.Editor.BuildStartedCriterion must be instantiated using the ScriptableObject.CreateInstance method instead of new BuildStartedCriterion. UnityEngine.ScriptableObject:.ctor () Unity.Tutorials.Core.Editor.Criterion:.ctor () (at ./Library/PackageCache/com.unity.learn.iet-framework@3.1.3/Editor/Criteria/Criterion.cs:43) Unity.Tutorials.Core.Editor.PreprocessBuildCriterion:.ctor () Unity.Tutorials.Core.Editor.BuildStartedCriterion:.ctor () UnityEditor.EditorApplication:Internal_CallGlobalEventHandler () Geospatial feature is checked in ARCore Extensions Project Settings, but it is not used by any Scenes in Build. To turn off Geospatial, uncheck it in Edit > Project Settings > XR Plug-in Management > ARCore Extensions > Optional Features > Geospatial. UnityEngine.Debug:LogWarning (object) Google.XR.ARCoreExtensions.Editor.Internal.CompatibilityCheckPreprocessBuild:CheckCompatibilityWithAllSessionConfigs (Google.XR.ARCoreExtensions.Internal.ARCoreExtensionsProjectSettings,System.Collections.Generic.Dictionary`2,UnityEditor.BuildTarget) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions@f995c62e2b92/Editor/Scripts/Internal/ModulesWorkflow/CompatibilityCheckPreprocessBuild.cs:101) Google.XR.ARCoreExtensions.Editor.Internal.CompatibilityCheckPreprocessBuild:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions@f995c62e2b92/Editor/Scripts/Internal/ModulesWorkflow/CompatibilityCheckPreprocessBuild.cs:66) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler () Android Authentication is enabled in ARCore Extensions Project Settings but the feature is not used by any Scenes in Build. To turn off authentication, select Do Not Use in Edit > Project Settings > XR Plug-in Management > ARCore Extensions > Android Authentication Strategy. UnityEngine.Debug:LogWarning (object) Google.XR.ARCoreExtensions.Editor.Internal.CompatibilityCheckPreprocessBuild:CheckCompatibilityWithAllSessionConfigs (Google.XR.ARCoreExtensions.Internal.ARCoreExtensionsProjectSettings,System.Collections.Generic.Dictionary`2,UnityEditor.BuildTarget) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions@f995c62e2b92/Editor/Scripts/Internal/ModulesWorkflow/CompatibilityCheckPreprocessBuild.cs:101) Google.XR.ARCoreExtensions.Editor.Internal.CompatibilityCheckPreprocessBuild:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions@f995c62e2b92/Editor/Scripts/Internal/ModulesWorkflow/CompatibilityCheckPreprocessBuild.cs:66) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler () The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered: Packages/com.unity.xr.arcore/Tests/Editor/Assets/TestReferenceImageLibrary.asset Packages/com.unity.xr.arkit/Tests/Editor/Assets/TestReferenceImageLibrary.asset }}}}}
@thearvrguy
@thearvrguy 8 месяцев назад
@@yasmeenkhalil8318I'm sorry, can't really share you a solution without taking a look at the project
@lynkydale
@lynkydale 8 месяцев назад
did you manage to fix this ?
@5689CHETAN
@5689CHETAN Год назад
MAP tiles API Is chargeable in india ?
@thearvrguy
@thearvrguy Год назад
yes , you will get some free credits when you create a google cloud account, you can play with that
@alikhattak8271
@alikhattak8271 10 месяцев назад
@@thearvrguy I have tried it ......but registering it with my Bank card gives an error "This action couldn’t be completed. Try again later. [OR-CBAT-15]." I also have tried with different bank accounts still getting this issue. Btw Love from Pakistan.
@thearvrguy
@thearvrguy 10 месяцев назад
@@alikhattak8271 personally.. I've used my credit card.. Not sure about bank accounts
@alikhattak8271
@alikhattak8271 10 месяцев назад
@@thearvrguy Sir what will be the solution to this?
@thearvrguy
@thearvrguy 10 месяцев назад
@@alikhattak8271 try using credit card
@sheawilliamgalley9608
@sheawilliamgalley9608 8 месяцев назад
dude I followed google's documentation and was using Mono / arm7. build was crashing right away. changed the settings to IL2CPP and arm64 like you said at 05:50 and it worked!!! like come on Google!!! thank you sir
@thearvrguy
@thearvrguy 8 месяцев назад
Ha ha.... you're welcome! Glad it was helpful. Don't forget to subscribe to the channel
@sheawilliamgalley9608
@sheawilliamgalley9608 8 месяцев назад
@@thearvrguy you think Geospatial Creator will work on Quest 3 in passthrough?
@thearvrguy
@thearvrguy 8 месяцев назад
@@sheawilliamgalley9608 not at the moment but you never know as they've added meta quest support in AR foundation
Далее
Get started with Geospatial Creator in Unity
15:21
Просмотров 30 тыс.
They got a Golden Buzzer 🤣✨
00:46
Просмотров 14 млн
Publishing Geospatial AR content in Google Maps
16:33
What Happened To Google Search?
14:05
Просмотров 3,1 млн
Coding INDOOR NAVIGATION with A* Pathfinding
10:24
Просмотров 183 тыс.
How to make a Location Based (Map) Game in Unity Tutorial
1:35:08
iPhone 16 - НЕ СТОИТ ПРОПУСКАТЬ
4:50
Телефон-електрошокер
0:43
Просмотров 1,3 млн