AR Foundation Object Placement - Unity Augmented Reality/AR

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ต.ค. 2024

ความคิดเห็น • 30

  • @DevEnabled
    @DevEnabled  4 ปีที่แล้ว +1

    In this video, we build upon our plane tracking implementation and create the Object Placement script allowing us to drop selected objects onto any tracked plane.

    • @mahendran671
      @mahendran671 4 ปีที่แล้ว

      what if the spawned object as a rigidbody component ?does it fall or sit on plane

    • @neilchan1
      @neilchan1 4 ปีที่แล้ว

      Hi Dev Enabled,
      Awesome tutorial, but do you happen to know how I can set the rotation of the object when I place it?
      E.g. Place the object with a -180 Y-Axis value, so that it is facing the other way.

  • @davidnguyen7159
    @davidnguyen7159 2 ปีที่แล้ว

    Thanks so much! Great video! This is the best tutorial series I've seen. You do a really good job of walking through the code.

  • @sonyareznikova4542
    @sonyareznikova4542 4 ปีที่แล้ว

    Thank you so much! Was supremely helpful, to a first-time Unity user.

  • @aarons4078
    @aarons4078 2 ปีที่แล้ว +2

    I am having trouble running this script in ios. The plane tracking works on my phone, but when I tap the screen nothing happens. The c# script isn't causing any errors in the unity editor, and all the spelling seems to be correct. Does anyone have suggestions? I'm wondering if unity updated something that may have broken the script's functionality. For instance, I noticed that in the latest version of unity, the ARRaycastmanager script accepts an optional raycast prefab, not sure if that is relevant.

    • @bilgehan2778
      @bilgehan2778 2 ปีที่แล้ว +1

      Hey, this is a bit late but hopefully it's helpful to anyone else that may be looking into this. Also developing an AR app for iOS and having an issue with getting the code running.
      What I've found so far is that if you check the Input.touchCount for every update frame it seems (at least on my end) that it is always 0 no matter where I press on the screen. As the app is not detecting a touch, it's immediately returning the result and that causes the app to not work.
      What's interesting is that there are not issue reports on forums or stack overflow that I can find. I will look further into this, hopefully an easy solution can be found by someone soon.
      Update: ok so after some testing I have found that while the new EnhancedTouch function detects touching the screen, Input.touchCount does not. Checked both arrays and enhanced touch is the only one detecting contact. For anyone else having issues, I would recommend looking into UnityEngine.InputSystem.EnhancedTouch.
      Update2: just to make life of future people easier here's the lines you will need to update in order to get this to work:
      Instead of "if(Input.touchCount > 0)" do "if(Touch.activeTouches.Count > 0)"
      Instead of "touchPosition = Input.GetTouch(0).position;" do "touchPosition = Touch.activeTouches[0].screenPosition"
      do note that there seems to be a naming collision between UnityEngine.Touch and UnityEngine.InputSystem.EnhancedTouch.Touch. You may need to prefix "Touch" with a reference to which library you're referring to (UnityEngine.InputSystem.EnhancedTouch in our case)

  • @ruhlmcu
    @ruhlmcu 4 ปีที่แล้ว +1

    great tutorials. these are the best and most current I have found.
    I am having a very difficult time displaying 3d models that I have imported for a project. They are upside down, backwards, etc. I realize that they are displayed relative to the AR Session Origin but any manipulation I do of the rotation on either the AR Session Origin or the prefab don't seem to make a difference.
    Two questions.
    Should I manipulate the object in the graphics tool first? (Blender in this case)
    If so do I position the objects to a specific direction?
    OK a third.
    What file type do you recommend to import into Unity?
    I realize teaching people like me isn't your primary job. Thanks for any help you can provide...
    Curt

  • @rensalazar
    @rensalazar 4 ปีที่แล้ว +1

    You're the man! Thank you for this. Much appreciated 🙇‍♀️
    More power to you.

  • @Dweeh
    @Dweeh 3 ปีที่แล้ว +1

    HitPos / HitPose was a bit confusing at first since your editor did not protest. If anyone else is wondering about that - just continue to watch - and it will be explained.

  • @Horsaz
    @Horsaz 4 ปีที่แล้ว +1

    If I'd want to rotate my object say 90 degrees, what would I have to do? Your tutorials have really been super great!

  • @ruhlmcu
    @ruhlmcu 4 ปีที่แล้ว

    Do you have recommendations for extensions in Visual Studio Code for Unity and Unity AR development? Also great videos. They are current and well done. Very professional!

  • @sreyaskamghoshal4939
    @sreyaskamghoshal4939 4 ปีที่แล้ว

    can we remove the yellow colour of the plane detection
    and give a clearer view

  • @diyandassembling2907
    @diyandassembling2907 3 ปีที่แล้ว

    How to measure object size from real world objects. Could you please make a tutorial on this. It will be very helpful.

  • @aashutoshdabhade4325
    @aashutoshdabhade4325 4 ปีที่แล้ว

    Thanks for the video sir! just one query.why my prefab is rotated by 90 degrees? however though when I place an object in the unity editor, it gets placed correctly.

    • @tkts8782
      @tkts8782 3 ปีที่แล้ว

      A late response but Unity does that! Might be a bug

  • @Nikdeckreviews
    @Nikdeckreviews 3 ปีที่แล้ว

    thanks for this amazing video. it just works. can you please tell me how can i move that aircraft on that tracedd plane.

  • @musicalbirds2928
    @musicalbirds2928 4 ปีที่แล้ว

    Great channel, great video, great content. Thanks for sharing.

    • @DevEnabled
      @DevEnabled  4 ปีที่แล้ว

      Thank you, great to hear you're enjoying it.

  • @themanas100
    @themanas100 3 ปีที่แล้ว

    Hi is there a way to make it so you can change the size of the object in the app itself, so that you dont need to resize your prefab outside the app urself?

    • @DevEnabled
      @DevEnabled  3 ปีที่แล้ว

      Yep, I think most people go for a pinch and drag input option. But you could add buttons, sliders. The options are endless.

  • @funjay9559
    @funjay9559 4 ปีที่แล้ว

    Is there a way I can change this script so i can only place it once and then it’s there forever??
    I’m stuck on it

    • @TechDunk
      @TechDunk 3 ปีที่แล้ว

      Always instantiate a new object and never touch the existing one

  • @emiwan79
    @emiwan79 4 ปีที่แล้ว

    Hi! Great tutorial!!. Wich version of ARFoundation are you using? it dont recognizes me the "Input" and the "TrackeableType" commands. Im in unity 2019 and arFoundation 2.1.8. Cheers!

  • @Acumen928
    @Acumen928 3 ปีที่แล้ว

    Hey Mr voice, Please make a tutorial of an AR object moving independently in a room in all axis, like a butterfly or bird flying around in a room. Thank you.

  • @tru9935
    @tru9935 4 ปีที่แล้ว

    Make more videos pls sirr 😁

  • @VVLGANESHK
    @VVLGANESHK 4 ปีที่แล้ว

    Please make more AR for unreal engine also

    • @DevEnabled
      @DevEnabled  4 ปีที่แล้ว +1

      Already done it.