What is Ray Marching?

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

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

  • @saltukkezer5100
    @saltukkezer5100 10 หลายเดือนก่อน +6

    Awesome! It's awesome to see graphics content being explained so clearly. Wish you all the best.

    • @SuboptimalEng
      @SuboptimalEng  10 หลายเดือนก่อน +1

      Thanks, I’m glad my teaching style is helpful!

  • @sergeys7603
    @sergeys7603 8 หลายเดือนก่อน +1

    It's a very helpful video. Thank you.

  • @pedrohov
    @pedrohov 10 หลายเดือนก่อน +1

    Thank you so much for this! I'm trying to make a shader to simulate liquid, making small circles in a particle system seem to belong to a bigger drop of liquid when they are close to each other. I don't know if I'm making myself clear, but I think this video is putting me in the right direction, thanks!

    • @SuboptimalEng
      @SuboptimalEng  9 หลายเดือนก่อน

      Fluid simulations are always really cool, I’ve been wanting to make one for a while! Glad the video was able to help.

  • @hortonmark6793
    @hortonmark6793 2 หลายเดือนก่อน +1

    "vec3 lightDirection = normalize(lightSource);" confused me. I think it should be "vec3 lightDirection = normalize(lightSource - p);", although both i tried did the same work

  • @suvetar
    @suvetar 9 หลายเดือนก่อน

    That looks really nice and I love that it feels like there's a lot of cool things you can do with the algorithm; Blending the shapes like that is a nice looking technique too - some lovely organic surfaces possible! I'm interested to combine this technique with a varient of shell texturing ... no specific reason, I just want to play with it and see what happens - with any luck I can turn my central heating off and let my 3070 warm up the room 😀

    • @SuboptimalEng
      @SuboptimalEng  9 หลายเดือนก่อน

      If you do, you should post some demos on TH-cam! Always nice to see what other graphics engineers are up to 🤓

  • @anirbandeshmukh9128
    @anirbandeshmukh9128 9 หลายเดือนก่อน

    Excellent tutorial!!
    Just one thing, I'm having an issue where if I move the sphere along the x axis, the lighting gets all messed up (if i offset the sphere to the left, the normals also point slightly towards the left, skewing the lighting in the wrong direction). If you encountered this issue as well, how did you resolve it?

  • @cast_e899
    @cast_e899 ปีที่แล้ว +5

    how would you change camera rotation?

    • @Sammysapphira
      @Sammysapphira 2 หลายเดือนก่อน

      Translate the entire scene

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

    Can ray marching replace shadow mapping?

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

      yes, and some games do this! It's also useful for ambient occlusion (smaller scale shadowing), sub surface scattering, and many other things. It's a great tool in the toolbox. It isn't always the right tool, but it is a nice option to have!

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

      @@alanwolfe9138 which one is more efficient?

  • @ralkey
    @ralkey 8 หลายเดือนก่อน

    I see a lot of these ray marching videos
    but I still don't understand why you would even want this?
    Like what are some real practical applications, does it make games faster?

    • @SuboptimalEng
      @SuboptimalEng  8 หลายเดือนก่อน

      Ray marching is a simple technique to display objects on a scene. It also has the nice properties of being able to easily calculate normals and shadows.
      This makes it easy to implement various computer graphics techniques and share them on the web. You can see tons of examples on Shadertoy.
      Shadertoy is to computer graphics engineers as LeetCode is to software engineers.

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

    damn you really indian?

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

      Yep, and English is my second language 😅