How To Create Backrooms Procedural Generation in UE4!

Опубликовано: 01 Октябрь 2024
на канале: Point of Insanity Dev
6,048
202

Hi! Here is a backrooms procedural generation algorithm and explanation, that I created to be very customisable, and I implemented it in UE4 (Unreal Engine v4.72). It isn't infinite, but can be randomly generated at run time to a large scale. The project file and python implementation can be found below.

💥Check out my multiplayer, horror game development here!💥
https://linktr.ee/pointofinsanity

Download the UE 4.72 and Python implementation here!
Feel free to subscribe or donate if you use the algorithm. Thank you.
https://si1vergames.gumroad.com/l/pro...


Algorithm explained:
1) The first paths are created in a grid pattern
2) The paths are extended on every update
3) On every update, there is also a chance to branch off and create another path. The chance of this happening is described by an exponential function, to exponentially increase chance of branching at longer lengths.
4) The paths are stopped when they collide with each other within a distance, or go out of bounds.

Chapters:
0:00 - Intro
0:25 - Algorithm Explained
2:03 - How to use in Unreal Engine
3:57 - Migrate to other projects
4:06 - Outro