Hit Testing in WebXR - Part 1 Setup

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

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

  • @C0llinsW0rth.
    @C0llinsW0rth. 4 หลายเดือนก่อน

    idk if a response is going to happen, but I would love to figure out how to replace the cone with my own GLTF model. Thank you for these awesome tutorials regardless!

  • @artymusoke1352
    @artymusoke1352 ปีที่แล้ว

    thanks for these videos! I wanted to ask if you can make an image tracking one next for AR

    • @webxracademy
      @webxracademy  ปีที่แล้ว

      Hi there, we cover this in our advanced class. Take a look at the curriculum: www.webxracademy.com/view/courses/masterclass/891046-other-advanced-topics/3290198-image-targets-android. Only works on android phones for now.

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

    Hello, many thanks for the insight. How can I distinguish floor, walls and celling in hittest? Thank you

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

      Hi there, thanks for the question. It's not super easy I have to admit. You have to log the position of the pose coming from the hit test, so this line:
      const pose = hit.getPose(localSpace);
      and see when y or z axis value flips to negative (I believe that shows you when you hit a ceiling) and when it flips again to positive. Can't remember which of these is the right axis right now.

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

    Hi, the hit test demo doesn't work on my phone in the latest chrome on android. I just see my camera and no reticle. All the other three js webxr demos work

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

      Hi there, thanks for the question. This is probably because this is 1 of 4 videos around hit testing! Each one builds on the previous video so the full code you get by video #4.
      Check out how it breaks down here: www.webxracademy.com/view/courses/intro-webxr/1065808-interactions-in-ar

  • @C0llinsW0rth.
    @C0llinsW0rth. 4 หลายเดือนก่อน

    OMG THERE'S NO PART 2 NO PART DOS!?!?!?!?!?

  • @Catcatj8m
    @Catcatj8m 5 หลายเดือนก่อน +1

    Keep going why did u stopped it❤

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

    Hi! Does it work on iOS?

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

      Hi Vitalii, we've written extensively about this on our homepage: www.webxracademy.com/. If you scroll to the FAQ you'll find answers to: "Does the WebXR API work on iOS phones?" and "When will the WebXR API be fully supported on iOS?". Let me know if those answers address your questions.

  • @patrickm.39
    @patrickm.39 3 ปีที่แล้ว +1

    We can't use custom 3D elements in WebXR examples... what's the point? [ edit: you blocked my comments to protect your brand ? I'm just giving you user feedback ]

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

      Hi Patrick, I'm not sure I fully understand your question. What exactly do you mean by "custom 3D elements"? You can load 3d models in WebXR, you can create custom shapes with Three.js, you can load obj, fbx, gltf, glb models with animations, etc. What do you mean by "can't use custom 3D elements"?

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

      Hi Patrick! We didn't block your comment, not sure why you're seeing that on your end. We replied about a month ago - did the reply not answer your question?