Beginners guide to UNITY AR Image Tracking | No code required | Build your first AR app from scratch

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

КОМЕНТАРІ • 78

  • @khoo6535
    @khoo6535 Рік тому +2

    This one works out of so many tutorials I tried, thx

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

    How do i import an older ARfoundation version into Unity?

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

    I have this error " Unrecognised Android chroma siting range: [2, 2]. Applying default"
    What should I do. Thank a lot!

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

    what should i do if i want to have multiple image target and multiple pre fabs to put on them??
    please help me out with this one.

  • @MumtazKhan-yn3mb
    @MumtazKhan-yn3mb 3 роки тому +2

    Well done! Thanks worked in one go!

  • @metekutlu90
    @metekutlu90 3 роки тому +4

    Hi Mohd, actually I would like to keep the 3D model in place even after the camera moves away from the tracked image. The prefab should not disappear. I would be soo grateful if you could give some directions ? Thank you very much !!

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

      Watch this video for that ua-cam.com/video/KqzlGApWPEA/v-deo.html
      I think it will help

  • @starbuck3980
    @starbuck3980 8 місяців тому

    I want to detect several images i just add more components of type Ar tracked image?

    • @MohdHamza
      @MohdHamza  7 місяців тому

      There is a multiple image option, but that requires writing a script so that spawning and deleing happens seamlessly between tracked images.

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

    how I wan to changes from that spider animation to my own 3D model from my pc?

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

    How would i do a simple can i see image yes or no enum system?

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

    IDK why I am having black screen. Did I do something wrong with player settings for ios?

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

      Hi, its mostly related to the combination of AR packages and Unity version, check my discord server(Link in description) .
      I have pinned few comments where people have faced similar issues and got it fixed.

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

      In case someone needs this, you just need to ensure ARCore is enabled under the XR plug in management. Then ensure you delete vulkan under the graphics API, and ensure you are running on ARM64 by changing the 'scripting backend' to IL2CPP.

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

    Greetings! Thanks for the tutorial! Is there a way to keep the model stuck with the image once it is instantiated? Once the model apear; this one sometimes start to float around even if the image is still on sight

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

    I have a problem that is when I remove AR marker but the 3d object still showing. So can you tell me what I can do.

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

      Hi Tarun,
      For that a custom script would be added where AR Tracked Image manager is present.
      I haven't tried yet but do know what can be done.
      It would basically identify tracking states, if the marker isn't visible, the Tracking will switch to TrackingState.Limited, it is at this moment we would do something like prefab.setActive(false);
      You can read this article : docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/manual/tracked-image-manager.html#determining-when-an-image-is-visible

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

      @@MohdHamza Thank you

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

    Thank you very much! What would be the logic to follow if we wanted to use the image as trigger to place and fix a prefab to a fixed position relative to the image ?

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

      Glad you liked it.
      In regards to your question, you can create a sample plane or quad of the same size as the image specified( 0.1m in x and y in the video), then drag your prefab on it. You’ll get a good understanding of how to fix your prefab size accordingly.

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

      ​@@MohdHamza Thank you ! will try

  • @mikhailcherevatskiy5735
    @mikhailcherevatskiy5735 10 місяців тому

    It doesn't work on my phone. I just get the black screen. What could be the cause?

    • @MohdHamza
      @MohdHamza  10 місяців тому

      There could be multiple reasons. We have discussed and pinned a lot of them in my discord server. Check the invite link in the description.

  • @starbuck3980
    @starbuck3980 8 місяців тому

    For ios is the same logic with the same components?

    • @MohdHamza
      @MohdHamza  7 місяців тому

      Should work with iOS

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

    Do we need to install google services AR in playstore while running this unity ? Because my phone cannot run unity itself & not even compatible to install that google services AR app

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

      Check if your device is listed here: developers.google.com/ar/devices
      If it is you shouldn’t install any extra apps, your Unity AR app should work straight away.

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

    Sorry how did it went from build and run from literaly running in another device?

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

      My android device (in developer mode) was already connected to my system. So if you see @9:02 my device name appears as the target device to be build.

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

      @@MohdHamza thanks for the quick anwser. But my does not. Tried 2 phones too. At this point feels i went as far as the deep web trying to figure this out XD

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

      @@alexruas6235 : Does this help? ua-cam.com/video/iCXwaehzRFQ/v-deo.html&ab_channel=CocoCode

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

    why arfoundation 3.1.6 ?

  • @SaurabhShelar-cm5xi
    @SaurabhShelar-cm5xi Рік тому

    Can I make it dynamic? Like I'll give user a ability to upload an image on server and they will use that image to track.

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

      Well you can, but that will involve a bit of backend work to achieve that. Haven't tried it but looks possible.

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

    Not working. What to do?

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

    I am unable to add AR session; it just doesn't appear when i click on XR. Please help

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

      This sounds like the packages have not been imported, can you please check with your package manager if all AR packages are downloaded and imported.

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

      All the packages have been installed and imported but there are errors in the console how can i fix them

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

      @@amandixit8621 can you share screenshots of the project/console etc in the discord server(link in description)

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

      I did it.

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

    Hay !
    Can you tell me how can i make a ar app that give camera's position (I means mobile camera co-ordinate)
    I search it on web but not able to find.
    Btw like your contant .

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

      Hi, Thanks for liking the content.
      In regards to your question, I haven’t tried in AR but you can use Gyroscope and/or accelerometer classes to access the camera position and rotation.

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

      @@MohdHamza yeah! I try it by gyro and accelerometer but it can only able to calculate orientation not position .

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

    Very good video every step was explained perfectly. I just have a problem when I run the app on my phone a black screen appears nothing happens what to do.

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

      Thanks, check the pinned comments on my discord server(link in description), you might find a solution for your problem.

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

    Great video sir wanted to ask a quick question how do you replace main camera with AR camera for example turning my normal game to AR camera

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

    Mine isnt tracking for some reason. the tracked image just disappears and reapears

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

    Cool stuff like this type of AR

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

    Hi , Will the AR works if we take build as PC application ?

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

      I think what you mean is Web XR which isn’t possible through this video. However what you asked for can be done as Unity has certain packages for WebXR.

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

    Please Make one video of change the object color by script, rotate and scale by Slider or Button.
    Thanks

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

    Nice Video Mohd!! But I got a problem when I run my unity AR project my phone and laptop just show black screen. I have no idea how to fix this....
    Do you know how to fix this.
    My unity version is 2022.1.20f1.

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

      Thank you for your appreciation.
      If possibile try using using the same Unity version and package versions as I used. Apart from that black screen can be caused dur to a number of factors. If you go to my discord server, I have pinned thé solutions that have worked for others when they faced the black screen issue. Hopefully you’ll get a solution.

  •  Рік тому

    I respect your content and I thank u for it. Keep it up with your good work!!
    ...But .. n the other hand, .. I mean. From that point for g angle .
    Maybe too much much love in the air, isn't??? Maybe too muchcontent. -+😅
    😅
    Spider actually did, spiderman, just saying..
    Best of luck you'll. 7
    Come on, you guys didn't notice???

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

    No code is the best
    sangat ramah, saya kasih bintang 5
    semoga sukses selalu

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

      Terima kasih banyak😊

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

    Can we use multiple image targets in same scene

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

      You could but that would require some script writing.

  • @JayPatel-sw2fh
    @JayPatel-sw2fh 3 роки тому +1

    Nice tutorial man👏,
    Just one doubt can we create live wine label app like 19crime wine with Arcore in unity?
    I have already made this with Vuforia sdk with cylinder as a target.
    But can it possible with ARcore?
    If yes, how?

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

      Thanks Jay,
      In regards to your question, how I would go about doing the live label is to create a curved 2d panel in Blender (which would wrap around the bottle), use it as a video player in Unity.
      Create a logic that when you scan the picture on the bottle, it comes to life and play the video at the same place.
      It is definitely possible through ARCore. I've not used Vuforia for a while so can't really comment on that.

    • @JayPatel-sw2fh
      @JayPatel-sw2fh 3 роки тому

      @@MohdHamza Thank you so much.
      You have great tutorial on AR.

    • @JayPatel-sw2fh
      @JayPatel-sw2fh 3 роки тому

      @@MohdHamza Hi sir, can cylinder object detection or non flat image tracking is possible in ARCore for unity?

  • @AS-dn3wc
    @AS-dn3wc 3 роки тому

    it's very nice....

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

    hi is there any way to contact you

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

      Hi Himanshu,
      You can contact me through discord (link in description)

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

    Please send me the apk file on my email if possible. Thanks

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

    My 3D object don`t appear

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

      Hi, can you please describe your problem, may be console logs would help. Further if you wish to share screenshots to explain your issue you can post them in my discord server(link in description).

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

      @@MohdHamza can you give me your discord to send you screen shoot from my project?

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

      @@MohdHamza when I press on my pnone`s screen, the indicator dispair, and the 3D objecy don`t appear

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

      @@gabrielboiciuc2517 discord.gg/c7KWwsumEN

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

      @@MohdHamza i put on the discord server my assets