Hello, we have recently started spawning Spline Mesh Components using PCG in our map and we observe that there are issues with these components when HLOD Builder tries to batch the instances of these components.
Issue : The HLOD Instance Batcher tries to directly work with the Static Mesh in a given Static Mesh Component (Both ISM and Spline Mesh Component derive from Static Mesh Component) and then batch them. Which makes sense when working with multiple SMs and ISM Components sharing the same Static Mesh. But not for Spline Mesh Component.
Eventually there is one HLODComponent per Static Mesh that all SplineMeshComponents refer to.
From what I understand, it might make sense that SplineMeshComponents might not directly with with HLOD instancing since the meshes are deformed along the spline and would not be trivial enough to batch them.
My questions to the Epic team is :
- Is there a known workaround or any guidelines around this issue?
- If not, from what I understand, there are a couple of potential fixes to address this, including
- Create proxy meshes and let them get fed into HLOD instances. This would be very heavy though and not preferred solution
- Create another HLOD mesh approximation layer (not instancing) just to support these components.
Regards,
Vaishvik