Shelf Generator

Final Results Showcase:
Problem we are trying to solve:
A tool that can generate shelf mesh and spawn meshes on the shelf

Solution to the problem:
Sample the static mesh input to get point data

Graph Review for Spawning Mesh On the Shelf:

Sample Mesh Input:
First, I set up an actor class blueprint to allow users to use this tool on any static mesh input with a public variable.
Then, I sample the mesh and get point info.


Spawn Potion Bottles:
I used two sets of normal to density and density filter nodes to get points that are only facing upwards on the mesh after I used density (attribute) noise to add more position variations for the points. With a transform points node, I was able to randomize offsets, rotations, and sizes for the potion bottles.

Adding Additional Objects:
By running the results of the first and the second normal to density node, I got points that was filtered out by the second normal to density. After running the output in a density filter node, I used the points to generate more objects.

Spawn Shelves on a Spline:
This method is an add-on to the graphs above. After creating a blueprint with spline info, I sampled the spline and used the spline data as the target to copy the points from the static mesh. On top of that, I spawn the shelf mesh so it's also spawning along the meshes with the objects.

Resource:
All assets used are downloaded from Fab.com
Book shelf image
https://stock.adobe.com/search?k=old+bookshelf&asset_id=340078556