IPFMExporter::ExportPFM

Generate PFM file from static mesh.

Choose your operating system:

Windows

macOS

Linux

References

Module

PFMExporter

Header

/Engine/Plugins/Runtime/WarpUtils/Source/PFMExporter/Public/IPFMExporter.h

Include

#include "IPFMExporter.h"

Syntax

bool ExportPFM
(
    const FStaticMeshLODResources * SrcMeshResource,
    const FMatrix & MeshToOrigin,
    int PFMWidth,
    int PFMHeight,
    const FString & LocalFileName
)

Remarks

Generate PFM file from static mesh. The UV channel must be defined, assigned range 0..1 used as screen surface.

Returns

  • true, if export success

Parameters

Parameter

Description

SrcMeshResource

Source mesh with defined UV, used as PFM 3d source

MeshToOrigin

Transform matrix convert mesh vertices to cave origin space

PFMWidth

Output PFM mesh texture width

PFMHeight

Output PFM mesh texture height

LocalFileName

Output PFM file name (supported relative paths)