Unity Augmented Reality Tutorial Lesson 02 - Multiple Image tracking

  Рет қаралды 9,386

lightsandclockwork

lightsandclockwork

10 ай бұрын

Unity Augmented Reality Tutorial Lesson 02
Tracking Multiple Images
Needed Packages
com.unity.xr.arfoundation 5.0.7
com.unity.xr.arcore 5.0.7
Code:
github.com/TemporalCoder/UnityAR

Пікірлер: 25
@lolaraden6229
@lolaraden6229 7 ай бұрын
Thank you so much, only helpful tutorial I've found on this!!! Saved me for my project
@lightsandclockwork
@lightsandclockwork 7 ай бұрын
Your welcome, i am glad it has been a help. Please feel free to make a suggestion for future content.
@namratabhadane4698
@namratabhadane4698 2 ай бұрын
@@lightsandclockwork thank you sir this video is very helpful sir i have project that i want make animated story by using image target you have any suggestion that than you can please help me
@didinks1012
@didinks1012 6 ай бұрын
Thank you so much for the clear tutorial! It's exactly what I needed and I really appreciated you going through the code and explaining it. I have an unexpected problem - everything works perfectly once I build the app on an Android phone, but nothing really happens in the play mode in unity - I placed the reference image targets, but the prefabs don't spawn on them. It works with the AR Target Image manager only - in which case I and up just having one prefab spawned over the two reference images. But if I put no image as a tracked image prefab in the manager and leave it to the Image Tracker script - no prefab is activated. I have both the AR Tracked image manager and the Image Tracker script on my XR Origin. Have you encountered a problem like this? Cheers!
@lightsandclockwork
@lightsandclockwork 6 ай бұрын
Yes. Many times.. My IRL students have. The most common error is not naming the prefabs the EXACT same name as the image you are tracking. Or forgetting to put the images in the image library. Another mistake is in edit mode, displacing the prefab 3d object from the empty it is attached to. I am planning to make a common errors video. ASAP.
@didinks1012
@didinks1012 6 ай бұрын
@@lightsandclockwork common errors video would be so helpful, thank you for doing this! I checked those mistakes and everything seems to be set up properly, also the weirdest thing for me is that once I make a build on my Android phone it works almost perfectly - only when moving the reference image it lags a bit, the tracking could be better, but it still works. I'm curious about what you mentioned while explaining the script about not putting a destroy function because AR Core doesn't support it. I'm curious to know more about that? And if there is any way to support the channel
@lightsandclockwork
@lightsandclockwork 6 ай бұрын
Hmm, sorry don't know. It can be hard to debug at a distance. You have created separate projects for each one? My simulation is a different project to my Android one. I only did simulation as at the school i work at we cannot plug in our phones to compile to. The lag is outside of my control. My phone (galaxy note) is pretty good, but one of my students has a much older phone and is quite laggy. Support? Thank you for the thought. Like and share :)
@AnjaFritschi
@AnjaFritschi 3 ай бұрын
Thanks for the tutorial. Everything worked pretty well but i keep getting the same prefab gameobject for both pictures even tho i have the exact same code script as you. do you have some inputs where to look at?
@lightsandclockwork
@lightsandclockwork 3 ай бұрын
Hi, It might be worth checking my later video where i speedrun the whole thing while going over common errors. but... This video has been out a while and i have yours is the same problem in 2 days.. i wonder if a unity update has changed things. You may want to try... Have you removed the prefab from the AR Tracked Image Manager script? That was just a place holder before writing multi image handler. When i cant figure out what is going wrong, i create a new scene and start again. Have you accidentally parented the 2 prefabs?, open each one (double click the actual prefab)
@MeanMachine995
@MeanMachine995 3 ай бұрын
Hi I have a problem which I couldn't resolve even with the new video... I have 2 images set up as well as 2 prefabs. The problem is, it alway instatiates both prefabs on top of each other even if only one trackable image is there to be recognized... I already checked the naming... I have no idea what is happening here... Hope you hav an idea. Thanks in advance!
@lightsandclockwork
@lightsandclockwork 3 ай бұрын
A coulpe of things?? Have you removed the prefab from the AR Tracked Image Manager script? That was just a place holder before writing multi image handler. When i cant figure out what is going wrong, i create a new scene and start again. Have you accidently parented the 2 prefabs?, open each one (double click the actual prefab)
@Hackcastq
@Hackcastq 7 ай бұрын
Hello, the tutorial is very useful for me, but when I wanted to install the demo in the first video on my phone (android) and try it, it didn't work, could you please help me?
@lightsandclockwork
@lightsandclockwork 7 ай бұрын
Hi, Exporting to android requires creating quite different project settings and a new scene making. The code stays the same. I will covering this in a new tutorial in the very near future.
@lightsandclockwork
@lightsandclockwork 7 ай бұрын
New tutorial out now.
@crossfire8219
@crossfire8219 2 ай бұрын
the prefabs are not appearing i followed your instructions well
@lightsandclockwork
@lightsandclockwork 2 ай бұрын
Hi, Check out my other video, i include common errors. Also, I have identified a new common error, try scaling down your images and dont have them too far away from the camera. kzbin.info/www/bejne/aIenhYp7rL6sm80
@zaeem7641
@zaeem7641 2 ай бұрын
thank for the video , but can we put 1 image and 1 video together? can you show some tutorial
@lightsandclockwork
@lightsandclockwork 2 ай бұрын
You're welcome. Do you mean play a video over the tracked image? If so, i cover that in this video. kzbin.info/www/bejne/gJ-vq6KOermVjdU
@zaeem7641
@zaeem7641 2 ай бұрын
@@lightsandclockwork yeah like that , but my final project is i have must 3d object plus a video over the tracked image , can you show me some tutorial , by the way where i can contact you if i have any question?
@lightsandclockwork
@lightsandclockwork 2 ай бұрын
Hi, I show you how to add a video in the link i shared. Sorry not available for direct support at the moment, I have a lot on with my full time job.
@lightsandclockwork
@lightsandclockwork 2 ай бұрын
As mentioned try the video i added the link to, if you dont succeed, let me know.
@lightsandclockwork
@lightsandclockwork 2 ай бұрын
Apologies, i do not explain it! I thought i did. I briefly mention it here. kzbin.info/www/bejne/ioi8YqKbpa2qn9Usi=9h8soB9rL1yTL4mT&t=291 But basically, create a cuboid and drag a video on to it, like you apply an image texture. I'll try and fit it in a video soon.
Unity Augmented Reality Tutorial Lesson 03 - Interactive Clickable Objects
14:17
Unity Augmented Reality Tutorial Lesson 01 - AR Simulation
15:57
lightsandclockwork
Рет қаралды 17 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 7 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Unity AR Foundation - AR Image Tracking Tutorial
15:21
FireDragonGameStudio
Рет қаралды 15 М.
Dáskalos - an interactive science teacher for augmented reality
1:14
prefrontal cortex
Рет қаралды 37 М.
Unity Tutorial: Vuforia Area Targets (Spoiler: they're SICK)
5:20
Third Aurora
Рет қаралды 40 М.
AR Foundation & Unity 03: Image Tracking
12:12
Dinesh Punni
Рет қаралды 126 М.
Pushing your Unity Augmented Reality App to an iOS device
10:22
Augmented Reality (AR) tutorial for beginners using Unity 2022
32:11
Playful Technology
Рет қаралды 288 М.
How to create Virtual buttons with Vuforia AR & Unity3D
9:25
CubicBrain
Рет қаралды 204 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 7 МЛН