Three.js Raycasting Tutorial for Beginners

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

КОМЕНТАРІ • 18

  • @genshian
    @genshian 10 місяців тому +1

    As usual some of the best Three.js content. I've been messing around with Raycasters to create a drag functionality. Similar to DragControls from drei. It needs quite a bit of math to ensure the objects transform based on where the camera's pointing and also the pointer data + raycast data. Would be a great tutorial if possible! :D

  • @LightFromThePast
    @LightFromThePast 29 днів тому

    Thank you very much for the tutorial and the git example! Helped me a lot!

  • @tedreams
    @tedreams 10 місяців тому +2

    Great and straightforward tutorial thanks again. Now the step should be how to move the selected object around the scene.

    • @dangreenheck
      @dangreenheck  10 місяців тому +1

      You are the 2nd person to comment that in 10 minutes so I will definitely consider it!

  • @maazi3d
    @maazi3d 4 місяці тому

    Great tutorial ❤❤ but my mousedown,mouseover, and other events not working only mouseclick event working any solution

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

    Great tutorial. Wondering how to select a larger area with the raycaster 🤔 e.g. a square area around the ray itself, or you can think of it as a fuzzy distance threshold for an object to qualify as intersected

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

      Check out Box3, which is an axis-aligned bounding box (AABB). This allows you to intersect with simple geometry. Your objects would need to be enclosed in some type of simplified bounding geometry (sphere, box, cylinder, etc.) that you can use for collisions, since doing collision detection with arbitrary geometry is very computationally intense.

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

    Thank you so much for this

  • @thiagoborges2920
    @thiagoborges2920 9 місяців тому

    Great tutorial! Didn't vote on the poll, but could you please do one about physics? I feel kinda lost when about using physics libraries and how to set those up.

    • @dangreenheck
      @dangreenheck  9 місяців тому +1

      You’re in luck! Working on a physics video right now.

  • @nikhilpsathyanathan
    @nikhilpsathyanathan 5 місяців тому

    Quality content

  • @DeberiasTenerUnGato
    @DeberiasTenerUnGato 5 місяців тому

    uffff 🔥 thanks man

  • @cornkobcob
    @cornkobcob 9 місяців тому

    Amazing thanks so much

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

    New sub here . Thank you for your video . Btw, do you have a course website to learn all of this? If you do, I am very interested in Three.js to create a warehouse system. With the need for drag and drop objects like racks in specific positions, each rack having an ID, and the ability to stack racks.

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

      Sorry I don’t have any courses available at this time. I do have plans to release a course but that will be later this year.

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

    thank you