Lighting // Terrain Rendering episode #5

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

КОМЕНТАРІ • 26

  • @OGLDEV
    @OGLDEV  Рік тому +1

    Clone the sources:
    git clone --recurse-submodules github.com/emeiri/ogldev.git
    If you want to get the same version that was used in the video you can checkout the tag 'TERRAIN5'.
    Build on Linux:
    cd ogldev/Terrain5 && ./build.sh
    Build on Windows:
    Open the Visual Studio solution: ogldev\Windows\ogldev_vs_2022\ogldev_vs_2022.sln
    Build the project 'TerrainRendering\Terrain5'

    • @CodeParticles
      @CodeParticles Рік тому

      Do you have a quick and dirty method to calculate face normals by any chance? 😅

    • @OGLDEV
      @OGLDEV  Рік тому +1

      I've just pushed a branch called TERRAIN5_FACE_NORMALS which I've used to create the face normals demo for the video.

    • @CodeParticles
      @CodeParticles Рік тому

      @@OGLDEV Thank you!!

  • @vncubers
    @vncubers Рік тому +2

    I just found this hidden gems,, thank you for making this channel

    • @OGLDEV
      @OGLDEV  Рік тому

      Welcome aboard!

  • @delus5361
    @delus5361 Рік тому +1

    wow, I just go to sleep and then you upload new video. Big thanks!

    • @OGLDEV
      @OGLDEV  Рік тому

      You're welcome :-)

  • @CharlesVanNoland
    @CharlesVanNoland Рік тому +1

    I love that you used my tutorial in your video, that's awesome! EDIT: I think UA-cam deleted my first two comments because I put the URL to gamedev in them, so silly! I love your interpolation improvement, a MUCH needed enhancement

    • @OGLDEV
      @OGLDEV  Рік тому +1

      That was youtube!
      Thanks, glad to hear you liked it :-)

    • @CharlesVanNoland
      @CharlesVanNoland Рік тому +1

      @@OGLDEV Heh, it finally clicked that UA-cam is a stickler about URLs. I can't believe slope lighting still has relevance after all these years! Terrain rendering back then was like voxel rendering is for gamedev newbies today - it was the popular thing to make back then. Great video sir! :)

    • @OGLDEV
      @OGLDEV  Рік тому

      I agree. I was a bit hesitant about including it but I found it very interesting and different from what is done today so I decided to show it anyway. Thanks for sharing the algorithm :-)

  • @dudasistvan3772
    @dudasistvan3772 Рік тому +1

    I learned something again, as usual :) Great explanation, thank you very much!

  • @tranxn7971
    @tranxn7971 Рік тому +1

    Awesome work, thanks !

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

    Great video! Though, one thing worth highlighting that was ignored is that the shadows would often be incorrectly missing around local-maxima areas behind higher peaks that are multiple vertices away.

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

      Thanks! I assume you mean the second method? Yes, this is a deficiency of this algorithm which I guess why it didn't see much usage.

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

    thanks for the video, this should be a good fit for a compute shader :)

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

      This is what people keep telling me. I guess I need to make a video about it...

  • @fengshengteoh3054
    @fengshengteoh3054 Рік тому

    Thank you for sharing, love it 😂

    • @OGLDEV
      @OGLDEV  Рік тому

      You're welcome :-)

  • @simwneque2714
    @simwneque2714 Рік тому

    thank you so much for your tutorials, they really helped me with my school project

    • @OGLDEV
      @OGLDEV  Рік тому

      You're welcome!
      I guess we don't need to normalize it if the only place we use it is in the fragment shader. I guess it's just a habit to normalize the normal when finishing calculating it. It doesn't hurt since it's suppose to be before the main loop starts. You need to be careful if you ever need to use it in the vertex shader.

  • @fudgeracoon2529
    @fudgeracoon2529 Рік тому

    Great video as usual.
    I was wondering if it's possible if you can make a tutorial about rendering an infinite 3D grid for a game engine scene editor. Again thanks for the amazing work :D

    • @OGLDEV
      @OGLDEV  Рік тому +2

      Thanks! Infinite Terrain is a topic that I'm very intrested in. I still need to do the research and find a good algorithm for that so I think this will be later on in this series.