Roblox Api Terrain
I used five layers of perlin noise mathnoise which is a function in roblox studio.
Roblox api terrain. The following code will copy the whole terrain and clear it. If you want to go more in depth with this id recommend reading the roblox developer wikis procedural generator. When calling this method the resolution parameter must be exactly 4. The components of the region3s minimum and maximum.
At varying values of the noise the material of the ground and altitude will be different. 3d array of voxel occupancies number between 0 and 1. The id of the place. The terrain object is a feature of roblox that integrates voxel based terrain alongside parts and was introduced in 2011.
Can be later pasted into the terrain using pasteregion. Essentially it is a find and replace operation on terrain materials. Terrain lets you create dynamically morphable environments with little to no lag. Dimensions must exactly match the size of the target region in voxels.
It is currently based on a 444 grid of cells where each cell has a number between 0 and 1 representing how much the geometry should occupy the cell and the material of the cell. Classes enums data types lua documents grouped. Originally it used a preset of meshes to render its terrain. Robloxs visual feature set is now more complete at this level.
Additionally the region3 must be aligned to the terrain materials grid ie. In may 2015 smooth terrain was introduced which later replaced the old style of terrain in 2017. Create a deep copy of a roblox instance and descendants where archivable true. After 5 seconds it will paste the terrain back.
The id of the asset. Int optionalthe page to retrieve. Terrain now receives normal mapping and water reflects and refracts and is now transparent.