Description

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
		}

 

Steps to Reproduce
  1. Download the repro project (HLODTest) from addtional URL
  2. Open the editor
  3. Delete HLODs
  4. Build HLODs

Result:

UVs of StaticMesh are incorrectly set (attached NG_HLOD0, NG_HLOD1)

Expected:

UVs of StaticMesh are set correctly (attached OK_HLOD0, OK_HLOD1)

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-223956 in the post.

0
Login to Vote

Unresolved
CreatedSep 11, 2024
UpdatedSep 18, 2024
View Jira Issue