Garry's Mod

Garry's Mod

Procedural Terrain / Maps
Thevayl 7 Jul, 2022 @ 11:30am
Just a crazy idea i got with this mod
This is a concept i imaginated when i saw that mod to create infinite procedural terrain.

If you carefully use the map boundaries and layers to divide the map into multiple sections as well as manipulating the skybox. You could make a similar mod that proceduraly generate infinite terrains. The player will move into 1 part of the map and will see the next one featured in the skybox. When the player reach the skybox it get teleported into the other part of the map. Meanwhile the mod is generating new terrain in the part that was behind the first and feature it in front to continue walking forever.

Here is a schema of what the player see, where he is only going forward:
Caption:
■ Generated part
▩ Is being generated
▣ Part where the player is
  • Here the player is in the center and is heding forward:
    ■▩▩
    ■▣■
    ■■■
  • The player walk into the next one, get teleported and the mod generate new terrains in parts behind
    ■▣■
    ■■■
    ▩▩▩
    Because the skybox of the current part is showing the parts that are being generated from the back the player think he is constantly going forward.

  • Next step:
    ■■■
    ▩▩▩
    ■▣■
< >
Showing 1-2 of 2 comments
Meetric  [developer] 7 Jul, 2022 @ 11:41am 
ive put plenty of thought into this, even before you suggested it.. and trust me its a bad idea
the concept is great but issues arise such as
-terrain cant generate fast enough
-lighting takes forever to bake
-the terrain was programmed in a way that doesn't easily allow this without having to rewrite the entire codebase
-infinite maps are terrible in general, especially in multiplayer
-overall it would just be a broken concept, and a lot of effort would be put into something that doesn't even work well & would be buggy
Meetric  [developer] 7 Jul, 2022 @ 11:43am 
there is 1 addon that does this pretty well, I would just use that if I were you.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=531849338

but yeah, even in the description of this addon it says:
"A massive disclaimer here: This is not supposed to work flawlessly. This is a proof-of-concept more than anything, and possibly a builder's tool. The amount of hax in this addon is astronomical, and to fix it for every possible addon confliction (which is a lot of addons) would be way more work that it would be worth. I'd recommend having this tool disabled if you're not planning on using it for a while, since it will probably cause problems."
Last edited by Meetric; 7 Jul, 2022 @ 11:44am
< >
Showing 1-2 of 2 comments
Per page: 1530 50