Unity AR Foundation Image Tracking to play Video

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 77

  • @paulohenriquerodrigues3230
    @paulohenriquerodrigues3230 2 роки тому +2

    Best tutorial out there! I've been trying to make this work for ages and FINALLY I could make it work! THANKS!

    • @MohdHamza
      @MohdHamza  2 роки тому +1

      Thanks!

    • @MohdHamza
      @MohdHamza  Рік тому

      @Al-Xorazmiy1 host what bro? Come to discord(link in description) for further discussion.

  • @tefo875
    @tefo875 Рік тому +4

    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

  • @notedownz
    @notedownz 2 роки тому +3

    how do you run this on your phone? like i have no idea

  • @GuilhermeSantos-gu3ef
    @GuilhermeSantos-gu3ef 3 роки тому +8

    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 3 роки тому +2

      Multiple videos working? How is it going? Tell me, please, I also want

    • @XojanazarTursinbayev
      @XojanazarTursinbayev 2 роки тому +3

      I can do it

    • @pythonandjs6380
      @pythonandjs6380 2 роки тому +1

      @@XojanazarTursinbayev как?

    • @XojanazarTursinbayev
      @XojanazarTursinbayev 2 роки тому +1

      @@pythonandjs6380 патом объясняю, напиши мне еще раз чтобы легко найти тя.

    • @nana_1888
      @nana_1888 2 роки тому +1

      @@XojanazarTursinbayev would you mind to make a tutorial please

  • @wwfanjeffhardy619
    @wwfanjeffhardy619 Рік тому

    What a legend! Thank you very much for this tutorial!

  • @nana_1888
    @nana_1888 2 роки тому +4

    Why after i build and run the application it's blank, no camera scan appears

    • @satyamshrikan
      @satyamshrikan Рік тому

      May be your device doesn't support AR Core by Google

  • @Gnanendrap
    @Gnanendrap 2 місяці тому

    Which templete we should use in starting ?

  • @sheenmanalo3752
    @sheenmanalo3752 2 роки тому +2

    Is there any configuration that would play in both android & IOS?

  • @nana_1888
    @nana_1888 2 роки тому +3

    How about multiple images tracking, make a tutorial please...

  • @HHE1009
    @HHE1009 2 роки тому +1

    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  2 роки тому +1

      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 2 роки тому

      @@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 ?

  • @soulsauveur
    @soulsauveur Рік тому +1

    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?

  • @thuphung5871
    @thuphung5871 2 роки тому +1

    is this AR video has sound?

  • @itsk4000
    @itsk4000 2 роки тому +1

    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 2 роки тому

      I have the same problem now. Hope can solve it soon.

  • @cambia4326
    @cambia4326 3 роки тому +1

    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  3 роки тому

      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 3 роки тому

      @@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  3 роки тому

      @ 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.

  • @gorgitaher8266
    @gorgitaher8266 Рік тому

    THANK YOU SO MUCH, how can i make targets for multiple videos ?

  • @muhammadizzatbinahmadzaini5770

    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 6 місяців тому

      same with me
      did you get any solution for it?

  • @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

  • @megabigman19
    @megabigman19 Рік тому +1

    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 Рік тому

      hello i have same problem. +and no arcore under xr plugins, i have only XR Origin @@MohdHamza

  • @anwpecirotan
    @anwpecirotan 3 роки тому +1

    why using AR Foundation 3.1.6 and not the latest one?

    • @MohdHamza
      @MohdHamza  3 роки тому +1

      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+

  • @alpharhomedia9006
    @alpharhomedia9006 Рік тому +1

    I get black screen only, what is wrong?

    • @puneethsrisai
      @puneethsrisai 6 місяців тому

      same here
      found any solution?

  • @fatrishamohamedyussof5139
    @fatrishamohamedyussof5139 2 роки тому +1

    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

  • @sarthaksinghbrar
    @sarthaksinghbrar 2 роки тому +1

    After opening app Not showing anything on smartphone

  • @saraalfeo9089
    @saraalfeo9089 3 місяці тому

    hi, I need your help...I followed all your steps, the app opens but the video doesn't come out. Can you kindly help me

    • @saraalfeo9089
      @saraalfeo9089 3 місяці тому

      @reisantiago._. no:(

    • @MarcelloNisiEngineer
      @MarcelloNisiEngineer 2 місяці тому

      @@saraalfeo9089 ​ @reisantiago._. il problema è solo nel mettere le stesse dimensione al quad e alla texture

  • @SurvivorsCharm
    @SurvivorsCharm 11 місяців тому +1

    I will actually kiss you on the lips! BEST TUTORIAL EVER!!!

  • @vishalpal6577
    @vishalpal6577 3 роки тому +1

    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  3 роки тому

      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.

  • @DungPham-xe3wz
    @DungPham-xe3wz 3 роки тому

    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  3 роки тому

      Hi, Thank you for dropping by.
      If you understand how the video player is implemented, you can check out this and merge the two.
      ua-cam.com/video/9LwOmMzOrp4/v-deo.html
      Simple things like start and stop button should be straight forward.

    • @DungPham-xe3wz
      @DungPham-xe3wz 3 роки тому

      @@MohdHamza thank you for your help

  • @meow9874
    @meow9874 2 роки тому

    Hi i tried building it to ios but the video wont play? but android works, need help thanks!

  • @anandsingh741
    @anandsingh741 2 роки тому

    Display 1 no error rendering after i click the video

  • @T__SyamAgungWidiarna
    @T__SyamAgungWidiarna 3 роки тому

    is it fine if i run this step with a different version of editor and ar package?

    • @MohdHamza
      @MohdHamza  3 роки тому

      Unfortunately can't guarantee that.

    • @T__SyamAgungWidiarna
      @T__SyamAgungWidiarna 3 роки тому +1

      It work on unity 2020.3 with recomended ar package version

  • @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.

  • @MYSTERIOMAXXX
    @MYSTERIOMAXXX 3 роки тому

    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.

  • @noumqn
    @noumqn 3 роки тому

    Nicee.

  • @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)

  • @mim1921
    @mim1921 3 роки тому

    Thanks !!!!!