Spawning paintings along the wall

I was a little bit tired today I wasn’t quite sure if I would be able to work on the level, but i did! I feel like documenting my progress is definitely incentivising me to push ahead. Today I figured out how to spawn paintings along the wall. And I mostly figured it out without looking up too much video tutorial

inRoom_WFC_paintingOnWall.gif

The steps I took was to extract the layout and fused all the points then resampled them. It took me a while to figure out how to create the correct normal direction along the wall surface so that when I spawn the paintings in UE4 it will be facing the correct direction. I used attribute wrangle for the first time without tutorials (to my surprise). I also used the attribute wrangle to create and offset for the position of those painting instance so that the painting can be positioned flushed against the wall.

I initially thought that I can just use a group range to find the middle point of the tile sets. Later on when i spawn the instance in UE4 I realised some of the corner pieces still persist and I need to remove it. I address that later on the process with a lot of struggle in trying to understand how to mark the corner from the initially fused tiles and remove them after I generated the normal data I needed for the points.

Eventually I realised I need to do a group transfer (probably not how you are supposed to do it, but hey it gets the job done, so i am just not going to touch it from now on). I exposed some of the parameters out so we can adjust the random seed and density of the painting layout

The next thing I probably wanna tackle is to figure out how to spawn different instances of the BP for both the painting, physical art and NPCs.