The UVs in HLOD's StaticMesh appear to be broken when there are sections with zero triangles in the fallback mesh. This is most likely the case for sections containing only small parts.
Workaround:
void FMeshMergeHelpers::ExtractSections(const UStaticMeshComponent* Component, int32 LODIndex, TArray<FSectionInfo>& OutSections)
{
// ...
for (const FStaticMeshSection& MeshSection : StaticMesh->GetRenderData()->LODResources[LODIndex].Sections) { // Skip empty sections if (MeshSection.NumTriangles == 0) { // continue; // remove this continue }
Result:
UVs of StaticMesh are incorrectly set (attached NG_HLOD0, NG_HLOD1)
Expected:
UVs of StaticMesh are set correctly (attached OK_HLOD0, OK_HLOD1)
Why does the REMOVE method of map container remove elements have memory leaks?
How does TextureRenderTarget2D get TArray<uint8> type data?
How do I set a material as a post-processing material?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
UMG RichText not appear image when packaged
How to delete some elements correctly when deleting an array loop?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-223956 in the post.
0 |
Component | UE - World Creation - Worldbuilding Tools - HLOD |
---|---|
Affects Versions | 5.4, 5.4.4 |
Target Fix | 5.5 |
Created | Sep 11, 2024 |
---|---|
Resolved | Oct 7, 2024 |
Updated | Oct 8, 2024 |