Hey,
I’m creating a game where the player can walk around an open world landscape setting and they can place houses on the terrain.
- The house model is a static mesh.
- The transform values could be different for each house
- The player places the house by clicking on the floor and a single house model is dropped into that location
- A player could place upwards of 10,000 houses in the map
My question is, what would be the best most optimised way of implementing a feature like this where the player can drop so many meshes into the map in locations which they choose?
I’ve tried placing the houses using the foliage tool and it works really well. I can have up to 10,000 models using the foliage tool and there doesn’t seem to be much of a performance hit. However, I’m not sure how I can give this option to the player where they can place objects using the foliage tool in the editor.
I’ve tried creating a blueprint with the model as a static mesh, instanced mesh and a hierarchical instanced mesh, but the frame rate drops once I get about a 1000 blueprints in the map. The HIM sounds really good in principle, but it seems to work well if instances are added into the single blueprint. I’m not sure how this can be done in my game where the player is essentially dropping houses in random locations that they choose.
Any insights / guidance would be much appreciated.
Thank you.