Struct ufbx.ufbx_bake_opts
Assembly: ufbxWrapper.dll
Syntax
public struct ufbx.ufbx_bake_opts
Fields
_begin_zero
Declaration
Field Value
_end_zero
Declaration
Field Value
Bake the raw versions of properties related to transforms.
Declaration
public bool bake_transform_props
Field Value
evaluate_flags
Flags passed to animation evaluation functions.
See ufbx_evaluate_flags
.
Declaration
public uint evaluate_flags
Field Value
ignore_layer_weight_animation
Ignore layer weight animation.
Declaration
public bool ignore_layer_weight_animation
Field Value
key_reduction_enabled
Declaration
public bool key_reduction_enabled
Field Value
key_reduction_passes
Maximum passes over the keys to reduce.
Every pass can potentially halve the the amount of keys.
Default: 4
Declaration
public ulong key_reduction_passes
Field Value
key_reduction_rotation
Enable key reduction for non-constant rotations.
Assumes rotations will be interpolated using a spherical linear interpolation at runtime.
Declaration
public bool key_reduction_rotation
Field Value
key_reduction_threshold
Threshold for reducing keys for linear segments.
Default 0.000001
, use negative to disable.
Declaration
public double key_reduction_threshold
Field Value
max_keyframe_segments
Maximum number of segments to generate from one keyframe.
Default: 32
Declaration
public ulong max_keyframe_segments
Field Value
maximum_sample_rate
Maximum sample rate to use, this will remove keys if they are too close together.
Default: unlimited
Declaration
public double maximum_sample_rate
Field Value
minimum_sample_rate
Minimum sample rate to not resample.
Many exporters resample animation by default. To avoid double-resampling
keyframe rates higher or equal to this will not be resampled.
Default: 19.5
Declaration
public double minimum_sample_rate
Field Value
no_resample_rotation
Do not resample linear rotation keyframes.
FBX interpolates rotation in Euler angles, so this might cause incorrect interpolation.
Declaration
public bool no_resample_rotation
Field Value
resample_rate
Samples per second to use for resampling non-linear animation.
Default: 30
Declaration
public double resample_rate
Field Value
result_allocator
Allocator used for the final baked animation
Declaration
public ufbx.ufbx_allocator_opts result_allocator
Field Value
Do not bake node transforms.
Declaration
public bool skip_node_transforms
Field Value
step_custom_duration
Interpolation duration used by UFBX_BAKE_STEP_HANDLING_CUSTOM_DURATION
.
Declaration
public double step_custom_duration
Field Value
step_custom_epsilon
Interpolation epsilon used by UFBX_BAKE_STEP_HANDLING_CUSTOM_DURATION
.
Defined as the minimum fractional decrease/increase in key time, ie.
time / (1.0 + step_custom_epsilon)
and time * (1.0 + step_custom_epsilon)
.
Declaration
public double step_custom_epsilon
Field Value
step_handling
How to handle stepped tangents.
Declaration
public ufbx.ufbx_bake_step_handling step_handling
Field Value
temp_allocator
Allocator used during loading
Declaration
public ufbx.ufbx_allocator_opts temp_allocator
Field Value
trim_start_time
Move the keyframe times to start from zero regardless of the animation start time.
For example, for an animation spanning between frames [30, 60] will be moved to
[0, 30] in the baked animation.
NOTE: This is in general not equivalent to subtracting ufbx_anim.time_begin
from each keyframe, as this trimming is done exactly using internal FBX ticks.
Declaration
public bool trim_start_time
Field Value