IProxyLODParameterization::GenerateUVs

Lower-level entry point: Method that generates new UVs inconstant with the mesh defined by the VertexBuffer/IndexBuffer according to the parameters specified in the FTextureAtlasDesc The underlying code uses Isometeric approach (Iso-Charts) in UV generation.

Windows
MacOS
Linux

References

Module

ProxyLODMeshReduction

Header

/Engine/Plugins/Experimental/ProxyLODPlugin/Source/ProxyLOD/Public/ProxyLODParameterization.h

Include

#include "ProxyLODParameterization.h"

Syntax

bool GenerateUVs
(
    int32 Width,
    int32 Height,
    float GutterSpace,
    const TArray< FVector > & VertexBuffer,
    const TArray< int32 > & IndexBuffer,
    const TArray< int32 > & AdjacencyBuffer,
    TFunction< bool> & Callback,
    TArray< FVector2D > & UVVertexBuffer,
    TArray< int32 > & UVIndexBuffer,
    TArray< int32 > & VertexRemapArray,
    float & MaxStretch,
    int32 & NumCharts
) const

Remarks

Lower-level entry point: Method that generates new UVs inconstant with the mesh defined by the VertexBuffer/IndexBuffer according to the parameters specified in the FTextureAtlasDesc The underlying code uses Isometeric approach (Iso-Charts) in UV generation. This assumes that the caller has already generated the mesh adjacency information.

Returns

'true' if the UV generation succeeded, 'false' if it failed.

Parameters

Parameter

Description

InTextureAtlasDesc

Description of the texel resolution of the desired texture atlas.

VertexBuffer

Positions of vertices

IndexBuffer

Triangle definitions

AdjacencyBuffer

3 entries for each face, each entry is the face index of the face that is adjacent to the given face. -1 means no face.

StatusCallBack

Allows for termination of the UV generation.

UVVertexBuffer

Resulting UVs

UVIndexBuffer

Connectivity for the UVs

VertexRemapArray

Array that remaps the vertices split by the UV generation to the source vertices.

MaxStretch

On Input, The maximum amount of stretch between (0 - none and 1 - any), on Output the actual max stretch used.

MaxChartNumber

On Input Maximum number of charts required for the atlas. If this is 0, will be parameterized solely on stretch. Note, not a hard limit - isochart will stop when a valid charting is found that is greater or equal to this number. On Output: Number of charts actually generated

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