FDynamicMeshUVPacker

[FDynamicMeshUVPacker](API\Plugins\DynamicMesh\Parameterization\FDynamicMeshUVPacker) implements various strategies for packing UV islands in a UV Overlay.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/MeshUVPacking.h

Include

#include "Parameterization/MeshUVPacking.h"

Syntax

class FDynamicMeshUVPacker

Remarks

FDynamicMeshUVPacker implements various strategies for packing UV islands in a UV Overlay. The island topology and UV unwraps must already be created, this class simply scales/rotates/translates the islands to fit.

Variables

Name Description

Public variable

bool

 

bAllowFlips

If true, islands can be flipped in addition to rotate/translate/scale

Public variable

float

 

GutterSize

Thickness of gutter/border in pixel dimensions. Not supported by all packing methods

Public variable

int32

 

TextureResolution

Resolution of the target texture. This is used to convert pixel gutter/border thickness to UV space

Public variable

FDynamicMeshUVO...

 

UVOverlay

The UV Overlay we will be repacking

Constructors

Name Description

Public function

FDynamicMeshUVPacker

(
    FDynamicMeshUVOverlay* UVOverl...
)

Functions

Name Description

Public function

bool

 

StackPack()

Uniformly scale all UV islands so that the largest fits in positive-unit-square, and translate each islands separately so that it's bbox-min is at the origin.

Public function

bool

 

StandardPack()

Standard UnrealEngine UV layout, similar to that used for Lightmap UVs.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss