HLOD building issues

Hi

We have issues with building SOME of the meshes on the last layer of HLOD (HLODBuilderApproximate)

when using commandlet (-run=WorldPartitionBuilderCommandlet -Builder=WorldPartitionHLODsBuilder -SetupHLODs -BuildHLODs)

there are some of the meshes (large meshes, that easily pass the filtering etc.) missing from the last HLOD.

They are present in the instanced layer, but are missing from approximate one, uppon inspecting the actor it has 3 static mesh components, but only the last one have SM assigned, the parent and first child have none assigned to SM.

When in editor with that actor selected I click ‘Build HLOD’ on it, it builds properly and all 3 components have SM assigned.

I’v enabled “Print Debug Messages” and “Emit Full Debug Mesh” in Mesh Approximation Settings, but the results it spew suggest that the proper meshes were approximated from the inputs. So the problem is not with the meshes themselves, but rather with assignment of those embeded SM in actor somehow.

Out of 7k HLODS we have around 130 of those cases at the moment.

I’m unable to repro this on much much smaller level with 100 to 1k meshes sadly.

Any direction/ideas where to look for the root cause would be appreciated.

[Attachment Removed]

Hi Mariusz!

This is surprising and a bit difficult to understand without more details. First I would try to validate if the HLOD actors packages actually contain the meshes that were generated by the commandlets. If not, then the issue is likely when saving them. Be on the lookout for warnings or errors in the SavePackage path. That would explain why the components themselves are pointing to null SM…

That would explain why you are able to see them when you click “Build HLOD”, as the result is still in memory and not saved yet.

Out of the top of my head, I know saving can fail for these internal SMs if they are somehow referencing private objects from other packages. Normally all they should be referencing is private textures (and material instance) from inside the same HLOD actor package.

Let me know if this helps!

Sebastien

[Attachment Removed]