Voxel Plugin

@Gallonmate Everything is exposed as much as possible to Blueprints. The SetSphereValue function only takes a radius and a position, so you can use it wherever you want. All the VoxelTools are static functions.

test:

Impressive!

Multiplayer tests with @Wilken and @Slavq :

lol, crash

Great work and the fact youā€™re sharing with the community is very commendableā€¦ Eagerly following :slight_smile:

Editing huge parts of the world. This will also work in multiplayer without any lag.

More multiplayer with @molatov and @HeroicVillain :

If you want to try it: MPTest.7z - Google Drive

Server: need to click Play, then enter his local ip (often 192.168.X.X) and click on Server
Client: enter Server public IP and click on Connect. Once the game is loaded, enter Server public IP and click on Client

For the server, ports 7777 and 8000 must be open for both TCP and UDP

Controls: Left click to use, left Ctrl to add, mouse scroll to change radius

I have just imported a height map and that was fine, but when I run the game the player falls thru the terrainā€¦ Is there something I am missing?

Try add invoker component to player

You need a voxel invoker Component attached to your Player BP.

Thanks you that helpedā€¦ :slight_smile:

Thatā€™s all working great now and got my height map in the engineā€¦ My map is very big and its handling it wellā€¦ Just one more thingā€¦ I just a bit lost in how to learn how to use this plugin.

I downloaded the MarchingCubes Example project which was 900mbā€¦ Could not download the With Open World Demo Collection Assets (7.6 GB) it was a dead linkā€¦ I have taken a look at the VoxelMaterialExample cause I want to have different textures on my landscape, its actually islandsā€¦ But its very complex and alot going on to understand itā€¦

So I want sand at the lowest level then on to earth/grass as the land goes higher, maybe on angles for cliffs texturesā€¦ Is this possible? I think I read some where someone was doing this and only showed screenshotsā€¦

Could some one help with thisā€¦ Just think this forum is the first place newbies will lookā€¦ We covered adding the Voxel Invoker so people can walk aroundā€¦ Maybe this example will really get people goingā€¦ Landscape with textureā€¦ After that people can start to get into the more complex stuff after haven this kick start to the plugā€¦

Iā€™ve added a World Generator graph editor:

This graph creates the following world:

The graph system is quite performant (less than 2x slower than C++), so itā€™s well suited for development.

To improve performance even more, Iā€™ve also added an automatic Graph -> C++ conversion.
For instance, this is the file generated from the graph above: https://pastebin.com/6rQ9dPPC

This means that I now have a Graph Editor that generates optimized C++ code :slight_smile:

This is awesome!

Yeesh, that graph pic makes me tingle inappropriately =P

Hey folks!
Just set up the plugin to test it with a first person controller.
I attached the voxel invoker Component to the FP BP, but when I run the game I only see the generated terrain.
Do I have to setup something else in order to interact with the environment?

Thanks!

Edit: Got the answer via Discord, thanks :slight_smile:

This really sparks the imagination!
Outstanding and inspiring work.

If you need any help with documentation or other ā€˜busy workā€™ let me know.

Why does it require Visual Studio 2017 ? It is still full of bugs compared to Visual Studio 2015. It is far from reliable for C++ development as reported everywhere on the 'net.