Module |
|
Header |
/Engine/Source/Developer/MeshMergeUtilities/Public/MeshMergeDataTracker.h |
Include |
#include "MeshMergeDataTracker.h" |
class FMeshMergeDataTracker
Used to keep track of in-flight data while meshes are merged and their corresponding materials baked down
Name | Description | ||
---|---|---|---|
|
AvailableLightMapUVChannel |
First available UV channel across all RawMesh entries |
|
|
bool[8][MAX_MES... |
bOcuppiedUVChannels |
|
|
bool[8] |
bWithVertexColors |
Flags for UV and vertex color usage |
|
ComponentToWedgeOffsets |
||
|
LightmapChannelLODs |
Mesh / LOD index, lightmap channel. |
|
|
LODIndices |
All LOD indices which should be populated in the final merged mesh |
|
|
MaterialInterfaceToMaterialSlotName |
Use this map to recycle the material slot name. |
|
|
RawMeshLODs |
Mesh / LOD index, RawMesh. |
|
|
RequiresUniqueUVs |
Whether a key requires unique UVs. |
|
|
SummedLightMapPixels |
||
|
UniqueSectionIndexPerLOD |
Remapping pairs for each mesh and LOD index combination |
|
|
UniqueSections |
Unique set of sections in mesh |
|
|
UniqueSectionToMeshLOD |
Maps from each unique section index to all the RawMesh entries which contain an original section that's mapped to it |
Name | Description | |
---|---|---|
|
FMeshMergeDataTracker() |
Name | Description | ||
---|---|---|---|
|
FMeshDescrip... |
AddAndRetrieveRawMesh ( |
Adds or retrieves raw mesh data for the mesh and LOD index |
|
AddBakedMaterialSection ( |
Clears out unique section to be replaced with the baked material one |
|
|
AddComponentToWedgeMapping |
||
|
AddLightmapChannelRecord |
Adds a record of what channel lightmap data is stored at |
|
|
AddLightMapPixels ( |
Add number of lightmap pixels used for one of the Meshes |
|
|
AddLODIndex ( |
Adds a LOD index which will be part of the final merged mesh |
|
|
AddMaterialSlotName ( |
Add a material slot name for a unique material instance. |
|
|
AddSection ( |
Adds (unique) section to stored data |
|
|
AddSectionRemapping |
Adding a mapping between the index for an original mesh section index and the mesh section it will be indexed to in the final mesh |
|
|
DoesAnyLODContainVertexColors() |
Returns whether or not any raw mesh entry contains vertex colors for any LOD index |
|
|
DoesLODContainVertexColors ( |
Returns whether or not any raw mesh entry contains vertex colors for the specified LOD index |
|
|
DoesMeshLODRequireUniqueUVs ( |
Returns whether or not the raw mesh entry for the given MeshLOD key requires unique UVs for baking out its material(s) |
|
|
DoesUVChannelContainData |
Returns whether or not any raw mesh entry contains texture coordinates for the specified UV channel and LOD index |
|
|
DoesUVChannelContainData ( |
Returns whether or not any raw mesh entry contains texture coordinates for the specified UV channel and any LOD index |
|
|
FMeshDescrip... |
FindRawMeshAndLODIndex |
Tries to retrieve a FMeshDescription and returns the LOD index it found an entry for |
|
GetAvailableLightMapUVChannel() |
Returns the first available UV channel across all raw mesh entries, which will be a good fit for the lightmap UV index in the final mesh |
|
|
GetComponentToWedgeMappng |
||
|
TConstRawMes... |
GetConstRawMeshIterator() |
Returns a const key/value iterator for the FMeshDescription entries |
|
GetLightMapDimension() |
Returns the texture dimension required to distribute all of the lightmap pixels |
|
|
TConstLODInd... |
GetLODIndexIterator() |
Iterates over LOD indices for mesh |
|
GetMappingsForMeshLOD ( |
Retrieves all section mappings for the MeshLOD key |
|
|
UMaterialInt... |
GetMaterialForSectionIndex ( |
Returns the material used by the unique section |
|
GetMaterialSlotName ( |
Get the material slot name from a unique material instance. |
|
|
GetMeshLODsMappedToUniqueSection ( |
Retrieves the MeshLOD keys from which the original sections are mapped to the unique section index |
|
|
GetNumLODsForMergedMesh() |
Retrieves number of LODs part of the final merged mesh |
|
|
TRawMeshIter... |
GetRawMeshIterator() |
Returns a non-const key/value iterator for the FMeshDescription entries |
|
FMeshDescrip... |
GetRawMeshPtr ( |
Retrieves Raw Mesh ptr for the given MeshLOD key |
|
FMeshDescrip... |
GetRawMeshPtr |
Retrieves Raw Mesh ptr for the given mesh and LOD index |
|
const FSecti... |
GetSection ( |
Returns the unique section instance |
|
NumberOfUniqueSections() |
Returns the number of unique sections |
|
|
ProcessRawMeshes() |
Looks at all available raw mesh data and processes it to populate some flags |
|
|
RemoveRawMesh |
Removes raw mesh entry for the given mesh and LOD index |
|
|
FMeshDescrip... |
TryFindRawMeshForLOD |
Tries to retrieve a FMeshDescription for the given mesh and LOD index, if it can't it will try to find an entry for each LOD levle below InOutDesiredLODIndex |