Unity AR Foundation Image Tracking to play Video

  Рет қаралды 20,905

Mohd Hamza

Mohd Hamza

3 жыл бұрын

In this video, we will look into how to use Unity AR Foundation packages to play a video using AR Image Tracking.
In this video, I'm using:
Unity 2020.1
AR Foundation 3.1.6
ARKit 3.1.8
ARCore 3.1.8
Discord server invite: / discord
Buy me a coffee here: www.buymeacoffee.com/mohamza
Video used from pexels: www.pexels.com/video/a-woman-...
The art is used from Flaticon.com
Hit the like button if you like my work, comment if you have any feedback/suggestions. Subscribe for more content coming every week.

Пікірлер: 74
@wwfanjeffhardy619
@wwfanjeffhardy619 Жыл бұрын
What a legend! Thank you very much for this tutorial!
@paulohenriquerodrigues3230
@paulohenriquerodrigues3230 Жыл бұрын
Best tutorial out there! I've been trying to make this work for ages and FINALLY I could make it work! THANKS!
@MohdHamza
@MohdHamza Жыл бұрын
Thanks!
@Al-Xorazmiy1
@Al-Xorazmiy1 10 ай бұрын
@@MohdHamza where can i host this bro, I am new in C# unity
@MohdHamza
@MohdHamza 10 ай бұрын
@@Al-Xorazmiy1 host what bro? Come to discord(link in description) for further discussion.
@tefo875
@tefo875 Жыл бұрын
hai I have an issue after build it tracks the image and show the image only the video is not playing at all , Any one know how to solve it
@soulsauveur
@soulsauveur Жыл бұрын
Hello, it works like a charm, but the problem is that there is no audio. On my iPhone the sound of the video is not playing, I tried different settings on the video player but it doesn't work. Would you happen to know how to play the sound of the video?
@sheenmanalo3752
@sheenmanalo3752 2 жыл бұрын
Is there any configuration that would play in both android & IOS?
@gorgitaher8266
@gorgitaher8266 Жыл бұрын
THANK YOU SO MUCH, how can i make targets for multiple videos ?
@notedownz
@notedownz 2 жыл бұрын
how do you run this on your phone? like i have no idea
@thuphung5871
@thuphung5871 2 жыл бұрын
is this AR video has sound?
@meow9874
@meow9874 2 жыл бұрын
Hi i tried building it to ios but the video wont play? but android works, need help thanks!
@nana_1888
@nana_1888 2 жыл бұрын
How about multiple images tracking, make a tutorial please...
@anandsingh741
@anandsingh741 2 жыл бұрын
Display 1 no error rendering after i click the video
@GuilhermeSantos-gu3ef
@GuilhermeSantos-gu3ef 2 жыл бұрын
Great tutorial! I played with a single video and it worked perfectly, but I still couldn't play multiple videos, like creating an animated album. I would love to see a tutorial that reproduces this!! Thanks!!
@pythonandjs6380
@pythonandjs6380 2 жыл бұрын
Multiple videos working? How is it going? Tell me, please, I also want
@XojanazarTursinbayev
@XojanazarTursinbayev 2 жыл бұрын
I can do it
@pythonandjs6380
@pythonandjs6380 2 жыл бұрын
@@XojanazarTursinbayev как?
@XojanazarTursinbayev
@XojanazarTursinbayev 2 жыл бұрын
@@pythonandjs6380 патом объясняю, напиши мне еще раз чтобы легко найти тя.
@nana_1888
@nana_1888 2 жыл бұрын
@@XojanazarTursinbayev would you mind to make a tutorial please
@nana_1888
@nana_1888 2 жыл бұрын
Why after i build and run the application it's blank, no camera scan appears
@satyamshrikant1167
@satyamshrikant1167 8 ай бұрын
May be your device doesn't support AR Core by Google
@mim1921
@mim1921 3 жыл бұрын
Thanks !!!!!
@MohdHamza
@MohdHamza 3 жыл бұрын
👍
@itsk4000
@itsk4000 Жыл бұрын
I followed you and when I put the phone parallel to the photo, the video will appear below the photo, is there any way to make the video always in the place of the photo, please help me, I would greatly appreciate it. thank you
@HHE1009
@HHE1009 Жыл бұрын
I have the same problem now. Hope can solve it soon.
@HHE1009
@HHE1009 Жыл бұрын
Thank you for your tutorial. I use Unity 2022.1.20f1, can you please tell me how can I get "Googel Pixel 2" at Video timeline 11:00? How can I set up the android environment?
@MohdHamza
@MohdHamza Жыл бұрын
Hi, Really appreciate your comment. In regards to your question, you need to be in developer mode on your Android device. Search for how to get into developer mode for your particular device on google. Once it’s done you will see that option.
@HHE1009
@HHE1009 Жыл бұрын
@@MohdHamza Thanks. I fixed it. but it still doesn't work at last step. I use Unity 2022.1.20f1, should I use the same one like your tutorial? 2020.1.6f1 ?
@DungPham-xe3wz
@DungPham-xe3wz 2 жыл бұрын
tks for your turtorial. i have a trouble. i want add button: play, pause, stop, mute , slider tracking time; to control video. Can you help me. Thanks
@MohdHamza
@MohdHamza 2 жыл бұрын
Hi, Thank you for dropping by. If you understand how the video player is implemented, you can check out this and merge the two. kzbin.info/www/bejne/b33agKCDr7SlppY Simple things like start and stop button should be straight forward.
@DungPham-xe3wz
@DungPham-xe3wz 2 жыл бұрын
@@MohdHamza thank you for your help
@vishalpal6577
@vishalpal6577 2 жыл бұрын
I have a laptop with 256 gb space (40 gb ram) and 4 gb ram. And I am learning unity(as beginner) is my laptop space enough for that
@MohdHamza
@MohdHamza 2 жыл бұрын
Hi Vishal, Congratulations on getting started. I hope you find this space useful. In regards to your question I believe storage wouldn't be a issue in the beginning days. You could expand using an external hard drive if required however I think 4gb of RAM is a little less specially if you are building games which will be heavily dependent on processing.
@cambia4326
@cambia4326 2 жыл бұрын
Looks like it works, thanks for posting. But without narration, and with no source file posted, this is really hard to follow, especially with the video being so fuzzy when viewing full screen. The captions help, but there aren't enough of them. Wish I could follow it all, because I really need the information, and it looks like this works. For example, you did a lot of stuff very quickly between 08:35 and 10:30, and there were no captions. Could you explain what you were doing there, please? Thank you!
@MohdHamza
@MohdHamza 2 жыл бұрын
Hi, Thank you for your feedback. Will definitely try to narrate in future videos. I thought this one didn't require. I'm not sure if your problem is resolved. If it isn't you can share more details on my discord server (link in description)
@cambia4326
@cambia4326 2 жыл бұрын
@@MohdHamza thanks for the quick reply, really appreciate that. just want to know what you did between 08:35 and 10:35 . . . you were selecting a lot of stuff, but i couldn't read the screen (too fuzzy), and there were no captions. thanks again. also, as an aside, what i've really been looking for is some guidance on how to trigger audio files via image tracking. i thought your video might offer a clue, but can't be sure until i'm able to replicate! cheers.
@MohdHamza
@MohdHamza 2 жыл бұрын
@ 8:35 I checked the Video player to be working in the editor by disabling the AR components. Then after checking that its working I enabled the components and created a prefab of the video playback quad so that we can spawn it when the tracked image is visible to the camera. I also created an empty as a parent to the prefab so that the transform remains at scale 1,1,1 instead of 0.16 and 0.1. I feel I need to write chapters to videos from now on. Hope that helps.
@noumqn
@noumqn 3 жыл бұрын
Nicee.
@MohdHamza
@MohdHamza 3 жыл бұрын
Thanks 😊
@SurvivorsCharm
@SurvivorsCharm 5 ай бұрын
I will actually kiss you on the lips! BEST TUTORIAL EVER!!!
@muhammadizzatbinahmadzaini5770
@muhammadizzatbinahmadzaini5770 10 ай бұрын
hi, ive try doing exactly like yours by using my pixel 6 phone, but when installed, the apps went blank, can you help me
@adityachaubey8662
@adityachaubey8662 Ай бұрын
same with me did you get any solution for it?
@anwpecirotan
@anwpecirotan 2 жыл бұрын
why using AR Foundation 3.1.6 and not the latest one?
@MohdHamza
@MohdHamza 2 жыл бұрын
Hi Anwar, This is what worked for me, you can try other versions if you wish to, in my future videos I'll demonstrate using ARFoundation 4+
@anandsingh741
@anandsingh741 2 жыл бұрын
Display 1 no error rendering after i click the video 08:55 Please help me out
@Red1ska
@Red1ska Жыл бұрын
Its lil late 😂😂 but u should add camera
@fatrishamohamedyussof5139
@fatrishamohamedyussof5139 2 жыл бұрын
Hi ive followed this video tutorial and successfully cuild and run . however on the phone apps I cant scan image, the screen is blank. may I know why is it because of my android version? should I change to android 5.0 at playersettng? please help
@MohdHamza
@MohdHamza 2 жыл бұрын
Hi, I think a minimum of Android 7.0 works with ARCore.
@fatrishamohamedyussof5139
@fatrishamohamedyussof5139 2 жыл бұрын
@@MohdHamza hi is it because of the unity version I use? i use 2021.3.1f1......at console appear this warning "No active UnityEngine.XR.ARSubsystems.XRSessionSubsystem is available. Please ensure that a valid loader configuration exists in the XR project settings. UnityEngine.XR.ARFoundation.ARSession:OnEnable () (at Library/PackageCache/com.unity.xr.arfoundation@4.2.3/Runtime/AR/ARSession.cs:341) "
@MohdHamza
@MohdHamza 2 жыл бұрын
@@fatrishamohamedyussof5139 ​ Maybe, I have tested on a lower version as in the video. Try that.
@fatrishamohamedyussof5139
@fatrishamohamedyussof5139 2 жыл бұрын
@@MohdHamza ok thanx much
@fatrishamohamedyussof5139
@fatrishamohamedyussof5139 2 жыл бұрын
hi, I've tested another version and succeeded but the other prob is now when I scan the marker image, I can only hear sound but the video does not appear. may I know why this is happening?hope to hear from you soon
@megabigman19
@megabigman19 Жыл бұрын
Hi, I've done everything step by step, and when I run app after installation APK file, mobile screen is black and nothing appears . can you give advice or solution? thanks
@MohdHamza
@MohdHamza Жыл бұрын
Hi, Try selecting ARCore under XR Plugins.
@wyindepi8870
@wyindepi8870 10 ай бұрын
hello i have same problem. +and no arcore under xr plugins, i have only XR Origin @@MohdHamza
@XojanazarTursinbayev
@XojanazarTursinbayev 2 жыл бұрын
Thanks for tutorial. How to add video from server? For example, i want to add video to AR from youtube or google disk. Could you tell me or make a video? Please🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@MohdHamza
@MohdHamza 2 жыл бұрын
Hi, @8:12 If you check out the video player component on the right side, you can switch the source from Video Clip to URL. That should work.
@XojanazarTursinbayev
@XojanazarTursinbayev 2 жыл бұрын
@@MohdHamza Hi, i have tried this url but video didn't wotk. Do you know any other way to add video from server or youtube? Thank you a lot.
@T__SyamAgungWidiarna
@T__SyamAgungWidiarna 2 жыл бұрын
is it fine if i run this step with a different version of editor and ar package?
@MohdHamza
@MohdHamza 2 жыл бұрын
Unfortunately can't guarantee that.
@T__SyamAgungWidiarna
@T__SyamAgungWidiarna 2 жыл бұрын
It work on unity 2020.3 with recomended ar package version
@alpharhomedia9006
@alpharhomedia9006 11 ай бұрын
I get black screen only, what is wrong?
@puneethsrisai
@puneethsrisai Ай бұрын
same here found any solution?
@sarthaksinghbrar
@sarthaksinghbrar 2 жыл бұрын
After opening app Not showing anything on smartphone
@adityachaubey8662
@adityachaubey8662 Ай бұрын
Same is happening with me , what to do?
@MYSTERIOMAXXX
@MYSTERIOMAXXX 2 жыл бұрын
Hi can u please tell me how to position xyz camera angel?? in my case only 2 dimensions are visible and when i hit play screen turns black due to improper camera and videoplayer setup.
@TheTguevarra
@TheTguevarra 2 жыл бұрын
Got also black screen, after I open this app, did u solve this?
@user-yy7ju6uz7y
@user-yy7ju6uz7y 3 жыл бұрын
Give the link bro
@MohdHamza
@MohdHamza 3 жыл бұрын
Hi, The link is in the description for the assets used.
@TheDarkin74
@TheDarkin74 Жыл бұрын
Привет. Видео супер - но почему то не работает.... Failed to generated ARCore reference image library 'ReferenceImageLibrary' UnityEngine.GUIUtility:ProcessEvent (int,intptr) BuildFailedException: Failed to generate image database. Output from arcoreimg: Error building Player: 2 errors Build completed with a result of 'Failed' in 1 seconds (1157 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr) UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent (int,intptr)
@gofudgeyourselves9024
@gofudgeyourselves9024 3 жыл бұрын
Take image and video from server in next video
@MohdHamza
@MohdHamza 3 жыл бұрын
Great suggestion!
Tutorial Video Player on Image Target
16:29
Zullouz AR
Рет қаралды 3 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 53 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 158 МЛН
Create World Space AR | Geospatial Creator Tutorial - ARCore in Unity
18:12
Creating Augmented Reality Posters Using Adobe Aero
9:15
Solopress
Рет қаралды 33 М.
AR Foundation Image Tracking - Unity Augmented Reality/AR
7:48
Dev Enabled
Рет қаралды 62 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 733 М.
Get started with Geospatial Creator in Unity
15:21
Google AR & VR
Рет қаралды 30 М.
How to Make 3D Fractals
7:48
CodeParade
Рет қаралды 1,6 МЛН
Unity Augmented Reality Tutorial Lesson 01 - AR Simulation
15:57
lightsandclockwork
Рет қаралды 17 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН