FansOfAll
Ghislain Girardot
Ghislain Girardot

patreon


Hierarchical Rock Spawner UE Project files (UE 4.27)

Heya!

Here's a little project that includes some stylized rocks and a neat blueprint that runs a recursive function in its construction script to spawn rocks hierarchically. Bigger rocks are spawned, then medium rocks around those big rocks, then smaller rocks around the medium ones...

That approach can give a more natural and interesting look than just using purely random generated locations.

The blueprint offers all bunch of parameters to control how much these rocks can be buried in the ground (based on the static mesh bounds), the probability to be spawned at all, the probability to spawn a flying rock above it (which will hover above using a material and per-instance custom data to enable the flying motion), randomized transforms, control over the list of static mesh to spawn randomly per hierarchical level, randomized distance and so on. Rocks are vertically projected onto the nearest surface and an optional (but expensive) setting can be used to prevent overlapping rocks.

It's nothing too fancy but it shows how you can use construction scripts to generate somewhat complex generation patterns using recursive functions. Plus a bunch of stylized rocks are included :D

Hope you like it!


Edit 11 May 2022: Project has been converted to a plugin for easier migration

Hierarchical Rock Spawner UE Project files (UE 4.27)

More Creators