mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GltfAccessor

    https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/accessor.schema.json

    Inheritance
    Object
    GltfProperty
    GltfChildOfRootProperty
    GltfAccessor
    Inherited Members
    GltfChildOfRootProperty.name
    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 GltfAccessor : GltfChildOfRootProperty

    Fields

    bufferView

    The index of the bufferView. If this is undefined, look in the sparse object for the index and value buffer views.

    Declaration
    public int bufferView
    Field Value
    Type Description
    Int32

    bufferView

    The index of the bufferView. If this is undefined, look in the sparse object for the index and value buffer views.

    Declaration
    public int bufferView
    Field Value
    Type Description
    Int32

    byteOffset

    The offset relative to the start of the bufferView in bytes. This must be a multiple of the size of the component datatype.

    Declaration
    public int byteOffset
    Field Value
    Type Description
    Int32

    byteOffset

    The offset relative to the start of the bufferView in bytes. This must be a multiple of the size of the component datatype.

    Declaration
    public int byteOffset
    Field Value
    Type Description
    Int32

    componentType

    The datatype of components in the attribute. All valid values correspond to WebGL enums. The corresponding typed arrays are: Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array, and Float32Array, respectively. 5125 (UNSIGNED_INT) is only allowed when the accessor contains indices i.e., the accessor is only referenced by primitive.indices.

    Declaration
    public GltfComponentType componentType
    Field Value
    Type Description
    GltfComponentType

    componentType

    The datatype of components in the attribute. All valid values correspond to WebGL enums. The corresponding typed arrays are: Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array, and Float32Array, respectively. 5125 (UNSIGNED_INT) is only allowed when the accessor contains indices i.e., the accessor is only referenced by primitive.indices.

    Declaration
    public GltfComponentType componentType
    Field Value
    Type Description
    GltfComponentType

    count

    The number of attributes referenced by this accessor, not to be confused with the number of bytes or number of components. 1

    Declaration
    public int count
    Field Value
    Type Description
    Int32

    count

    The number of attributes referenced by this accessor, not to be confused with the number of bytes or number of components. 1

    Declaration
    public int count
    Field Value
    Type Description
    Int32

    max

    Maximum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16.

    When componentType is 5126 (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions.

    normalized property has no effect on array values: they always correspond to the actual values stored in the buffer. When accessor is sparse, this property must contain max values of accessor data with sparse substitution applied. 1 16

    Declaration
    public float[] max
    Field Value
    Type Description
    Single[]

    max

    Maximum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16.

    When componentType is 5126 (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions.

    normalized property has no effect on array values: they always correspond to the actual values stored in the buffer. When accessor is sparse, this property must contain max values of accessor data with sparse substitution applied. 1 16

    Declaration
    public float[] max
    Field Value
    Type Description
    Single[]

    min

    Minimum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16.

    When componentType is 5126 (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions.

    normalized property has no effect on array values: they always correspond to the actual values stored in the buffer. When accessor is sparse, this property must contain min values of accessor data with sparse substitution applied. 1 16

    Declaration
    public float[] min
    Field Value
    Type Description
    Single[]

    min

    Minimum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16.

    When componentType is 5126 (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions.

    normalized property has no effect on array values: they always correspond to the actual values stored in the buffer. When accessor is sparse, this property must contain min values of accessor data with sparse substitution applied. 1 16

    Declaration
    public float[] min
    Field Value
    Type Description
    Single[]

    normalized

    Specifies whether integer data values should be normalized (true) to [0, 1] (for unsigned types) or [-1, 1] (for signed types), or converted directly (false) when they are accessed. Must be false when accessor is used for animation data.

    Declaration
    public bool normalized
    Field Value
    Type Description
    Boolean

    normalized

    Specifies whether integer data values should be normalized (true) to [0, 1] (for unsigned types) or [-1, 1] (for signed types), or converted directly (false) when they are accessed. Must be false when accessor is used for animation data.

    Declaration
    public bool normalized
    Field Value
    Type Description
    Boolean

    sparse

    Sparse storage of attributes that deviate from their initialization value.

    Declaration
    public GltfAccessorSparse sparse
    Field Value
    Type Description
    GltfAccessorSparse

    sparse

    Sparse storage of attributes that deviate from their initialization value.

    Declaration
    public GltfAccessorSparse sparse
    Field Value
    Type Description
    GltfAccessorSparse

    type

    Specifies if the attribute is a scalar, vector, or matrix, and the number of elements in the vector or matrix.

    Declaration
    public string type
    Field Value
    Type Description
    String

    type

    Specifies if the attribute is a scalar, vector, or matrix, and the number of elements in the vector or matrix.

    Declaration
    public string type
    Field Value
    Type Description
    String

    Properties

    BufferView

    https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/bufferView.schema.json

    Declaration
    public GltfBufferView BufferView { get; }
    Property Value
    Type Description
    GltfBufferView

    BufferView

    https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/schema/bufferView.schema.json

    Declaration
    public GltfBufferView BufferView { get; }
    Property Value
    Type Description
    GltfBufferView
    In This Article
    • Fields
      • bufferView
      • bufferView
      • byteOffset
      • byteOffset
      • componentType
      • componentType
      • count
      • count
      • max
      • max
      • min
      • min
      • normalized
      • normalized
      • sparse
      • sparse
      • type
      • type
    • Properties
      • BufferView
      • BufferView
    Back to top Generated by DocFX