Procedural Terrain Generation: Displacement & Collisions

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

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

  • @MrFlorian222
    @MrFlorian222 Год назад +10

    I have never encountered a more to the point tutorial. The right amount of information. Thank you very much!

  • @geovin221
    @geovin221 2 года назад +2

    Thanks Ditzy. By far the most succinct video I've seen on the topic
    I'm the reverse-engineer type of learner (might be giving myself too much credit) so I appreciate videos like these!

  • @artwork-studios
    @artwork-studios 2 месяца назад

    Ive been trying for so long and its that simple? Thanks so much!

  • @sharjeelparvez4599
    @sharjeelparvez4599 7 месяцев назад +1

    Love you i couldn't find this anywhere thanks

    • @iLikePlayingGamesSomtimes
      @iLikePlayingGamesSomtimes 6 месяцев назад

      What changes did you make to port it I can’t seem to even load the mesh lmao

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

    Thanks for the great tutorial. You didnt go too indepth but I honestly prefer it this way since I can just look up the details in the documentation. Definitively earned a sub from me.

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

      You're welcome! I'm glad you appreciate that.
      And thanks for the sub!

  • @TriviaQuizocity
    @TriviaQuizocity 10 месяцев назад +3

    Why is your code font so small? its super hard to see without switching to a really high resolution so it buffers a lot, and then zooming in.

  • @chebgonaz
    @chebgonaz 5 месяцев назад

    Fantastic video. Thanks

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

    I found the solution I deleted on line of code and it worked surprisingly.

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

    1:50 Did I hear a "zed" in there? Seems like there are a few Canadian Godot creators around.

  • @8epic819
    @8epic819 2 года назад +1

    wow i took the long route and used array meshes to make every vertex and triangle! this is way easier!

  • @SandSeppel
    @SandSeppel 2 года назад +2

    Hey, how to shade the terrain flat (like blende r would do if you shade it flat)

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

    thanks!

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

    Would you be willing to make a version of this tutorial for Godot 4? Several important parts of this seem to have changed in the new engine version and I'm struggling to figure them out.

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

      I have a few other things on the go. But I'll add that to the list!

  • @clintonf2165
    @clintonf2165 2 года назад +2

    Great video! Subscribed…

  • @camillo8575
    @camillo8575 2 года назад +1

    Really awesome stuff, maybe you could explain slightly more why you are using those functions, like collisions!

    • @ditzyninja
      @ditzyninja  2 года назад

      Thank you. Do you mean the create_trimesh_shape() function?

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

    well i gave it my best attempt to translate this to 4.0 but i dont know how to code the set get :( i have working code for HP from another game but i need more than the @export on it :(

    • @ditzyninja
      @ditzyninja  8 месяцев назад +3

      @tool instead of tool (at the very top of the script)
      @export var generate_mesh: bool:
      set(val):
      generate_mesh()
      I'm not sure the variable and function name can be the same in Godot 4. I usually call the variable something like "generate_mesh_button"

  • @Zeekblitz
    @Zeekblitz 2 года назад +1

    Great tutorial! Very useful thanks! Next time however can you use ctrl + '+' to zoom in on the code?

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

      Thanks!
      And yes lol That's the number one piece of feedback I get

  • @Lucas-gg9yb
    @Lucas-gg9yb Месяц назад

    Isn't gdscript too slow to this task? It won't take a huge hit in performance?
    Nice tutorial!

  • @puleroxd4116
    @puleroxd4116 7 месяцев назад +1

    God

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

    How did you make last seconds where whole surface shaded in that low-poly way and not smooth?

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

      In godot 4, the SurfaceTool indexes the vertex array automatically. Essentially, vertices with same position are merged and so too are the normals on those vertices. I'm not positive it will work, but try calling deindex() on the SurfaceTool right before calling generate_normals().

  • @wainotiem
    @wainotiem 2 месяца назад

    would love if you could do this with GDscript

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

    I always find it so wild how in a year or twos time something like this can become entirely irrelevant, theres people in here praising it so obviously it's just the updates.

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

    Hm, I think this should be what I need for my game that shall generate a terrain after hitting play in the menu...
    hopefully ;D
    Can you set something like a random seed to generate the terrain?

  • @timmytheimpaler1750
    @timmytheimpaler1750 2 месяца назад

    can you update the code for 4.3?
    of maybe redo the tutorial for 4.3?
    im learning godot and this is super interesting thank you!

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

    it says it has ten errors on mine I don't know how to fix it does anybody? I think its the "tool" thing. I checked it over for a while I can't find the problem, I thinks it's me or something.

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

      are you using godot 4, If you are and you copy something from godot 3, you'll get a bunch of errors.

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

      @@TriviaQuizocity Are you planning on updating this for Godot 4? I like how concise your stuff is but think I'd rather adapt a C# tutorial than try to figure out GDscript v4 rn lol.

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

      @@TriviaQuizocity I'm using 4.2.1 im going to try it again, ill tell you if it works.

    • @snakesoul
      @snakesoul 5 месяцев назад

      code updated in my comment

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

    yo can use obs as the screen recoerder btw

  • @FriskDreemurr66669
    @FriskDreemurr66669 5 месяцев назад +2

    godot 4.2? setget doesnt exist anymore

    • @howislife-v5
      @howislife-v5 5 месяцев назад

      Ikr I just found out😭😭

    • @LaurentSparksMusic
      @LaurentSparksMusic 5 месяцев назад

      Its changed in godot 4 break it up into 2 pieces

    • @LaurentSparksMusic
      @LaurentSparksMusic 5 месяцев назад +2

      Set and get are seperate methods now

    • @snakesoul
      @snakesoul 5 месяцев назад

      code updated in my comment