Infinite Terrain Plugin

Can you add a noise property?( noise rarity )

1 Like

Boi, i was thinking of that since i want to make volcanoes on the terrain but i wan’t them to appear randomly and not everywhere, the noise rarity would be a really good addition

Love the plugin, but a general question though; This would require a lot of memory to run if you lets say render a 10000x10000 map. Any suggestions on how to comeback it besides streamingenabled?

noise stays around -0.5 to 0.5 it does not go below or above them values that oftern so you can do something like this to make the bump only show up a rare amount of time

12345, 5000, 0.006, 0.75, 10

make the 0.75 lower if you want it to be more commen and incresse the 0.75 to make it more rare

as we are croping most of the bump we need to have a high magnitude(5000) increase or decrease this depending on how high you want that bump to be

also as we are croping the bump above 0 you will notice the hole terrain shifts upwards
to work out how much you need to shift the terrain down

5000 * 0.75 = 3750 so you will need to shift the terrain by -3750 to bring the terrain back down to 0

and thats how you can make rare noies the same goes for negative vales E.G. -10, -0.75 would be for a rare hole

see how on the moon terrain the last 3 noises to have craters and i have clamped them from -10 to -0.2 to make the craters not show up that often if i reduced the -0.2 to -0.5 that would make the craters even more rare

1 Like

roblox has a built in despawn mecanic if you turn your graphical settings down you will notice the terrain despawn as you walk away

if you turn your graphical settings to max you will notice the terrain reduces in resolution as you walk away i have not seen the terrain despawn but i dont know if it does at a very far distance you would need to ask roblox

you could always modify the localscript if you really wanted to depawn the terrain but i personelly belive that would be a waste of CPU cycles


also streamingenabled has no effect
as this plugin is client sided there is zero data being sent from the server to the client after they have entered the game about the terrain

that was one of the main reasons i made the plugin when you have a huge amount of terrain on the server it takes forever to send all that infomation to the client when they enter the game and takes forever to load

where this plugin only sends a few values to the client and thats all the infomation the client needs to load a endless world

well for sure this plugin is complex, but when i fully understand how it works maybe i could do some incr edible stuff, thanks for the help!

in this image and video you can see how i made volcanoes rare by clamping them from 0.4 to 10 i could make them more rare by clamping them from 0.6 to 10 or almost never show up if i clamp them from 0.7 to 10

NEW UPDATE

Small update i fixed a bug where sometimes when moving noises or materials up and down using the arrows would mess up the order

2 Likes

Great job,Ive experience that bug and you fix it without me saying lol

Thing is, if the terrain is only visible on the client after the game loads, what would this be used for game-wise?

It can be used for anything why is there someone you want to do and don’t know how I’d be happy to help

Models Update Coming Soon

5 Likes

I’m aiming to make an open-world game, but to add NPCs and stuff, I need to be able to see the terrain on the client side as well.
Also, do you have the seed for that map you’re on? Can I use it? Are there any royalties?

heavy breathing intensifies

The scenery is beautiful! (No exaggeration)

I will definitely use this :slight_smile:

Is that the normal Roblox Forest pack or the optimized version?

Optimized version: Optimized Forest Pack

if your NPCs are not moving then you can just anchor them in place generate the terrain in studio then position the NPC where you want it to be then clear the terrain and run the game your NPC should be perfectly aligned with the client sided terrain same goes for building or anything that is anchored

if your npcs are walking around there are 2 ways to do this


Method 1
Generate the terrain on the server side for the areas the NPC will walk around follow this video on how to generate special zones on the server side


Method 2
Place a anchored invisable cube where you want the NPC to spawn and give it a Attribute with the name of the NPC and put all your npcs in a folder in replicatedstorage then when a player walk in range of a invisable cube they clone the NPC from replicatedstorage and place it where the invisable cube is

from here you can make the client move the NPC randomly or the client can lisson for when the invisable cube moves and then the client can use the MoveTo function to move the npc to the invisable cubes new position this would also be the time to do Pathfinding if you wanted to

when interacting with the npc the client will send a event with the invisable cube as a perimeter and this would be when the server would be checking to make sure the client is not hacking


While method 1 is simpler method 2 is better for performance after you have more then 50 NPC in the game you will notice that the server will start to struggle to animate all them humanoids where in method 2 all the animations are done on the client and all that data does not need to be sent over the network so the animations will be butter smooth and you should be able to have almost a infinite amount of NPCs

4 Likes

the plugin does not care what model you use you can use anything you like to spawn around the terrain you have 100% freedom

You can find seeds at my YouTube Channel

there are no royalties the plugin is open source with the Zero-Clause BSD license you can download the plugins source code from here and you can support my work by going here

1 Like

Wow this upcoming update will be great! I love the plugin so far! :slight_smile:

Hello how do i use model,The model is not showing up No error,And all the option is complicated