FLODUtilities::StripLODGeometry

This function will strip all triangle in the specified LOD that don't have any UV area pointing on a black pixel in the TextureMask.

Unreal Engine C++ API Reference > Developer > SkeletalMeshUtilitiesCommon > FLODUtilities

References

   
Module SkeletalMeshUtilitiesCommon
Header /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/LODUtilities.h
Include #include "LODUtilities.h"
Source /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/LODUtilities.cpp
static bool StripLODGeometry
(
    [USkeletalMesh](API\Runtime\Engine\Engine\USkeletalMesh) * SkeletalMesh,
    const int32 LODIndex,
    [UTexture2D](API\Runtime\Engine\Engine\UTexture2D) * TextureMask,
    const float Threshold
)

Remarks

This function will strip all triangle in the specified LOD that don't have any UV area pointing on a black pixel in the TextureMask. We use the UVChannel 0 to find the pixels in the texture.

SkeletalMesh: The skeletalmesh we want to optimize LODIndex: The LOD we want to optimize TextureMask: The texture containing the stripping mask. non black pixel strip triangle, black pixel keep them. Threshold: The threshold we want when comparing the texture value with zero.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library