Introduction to Signed Distance Fields

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 30

  • @countessanise8372
    @countessanise8372 Год назад +20

    Great video.
    The fact that you had different commented-out lines ready to be uncommented one by one in order visualize the math, helped me quite a lot in grasping the concept.
    Thank you very much, Suboptimal!

    • @SuboptimalEng
      @SuboptimalEng  Год назад +4

      Thanks Anise! It's great to hear that the technique of gradually uncommenting code helped 🔥

  • @FlynnFromTaiga
    @FlynnFromTaiga 2 дня назад

    Thank you very much

  • @janus798
    @janus798 Год назад +3

    This is a pretty high quality tutorial! I'm surprised there aren't any comments yet

    • @SuboptimalEng
      @SuboptimalEng  Год назад +1

      Thanks! I'm still waiting for the day the algorithm picks up my videos 😂

  • @emteiks
    @emteiks 9 месяцев назад +1

    love it! more of shader gooodies needed! :)

    • @SuboptimalEng
      @SuboptimalEng  9 месяцев назад

      It’s on my roadmap for this year. Right after I learn WebGL!

  • @ДаниилНосов-х6б
    @ДаниилНосов-х6б Год назад +1

    Thank you very much. The best explanation !!!

  • @lksxxtodin5292
    @lksxxtodin5292 Год назад +1

    Thank You!

  • @yonilaskov340
    @yonilaskov340 Год назад +1

    very nice

  • @Demixroxic
    @Demixroxic Год назад

    great video dude imma save it and come back

  • @juncando
    @juncando 4 месяца назад

    Thank You

  • @Andrew-qc8jh
    @Andrew-qc8jh Год назад

    Really well laid out video, thanks🖖

  • @suvetar
    @suvetar 11 месяцев назад

    Love it, thanks for your great introduction and explanation!
    I wonder, can this technique be used on internal corners and edges to calcular a kind of ambient occlusion? Just like the idea of messing with the parameters and seeing what happens!

    • @SuboptimalEng
      @SuboptimalEng  11 месяцев назад

      Thanks! Most of my knowledge comes from Inigo Quilez. He used the SDF to create a fake ambient occlusion for 2D shapes which is what I've shown here. Inverting the colors allowed me to turn the fake AO into a nice glow effect.
      I still have to learn how to do actual SSAO so I'll be looking into that next.

  • @Hobbes9
    @Hobbes9 Год назад

    I don't use webGL, but I'm learning openGL and I think GLSL should be the same for both(?) Came from some youtube comment, but this is pretty well made so subbed

    • @SuboptimalEng
      @SuboptimalEng  Год назад +1

      Thanks! Yea, OpenGL uses GLSL as well so the code should be similar. I'm actually considering learning OpenGL with C++ since lots of graphics roles need this 🤓

  • @deadbit6007
    @deadbit6007 Год назад

    thanks for video, do you know how make dashed outline for rounded rectangle ?

  • @glebaltfromrovia9898
    @glebaltfromrovia9898 3 месяца назад

    hi, how can i debug shaders like you are in visual stuido?

    • @SuboptimalEng
      @SuboptimalEng  День назад

      I don’t use Visual Studio so I can’t help you there.

  • @axMf3qTI
    @axMf3qTI 11 месяцев назад +2

    I still don't understand how the whole screen is updated without a loop or update function.

    • @SuboptimalEng
      @SuboptimalEng  11 месяцев назад +2

      I'd recommend watching Kishimisu's "An Introduction to Shader Art Coding" video.

    • @axMf3qTI
      @axMf3qTI 11 месяцев назад

      @@SuboptimalEng will do, thanks!

    • @rs-dn4ez
      @rs-dn4ez 7 месяцев назад

      Gpu has many cores, you can calculate each pixel in parallel.

  • @Byynx
    @Byynx Год назад

    You're the guy!!@

  • @Shortom_Boy
    @Shortom_Boy Год назад

    Bro can you teach how we make a perfect game It's Magic Engine? this works in mobile

  • @regularmenthol
    @regularmenthol 10 месяцев назад

    The introduction 🤣

  • @Lee-qj4hk
    @Lee-qj4hk Год назад

    +1 I really liked the way you asked for a sub and would like to be asked again :P