Augmented Reality Unity | Multiple Image Tracking | AR Foundation - Unity tutorial

  Рет қаралды 6,123

Octe EN

Octe EN

Күн бұрын

Unleash the Power of Augmented Reality: Explore AR Foundation's Multiple Image Tracking Tutorial!
An Augmented Reality #AR tutorial on #Unity Engine using AR Foundation
Tutorial en Español: • Realidad Aumentada Uni...
(Subscribe to this Chanel ❤️)
Feel free to download the assets on:
octe.gumroad.com/l/jtpgz
Full project:
octe.gumroad.com/l/uhogs
Follow me on:
/ octe_dev
/ octe_dev
/ david-acosta-laverde
Special thanks to:
"Cicada - Retro Cartoon Car" (skfb.ly/6vtXV) by RCC Design is licensed under Creative Commons Attribution (creativecommons.org/licenses/b....
"Cartoon Sports Car" (skfb.ly/6xHtJ) by RCC Design is licensed under Creative Commons Attribution (creativecommons.org/licenses/b....
Video by crazy motions: www.pexels.com/video/purple-d...

Пікірлер: 24
10 ай бұрын
Hi, is there a way yo updated Xr References Image Library With Adressble? I can download and update but library not working correctly when i update with adressbles (I use Ar foundation 5.0.7)
@CamIsMac.
@CamIsMac. 8 ай бұрын
For those having the "BLACK SCREEN PROBLEM" you may have a "Vulkan" problem. Meaning in the Player Settings option - Scrool down to Graphics API's - remove Vulkan option ( Keep Open the GLES3) That Should fix your problem.
@myblueskyyy
@myblueskyyy 11 ай бұрын
it is great!
@octe-en
@octe-en 11 ай бұрын
Thank you
@JuliXR525
@JuliXR525 11 ай бұрын
Great video, I have a question, how to unlock rotation in GameObject Spawned by Image Tracker? I am using Lean Touch to change Scale that is allowed but Rotation and Position are Locked.
@octe-en
@octe-en 11 ай бұрын
There are different ways, but, since in the code we have track of the actual Car class of every spawned vehicle, you can just access to that class and make the rotation change even after spawned. I’m working in another tutorial but not finished yet about it
@mayank2564
@mayank2564 10 ай бұрын
What should i do if i want this project as WebGL. I tried switching platform and building it and when i run it, I get a black screen with prefabs hovering at the left side. I want to make a WebAR Project using this. Can someone help?
@octe-en
@octe-en 9 ай бұрын
I think AR foundation has no support for webGL. I suggest you to check device compatibility of AR Foundation first
@4Malu4
@4Malu4 Жыл бұрын
Hi i followed you tutorial, but i don't know why the 3D objects don't spawn when i track the image, can you help me?
@jasonleigh4132
@jasonleigh4132 11 ай бұрын
Make sure the name used in the Reference Image Library is the same as the name of your prefab.
@xTUZONAx
@xTUZONAx 5 ай бұрын
Hi! When trying to build for the first time I receive an error asking to select the development team even thought is already selected. Do you have any idea how to fix it? I’m not able to find a solution
@octe-en
@octe-en Ай бұрын
I usually remove and add again my iCloud account to Xcode
@user-ve8sl9dm9t
@user-ve8sl9dm9t 4 ай бұрын
hi, may I know where you got your import objects/model?
@octe-en
@octe-en Ай бұрын
Yes sure, in the comments of the video, and the credits of the packages there are the links, and the author of such nice models
@alvarocaramesmorante2981
@alvarocaramesmorante2981 Жыл бұрын
Could you by any chance put the Script in the description or here in a comment? I'm trying to follow your steps but the script doesn't work for me (I definitely have some typo on the code). Thanks for the video!
@jasonleigh4132
@jasonleigh4132 11 ай бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.ARFoundation; using UnityEngine.XR.ARSubsystems; public class MarkerTrackingManager : MonoBehaviour { private ARTrackedImageManager _aRTrackedImageManager; [SerializeField] private GameObject[] prefabsToSpawn; private Dictionary _aRObjects; private void Awake() { _aRTrackedImageManager = GetComponent(); _aRObjects = new Dictionary(); } void Start() { _aRTrackedImageManager.trackedImagesChanged += OnTrackedImageChanged; foreach(GameObject prefab in prefabsToSpawn){ GameObject newARObject = Instantiate(prefab, Vector3.zero, Quaternion.identity); newARObject.name = prefab.name; newARObject.gameObject.SetActive(false); _aRObjects.Add(newARObject.name, newARObject); } } private void OnDestroy(){ _aRTrackedImageManager.trackedImagesChanged += OnTrackedImageChanged; } private void OnTrackedImageChanged(ARTrackedImagesChangedEventArgs eventArgs) { foreach (ARTrackedImage trackedImage in eventArgs.added){ UpdateTrackedImage(trackedImage); } foreach (ARTrackedImage trackedImage in eventArgs.updated){ UpdateTrackedImage(trackedImage); } foreach (ARTrackedImage trackedImage in eventArgs.removed){ _aRObjects[trackedImage.referenceImage.name].gameObject.SetActive(false); } } private void UpdateTrackedImage(ARTrackedImage trackedImage){ // The name of the image target used in the Reference Image Library must // be the same as the name of the prefab in order to be able to associate // the image target with the appropriate prefab that will be displayed. if (trackedImage.trackingState is TrackingState.Limited or TrackingState.None){ _aRObjects[trackedImage.referenceImage.name].gameObject.SetActive(false); return; } if (prefabsToSpawn != null){ _aRObjects[trackedImage.referenceImage.name].gameObject.SetActive(true); _aRObjects[trackedImage.referenceImage.name].transform.position = trackedImage.transform.position; } } }
@imbcoffee
@imbcoffee 8 ай бұрын
Thanks for your tutorial, very helpful! I currently facing a problem, when I done the part about 4:23 everything works fine But when I moving to the 11:44 to do multiple image track and build my game to my android device, the game will crash immediately I've try two version of AR Foundation ( and Unity ), but both version also facing this problem 1: Unity 2022.3.0 + AR Foundation 5.0.7 2: Unity 2021.3.23 + AR Foundation 4.2.9 And the Scripting backend is already set to iL2CPP, also the Graphics APIs is only OpenGLES3 with Linear color space. Hope I can get some help, and sorry about my poor english.
@CamIsMac.
@CamIsMac. 8 ай бұрын
For those having the "BLACK SCREEN PROBLEM" you may have a "Vulkan" problem. Meaning in the Player Settings option - Scrool down to Graphics API's - remove Vulkan option ( Keep Open the GLES3) That Should fix your problem.
@franciscoestupinan2313
@franciscoestupinan2313 8 ай бұрын
Está genial el video 👌👌, te quería preguntar si tienes canal en español?
@octe-en
@octe-en Ай бұрын
Claro que sí. El canal es kzbin.info/door/lo1ePvAIPcpUTLKwMgalBA
@jamie7546
@jamie7546 11 ай бұрын
*promo sm*
@neilmalhotra3378
@neilmalhotra3378 8 ай бұрын
Great Video. but may I know why there is some jittering when your cars are spawn? I am having the same issue.
@octe-en
@octe-en Ай бұрын
it is because of the actual tracking, it might be improved in new ARFoundation versions hopefully
Adobe is horrible. So I tried the alternative
25:30
Bog
Рет қаралды 699 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 56 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 35 МЛН
Let’s Make an AR App in 15 MINUTES!! (Beginner Friendly)
17:31
immersive insiders
Рет қаралды 108 М.
The Easiest Way to Camera Track Vertical Footage in Blender
7:57
Jacob Zirkle
Рет қаралды 19 М.
Unity AR Foundation - AR Image Tracking Tutorial
15:21
FireDragonGameStudio
Рет қаралды 15 М.
Augmented Reality Tutorial | Gaze Interaction in Unity
17:18
Third Aurora
Рет қаралды 62 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН