Skip to content

bradyrussell/marchingcubesterrainplugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marching Cubes Terrain Plugin

An Unreal Engine plugin that utilizes Polyvox & LevelDB and depends on the UnrealFastNoise & RuntimeMeshComponent plugins.

The master branch of this repo is currently targeting UE 4.26.1.

Purpose

This plugin allows for multiplayer runtime editable procedural voxel terrain in UE4, which can be rendered using Marching Cubes or Cubic meshes.

This means you can create procedural worlds from a numeric seed which expand "infinitely" in any direction such as in Minecraft. This plugin uses cubic regions so there is infinite height and depth as well.

Works with UE4 navmesh generation, check out NavInvokers for best performance.

Example

Usage

Download the plugin and dependencies to your Plugins folder

This plugin as well as: UnrealFastNoise RuntimeMeshComponent LDBPlugin

Launch the editor and create a BP child of the PagedWorld class

This is the only class you are required to subclass. Paged World class

BeginPlay script

Set up your beginplay similar to this: BeginPlay setup

Override function GetNoiseGenerators()

This is where you make your World Generation unique. You will have to customize the C++ as well to make really custom worlds. Noise generator

World Settings

Customize the rendering settings in the class defaults tab. You can leave the rest alone. Rendering settings

Now open or create your PlayerController

Add a TerrainPagingComponent to the PlayerController and set the view distance (this is a radius).

Next we need to set up multiplayer connections, here is a quick way: Multiplayer setup 1

Here is a quick hack to prevent the player from falling / moving before he gets connected: Player movement disable

Result (with Run Dedicated Server checked)

enter image description here

About

A UE4 plugin that provides infinite procedural terrain

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages