mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GltfAnimationSampler

    Combines input and output accessors with an interpolation algorithm to define a keyframe graph (but not its target). https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/animation.sampler.schema.json

    Inheritance
    Object
    GltfProperty
    GltfAnimationSampler
    Inherited Members
    GltfProperty.Extensions
    GltfProperty.Extras
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Gltf.Schema
    Assembly: cs.temp.dll.dll
    Syntax
    public class GltfAnimationSampler : GltfProperty

    Fields

    input

    The index of an accessor containing keyframe input values, e.G., time. That accessor must have componentType FLOAT. The values represent time in seconds with time[0] >= 0.0, and strictly increasing values, i.e., time[n + 1] > time[n]

    Declaration
    public int input
    Field Value
    Type Description
    Int32

    input

    The index of an accessor containing keyframe input values, e.G., time. That accessor must have componentType FLOAT. The values represent time in seconds with time[0] >= 0.0, and strictly increasing values, i.e., time[n + 1] > time[n]

    Declaration
    public int input
    Field Value
    Type Description
    Int32

    interpolation

    Interpolation algorithm. When an animation targets a node's rotation, and the animation's interpolation is \"LINEAR\", spherical linear interpolation (slerp) should be used to interpolate quaternions. When interpolation is \"STEP\", animated value remains constant to the value of the first point of the timeframe, until the next timeframe.

    Declaration
    public GltfInterpolationType interpolation
    Field Value
    Type Description
    GltfInterpolationType

    interpolation

    Interpolation algorithm. When an animation targets a node's rotation, and the animation's interpolation is \"LINEAR\", spherical linear interpolation (slerp) should be used to interpolate quaternions. When interpolation is \"STEP\", animated value remains constant to the value of the first point of the timeframe, until the next timeframe.

    Declaration
    public GltfInterpolationType interpolation
    Field Value
    Type Description
    GltfInterpolationType

    output

    The index of an accessor, containing keyframe output values. Output and input accessors must have the same count. When sampler is used with TRS target, output accessors componentType must be FLOAT.

    Declaration
    public int output
    Field Value
    Type Description
    Int32

    output

    The index of an accessor, containing keyframe output values. Output and input accessors must have the same count. When sampler is used with TRS target, output accessors componentType must be FLOAT.

    Declaration
    public int output
    Field Value
    Type Description
    Int32
    In This Article
    • Fields
      • input
      • input
      • interpolation
      • interpolation
      • output
      • output
    Back to top Generated by DocFX