Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FAnimationCompression_PerTrackUt-
Description
Log2MaxValue of 0 => -1..1 Log2MaxValue of 7 => -128..128 Can be 0..15 Compresses a float into a signed fixed point number, which can range from the symmetrical values of -2^Log2MaxValue .. 2^Log2MaxValue. No clamping is done, values that don't fit will overflow.
For example, a Log2MaxValue of 0 can encode -1..1, and 7 can encode -128..128.
| Name | CompressFixed16 |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/AnimationCompression.h |
| Include Path | #include "AnimationCompression.h" |
static uint16 CompressFixed16
(
float Value,
int32 Log2MaxValue
)
The quantized value
Parameters
| Name | Remarks |
|---|---|
| Value | Value to encode |
| Log2MaxValue | Encoding range (can be 0..15) |