Needed to make it so that no matter how I shaped the volume cube, the building would change and adjust with the changes
In Maya, I created some quick wall, floor, and ceiling assets along with a couple additions that would attach themselves to the wall.
First Calling the volume that was created in the level, I made a named reroute for the sampler for better organization.
Plugging those into 4 differences with 2 transform points, these will be used to adjust the directions the walls will be facing, using the unit sizes of the wall pieces to connect them seamlessly
Using a similar method for the ceiling and the floorÂ
For the walls, be sure to merge the points from the wall sides and plug them into a static mesh spawner with the wall mesh. For adding the door, the get volume sampler with a density filter plugged into a static mesh spawner allows the door to replace the wall meshes.
Out of the density filter, you plug into the transform points node that leads to the stat mesh spawner which contains two meshes that will spawn on the walls. Use the transform points in order to adjust the position and the self-pruning to reduce the number of meshes that appear, preventing overlap.
For the satellites, out of the static mesh spawner for the ceiling, I added a mesh sampler that samples the ceiling mesh being used and plug it into the copy points and a normal density in order to get the data for the ceiling specifically. When I plug in the static mesh spawner, they begin to spawn on the ceiling with the density noise filters reducing the number spawned.
Add link to your Unreal project here