Infinite Terrain in Godot 4 - The 'Wandering' Clipmap Terrain Technique (with LOD)

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

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

  • @actualdevmar
    @actualdevmar  2 года назад +148

    OK I just realized (after uploading the vid) that you can easily optimize this even further by splitting the clipmap mesh into pieces before exporting to Godot. That way you can get frustrum culling to work for you. Just make sure to switch off Godot 4's auto LoD for the individual pieces to avoid cracking at the seams.

    • @FinaISpartan
      @FinaISpartan 2 года назад +3

      Can you define "sharp edges" to make sure the seams don't get get distorted when using auto LoD?

    • @actualdevmar
      @actualdevmar  2 года назад +5

      @@FinaISpartan that would prevent the horizontal cracks but not vertical. If 2 neighbouring chunks have different LODs (which will happen in this case) and are deformed by the same heightmap, there will be vertical cracks between them no matter what. Vertical cracks are even more visible from the player's POV.

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

      So the trick is to split the mesh, but keep the number of vertices on both sides of the seam the same, right?

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

      Tried this way, when i create meshes for frustrum, they are affected by shader in the same way, godot do not have any node class that can group up meshes in to 1 vertex array and cut unused.
      Also if you are using heightmap 4k x 4k, you are using clipmap with same resolution, cause when i tried to make clipmap less with 4k map, all map is rendered on my small area. Or maybe im doing something wrong?

  • @BrahminTwins
    @BrahminTwins Год назад +24

    The problem is the popping as you can observe in 4:49. The sudden increase or decrease in geometry detail bring popping, the geometry popps out and in suddenly, which looks discontinuous and ugly. The counter this, you need to create transition regions near in the finer mesh, which starts 3/4 form its center, to the end. The idea is that the transition region slowly removes geomtery from finer region as it moves away to coarser one. So the height in the region will be (1-alpha)*finerHeight + alpha*coarserHeight, where alpha is between 0 to 1 and becomes 1 at end of the ring. This creates a smooth transition rather than sudden one, removing popping artifacts.

  • @riisezz0
    @riisezz0 2 года назад +63

    This is a damn clever solution to a problem I feel needs more resources in GODOT. It also makes me think of the Futurama episode where they said their ship moves the universe around it instead of them flying around the universe. really cool!

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

      Great reference.

  • @lucasfarias1148
    @lucasfarias1148 2 года назад +18

    I don't use Godot, but the information provided by the video could be extremely helpful in the future, thank you so much!

  • @raiseledwards
    @raiseledwards 2 года назад +37

    Mmm interesting, I used the first method but marked the outter edges of every terrain chunk as "Sharp edges" in blender so that the auto LOD in godot woldn't mess the seams.

  • @ianrhys
    @ianrhys 2 года назад +4

    I was just about to install unity and I saw this. Godot 4 all the way! This engine might be the future.

  • @qubitx64
    @qubitx64 2 года назад +27

    Looks amazing. One thing you should try with the vegetation is to make it fade in instead of just suddenly appearing they way its more smooth looking.

  • @SamFX
    @SamFX 2 года назад +8

    Amazing video, very smart technique, thanks a lot for sharing these tips

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

    This is an amazing explanation. The quadtree approach is best when you also vary in height (e.g. in KSP or a flight sim) so you want a steady zoom in, although you could probably also stack clipmaps at different distances.

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

    This is amazing and i have no understanding of the rocket science behind it. Even after the explanation. Incredible.

  • @WindBendsSteel
    @WindBendsSteel 2 года назад +6

    Nice, I'm using this technique as well for my terrain, though it is subdivided into several meshes to make it easier. I aslo added skirt vertices to blend the seams nicely.

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

    Of all the big brain moves , this has to be one of the biggest brainiest moves I have seen. Thanks for sharing this technique

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

    Using a premade clipmap like that is pretty brilliant, never thought of it that way. Lots you can do further with this, I think I'll definitely be using this technique for one of my projects.

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

    "Boom. Done"
    Meanwhile, my brain started leaking out of my ears trying to understand how that shader worked. Good stuff, thanks for doing this!

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

    Honestly, this is genius. Well done man, and thanks for making this available. It's going to help me with a similar issue and it's such a simple solution!

  • @torrescle
    @torrescle 2 года назад +4

    Your project has the best graphics I've seen made with Godot so far. I think only developer with huge experience and programming skills can achive this by now. I'll keep with 2D hahaha

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

      My thoughts exactly... devmar seems to have a god tier understanding of Godot, 3D and mathematics... for my first 3D project I'm making a simple first person 'backrooms' exploration game and am thinking I've bitten off more than I can chew.

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

    BEAUTIFUL work!
    Fabulous presentation and discourse; excellent video.

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

    I am expecting the collision generation from the same map, cant wait ! thank you

  • @duelsoldier3048
    @duelsoldier3048 2 года назад +7

    This is a interesting approach and is good in the way it is easy to setup. However a quad tree approach is far more performant with a chunking system due to only having to recalculate the terrain heights on a subdivision which do not occur very often, whereas this method requires you to recalculate the whole thing which includes many more vertices than a single chunk and it occurs every movement frame.

  • @christianbrenner984
    @christianbrenner984 2 года назад +5

    I've tried something similar in Godot 3, but ended up with a quadtree approach, where I blended the seams in the vertex shader. The one-mesh-approach that I tried before that had the issue that I couldn't display as many vertices, because no frustum culling could happen, so also the vertices behind the camera where rendered. I haven't ported either of those approaches to Godot 4 yet, so there could be something in the new renderer that changes the situation.
    I used a single mesh for the water close to the camera, but that mesh had fewer vertices anyway.
    But I more or less restarted my project for Godot 4 and I'm focusing on other aspects first and plan to port my rendering stuff later.

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

      Did you build the quadtree system in gdscript?

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

      Actually, with this technique you can also chunk up the clipmap mesh and use frustrum culling.

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

      @@actualdevmar Yes, the quadtree-related stuff is all gdscript. It doesn't seem to be the bottleneck. However, rendering performance in my Godot 3 prototype is generally quite bad for other reasons (mainly trees/grass rendering), so I hope that will improve with Godot 4.

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

    The first few seconds I thought you remade Death Stranding in Godot XD

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

    Very nice! Good work devmar!

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

    Really liking the progress. The infinite terrain feature is spot on and looks super kool. That is really impressive. Keep it up! :)

  • @unfa00
    @unfa00 2 года назад +11

    Hey, if you're recording screencasts for your videos I recommend that you disable subpixel AA for system font rendering - it will make the screencast text cleaner. Video compression butchers the colored pixels and makes them look messy.

    • @PokettoMusic
      @PokettoMusic 2 года назад +4

      hey look its that linux music guy

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

    I appreciate Your great exposition

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

    Wow very elegant solution to the terrain systems, thanks for sharing

  • @aguest5394
    @aguest5394 11 месяцев назад +3

    big fan of your videos, do you have a git repo of your examples?

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

      Trying to figure out the uv height part (not sure how to get it working in godot) I see the setup but im struggling i may not even have the right type of height map img etc...; iv made the clipmap mesh in blender @actualdevmar

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

      @jakeboots So what I did was went into blender, make a plane then you can resize that plane and apply a Grid to it. The more detailed the grid the more detailed the UV map will be when applied against the clipmap mesh

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

    great work! saw one of your videos a while ago and probably forgot to subscribe, fixed now.

  • @Smaxx
    @Smaxx 2 года назад +4

    Possible optimization: Set the render mode `world_vertex_coords` and you'll get actual world coordinates as vertex coordinates, so you can skip your shader parameters and instead use vertex coordinates for UV mapping directly, avoiding all the math originating from the player position (especially considering you're calculating the height and don't have to derivate it from vertex coordinates).
    Also cool fun fact: The technique you've used is basically how The Legend of Zelda: The Wind Waker mapped its massive ocean "full" of waves (that always stick to your ship), so it could be rendered on the GameCube's limited hardware.

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

      Tried it before but it doesn't work like this. world_vertex_coords still modifies the verts/normals etc. except it does it in global coordinates as opposed to local, so it's like position vs. global transform - it doesn't 'detach' the projection from the moving object.

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

      @@actualdevmar Think you misunderstood me. It should just make the math involved more simple and save you from using the extra uniforms, you'll still have to move the mesh, obviously. Will have to try this later, wanted to recreate a Wind Waker esque scene anyway.🙂

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

      @@Smaxx My point is, since the terrain mesh is moving, you still have to update the shader uvs in-game to keep them stationary. Setting the render mode to world coord doesn't lock the uvs in place, they're still moving with the terrain and thus the need to counter that movement remains. The only difference is a different coord system is used so the math is different but not necessarily simpler. At least that's my conclusion from experimenting with world coords, but chances are I'm doing sth wrong.

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

      ​@@actualdevmar Ah! That's the bit you skipped: I'm using the world coordinates as UVs, too. You'll just need different scaling, obviously.

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

    super - cool technique . . .

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

    I'd be interested in the seeing the QuadTree approach.

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

    great video..also simple, but clever and effective. Very good.

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

    Love it! Thanks for sharing!

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

    Very cool method.

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

    this looks pretty cool, might use this technique for the game i’m working on. it’s a fixed premade map but is gonna be large enough that i want to do some lod stuff with it

  • @jaredjones6570
    @jaredjones6570 2 года назад +13

    I'm blown away by this technique. Honestly, this is one of the best things I've ever seen. It's so simple!
    Quick Question: Why did you use nested square shapes for the clipmap? Wouldn't circles be preferable so that you get a more convincing horizon? (I'm assuming that the outermost square that makes up the level is also part of the clipmap. Sorry if I've misunderstood)
    Oh, and what if you used many layers in the clipmap technique so that you could get a smoother gradient of LOD?

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

      The stepwise movement of the mesh, making it appear vertices move with the terrain, constrains the mesh to a regular tiling. A triangle/hexagon pattern should work.

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

    this is PERFECT 😎😎😎 exactly what ill need for my road trip game, thx for sharing this with the world

  • @mikecu2249
    @mikecu2249 8 месяцев назад

    what a gem! ty for making this Video

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

    Subbed for this video!!! Amazing stuff!

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

    Incredible work!!🎬

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

    This is genius!

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

    Amazing stuff you got here

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

    Very nice and simple technque! Thanx for sharing
    The clipmap you're showing at 2:49 in the Godot editor have morphing effects between large and smaller quads. Are those morph done also in blender?

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

      you could do this in blender by selecting the edge ring and triangulating the faces but you don't have to - Godot's gltf importer does it for you.

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

      @@actualdevmar I don't think that is what he is talking about, he means how there is a interpolation between the finer area and coarser area as you move, in between full "snap" positions. Basically you see edges between those areas that gradually slide around. That's the typical Clipmap, but listening to your video it sounded to me like you just have a static mesh with no changes in vertex positions on the plane, only in height (per vertex) and global translation for the entire thing. And looking at you move through the scene I can see the popping that I would expect when you don't have this interpolation.

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

    This is a brilliant idea.

  • @Big_Trips
    @Big_Trips 7 месяцев назад

    1:11 can someone explain how to section the grid from the time stamp on blender

  • @whiletrue1-wb6xf
    @whiletrue1-wb6xf 5 месяцев назад

    Great info can you share where did you learned all that ? if i need step by step tutorial to understand

  • @brianthomas7417
    @brianthomas7417 8 месяцев назад

    I realize a major point of this video is not having to use C# for this, but i just want to note that C# is relatively easy to learn if you are already pretty decent at GDScript. The static typing can be a bit confusing at first but that was my biggest hurdle

  • @whiletrue1-wb6xf
    @whiletrue1-wb6xf 4 месяца назад +1

    Did someone immanent this and have this open source ? looks like the simplest way but very hard to understand without sample project

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

    This sticks with me too! Ive been trying to do something VERY VERY similar on a spherical (closed-shape) mesh as well. Still trying :P

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

    You might still be able to use an LOD with terrain if you use two cameras (with the same transformations) and overlay the high detail terrain over the low. No gaps, no math, no vertex manipulation. We already have the subviewport in place for it.
    Dunno, I haven't tried it, so I'm spitballing. Might be a good "poor man's" alternative if you're not allowing a camera to get close to the low detail areas.

  • @TokisanGames
    @TokisanGames 2 года назад +5

    Thanks, we're going to port to GD4 soon, so I'll try out this technique. Looking forward to collision and vegetation. What graphics card do you have?

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

    How to fix rendering clipping at the edges of the camera's viewport?

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

    I wish you had a tutorial or something for this, Im new to game development but not coding and Im having a hard time trying to find the right steps to get to this?
    1. How do I make infinitely generating terrain that isn't repetitive (because a basic noise image can only go so far before the terrain repeats)
    2. How do I make the terrain? is it that tree thing in the video? is it written code? C++ or GDScript?
    3. I wish I wasn't dumb 😭

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

    I know it's late, but Zylann's heightmap terrain now works on Godot 4, but they don't update it nearly as much as their godot voxel project which seems like a far better solution at this point.

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

    Pretty neat solution. I got stumped by the same problem but I was using procedural marching cubes terrain, and implementing the transvoxel algorithm to connect different LOD chunks was beyond my math skills. While it works well for a heightmap I don't think this method could be adapted for voxel terrain. At least not by me lol.

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

    what would be cool is if you added a "stamp" system. Where you can place heightmaps in level and they get baked into a final heightmap texture for your shader to use. Shader World for Unreal does this.

  • @temhirtleague-chess
    @temhirtleague-chess Месяц назад

    Can you do this with Terrrain3D .... and how. The code generated demo was tricky to deconstruct

  • @antonsimkin
    @antonsimkin 7 месяцев назад

    ok i can make grid in blender but to subdivide it in the middle?

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

    You can also use godot plane meshes and subdivide them instead of using blender.

  • @1O3683e
    @1O3683e Месяц назад

    Facinating

  • @NiQsterVX
    @NiQsterVX 7 месяцев назад

    Hey, I just stumbled upon this. How did you make the shadows cast properly (as in make the shadows match the vertex displacement)? I just can't seem to find anything about it in your video, did I miss anything?

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

    Very interesting! Could you please share that blender script for cutting up a plane into chunks? Would be upser useful.

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

    I have seen this technique before but the one thing that nobody talks about is how a whole game works with this technique. Presumably you will want enemies and towns and the like. All these objects are moving instead of the player moving. How does this affect enemy movement AI and physics?

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

    Do you have a link to a repo ? Easier to understand when I can poke at things :)

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

    hi
    i just made a terrain like what you did in video and here are two problems
    1 - terrain doesn't cast shadows as it do in video
    2 - my entire map loads at once and scaling model isn't working
    and btw how to add Collision to this type of terrain ?

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

    Is there a tutorial somewhere I can learn about this topic? New to Godot and game dev in general but I have lots of experience programming. Thanks

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

    I've been playing with vertex shaders for terrain after seeing your video (Great videos btw!), have you solved how to use omni/spot lights against the terrain? Playing around it looks like the light has to be near the origin of the mesh as opposed to the adjusted height of the vertices.

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

    I wonder if this is cheaper than unreal's terrain system. Might be worth recreating in unreal for something like a Meta Quest VR based project. (mobile)

  • @Darkest-Kn1ght
    @Darkest-Kn1ght 2 года назад

    First, thank you for the tutorial, I found it quite nice and informative, although I'm just getting back into this amazing world (haven't been able to code in quite some time due to work forcing overtime daily and working us 6 days a week) so I'm basically back to square one, and having to learn from scratch again. I'd like to know, could this be used with real world heightmaps? Would it be possible to cover a large area using several real world heightmaps together, and if so, how would one continue to bring in the additional heightmaps in a seamless manner? And lastly, any chance of getting a detailed tutorial on the blender portion of the video also, start to finish? I'm attempting to port my multiplayer framework network code from 3.x over to 4.0 right now. Once I've done that, I'd like to introduce a world into that code in order to actually be able to do something, such as exploring the world. If the above is possible, I'd like to put together the entire game world and then begin populating it, placing assets, etc...

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

      If i understood correctly you're asking if you can use a tilemap as a heightmap for the vertex shader and load tiles into it? If so, my honest answer is that I have no idea. I haven't found anything on it. But, if you wanted your terrain to be massive and seemingly non-repetitive, you could use a huge heightmap image (like 8k) and make it much larger than the clipmap.

    • @Darkest-Kn1ght
      @Darkest-Kn1ght 2 года назад

      @@actualdevmar I came across these videos, basically, this guy Sebastian stitches together every tilemap available for the entire planet, and then proceeds to fly around it. He then turned around and added more and more geographical data, to the point where he ends up flying around the city of Paris France, and it's highly detailed. Problem is, he does this in unity and with C#. I do have a piece of software I found some videos on that shows how to stitch tilemaps together, and I've already downloaded ALL 30m tilemaps from the SRTM project. I will have to find all the ocean data tilemaps as well if I want to do the entire Earth, however, going from one continent to another doesn't have to be seamless, but, each continent being as massive as they are, will take some extreme coding to get it right. It would be very nice to be able to reproduce what Sebastian did in unity and C# within Godot and GDScript. ruclips.net/p/PLFt_AvWsXl0dT82XMtKATYPcVIhpu2fh6

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

    This is clever!

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

    This is absolutely amazing.
    I wonder how it work when you get to far because of precision. I remember Outer Wilds Devs had problems with distances when the player was too far from origin.

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

      Should not be an issue. I tested it by running the map for a real-world equivalent of 100km without a hiccup. You're just cycling though the UVs so not much can happen. The terrain is basically one big tiled vertex texture:)

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

    Wouldn't it also be possible to keep a sector of the clipmap (for first person) that is also able to keep 2 "snaps" (maybe 45°) of the terrain, thus discarding most of the geometry that would be outside the frustum?
    And then, wouldn't it just be possible to take any shape, e.g. a radial sector, that allows for smaller "snaps" of angles?
    I assume it's a bit harder mathematically, but might reject a lot of geometry.
    Either way, I think you should attenuate the snapping from high res (no snapping) and low res (better snapping), possibly interpolating between both values, minimizing by error.

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

      There is a simple way in blender to chunk up the clipmap mesh into a grid. That's what i did. I only render the chunks inside the frustum. This terrain has minimal weight on performance. That's how i can afford grass and trees to go with it at 120fps.

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

    I tried this but i dont get shadows on the terrain after applying the shader... i guess normals arr not updated. How would i do rhat?

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

      I have a video that explains how to fix normals. Its on my channel somewhere..

  • @cptfurball
    @cptfurball 2 года назад +3

    This is interesting. I wonder if this by attaching the ground mesh to the player and moving it in the opposite direction of the player's movement affects the physics of rigid bodies that is on the terrain? For example, a stationary sphere sitting on a surface may roll around as the player moves.
    Forgive me if this is a stupid question.

    • @actualdevmar
      @actualdevmar  2 года назад +4

      The terrain isn't moving in the opposite direction. It's the uv projection of the terrain that is moving in the opposite direction. There is no impact on physics as physics is only interested in collision. The collider is stationary.

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

      @@actualdevmar Ah okay it seems i misunderstood thinking its the terrain that is moving. My bad, great video! I learnt something today.

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

    daym bro, tha't brilliant

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

    Amazing work! I’m a bit confused though on how should the clipmap mesh be generated, I mean is it a grid with mode subdivs inside another grid with less subdivisions? I’m willing to try something similar to this technique but in Godot 3.5…

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

    Its a nice idea. But as i played around wirh this, i acknowledged polygon folding which gave me steps in the terrain... is my clipmesh resolution too low? Or you know any trick to circumvent this?

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

      Make sure your clipmap mesh is scaled such that it snaps to Godot's grid. Best way is to set its scale to a nice round number in meters, in Blender. Say, 4000m. Apply scale and export to Godot. In Godot, make sure that when your terrain mesh moves around in 3d space, it's global position is set to .snapped().

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

    When I followed this, UV_X & Y values of 1 or -1 move the heightmap all the way? Not sure why this happens, I am using an image heightmap instead of noise. It's not really a problem as I have divided this value by the resolution of the heightmap but am curious as to why this is.

  • @Rin-qj7zt
    @Rin-qj7zt 2 года назад

    makes me wonder if you can create moving collision such that only a certain radius around the player checks for collision and ensures things outside it freeze. probably not worth it but my mind is everywhere

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

    im new to godot, justa question, usually i see videos of people writing code/scripts inside godot, but i see you connecting nodes ( likes those in blender), can we just use the node system in godot instead of typing code ?

    • @actualdevmar
      @actualdevmar  Год назад +2

      You're referring to the visual shader graph - you can build shaders in this way in Godot. As for gdscript, I believe visual scripting was abandoned a long time ago in Godot. I know UE has a visual scripting system, called Blueprints. Visual scripting is great for beginners but if you want to do anything remotely serious you'll need to learn to code.

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

    So how is the collision mesh handled for this?
    Very cool technique though. very glad I saw this video

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

    Really great video. Is it possible to use this technique with a fixed size heightmap terrain, not infinite?

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

      Sure, thats possible. He was using a fixed size heightmap in the video, only apparently a tiling one.

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

    what if individual want to create a infinite terrain but not so repetitive also? is it possible ?@devmar

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

    I'll wait my vacation hahaha
    I need to study more
    I'll try Godot again

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

    On the note of LOD and chunks, I think SimonDev encountered the same problem of his series on rendering a planet in ThreeJS, can't really remember how he handled it

  • @whiletrue1-wb6xf
    @whiletrue1-wb6xf 4 месяца назад

    Did someone implement it and have it open source ?

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

    I have a couple of questions regarding the player movement and enemies. If the terrain mesh is attached to the player, how do you get the player to look like they are running in a specific direction? Also, how do you have enemies operate in this frame of reference?

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

    Is there a way to implement fake motion blur in Godot as of now? I know it has been slated for future, but looking at the speed of Godot's stable releases, I think that it will be atleast 5 years from today when we get a motion blur feature in 3D.

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

      I think there is a screen shader that does it, i recall seeing something like that before in godot.

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

    Cool solution! What kind of hardware are you working with? Just wanted to be able to put your FPS benchmarks into perspective.

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

    Wow super awesome video .. How do u know soo much ??

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

    WHY don't you use the project file so you can read the code in detail?

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

    I wish there was a tutorial for this

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

    can we have the cpde pls

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

    Could you set higher bitrate?

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

    Wow!

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

    in c++ would this technique or immediatemesh be faster do you think

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

      You mean which is faster vertex shader or building a mesh?

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

      @@actualdevmar your solution versus the c++ immediatemesh solution you offered, also, I tried recreating your solution, I have REALLY jagged terrain coming in from the height map, did you run into this issue?

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

      @@trisimix they are completely different techniques. The shader technique allows you to modify the terrain mesh in real time and tile it to infinity. With immediatemesh you'd only create a static terrain mesh. If you want the shading to be smooth there is a setting/code for that in immediatemesh or surface tool (or both, i don't remember). It's covered in the docs.

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

    Doing it this way, how do you handle positions of static objects, like trees and buildings?

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

      Just place the static objects in the editor where you want them. If you want to place something beyond that starting position of the clipmap, just move the clipmap in the editor to see what the terrain shape is going to be in that remote spot.

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

      @@actualdevmar You could probably make an editor tool which would move the clipmap in the editor for you at the position of the editor camera. :)

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

      @@novh4ck indeed. should be easy enough to do with the surface tool or immediatemesh

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

    Thanks

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

    Mind if I steal this and make it into a plugin for godot 4 somewhere in the future?
    With GDNative, I mean

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

      I'd love to see/use it!

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

      Well, for one, there is almost no performance gained... cause... you basically have to do the same thing just abstracted away...
      Also, GDExtensions is harder than I expected...
      So probably there'd be some performance to gain if someone wrote better code than me :))

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

    If I understand correctly, you are limited to only one heightmap texture with this technique?