Accessors

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/drbiz/public/tools.realism.com/modules/book/book.module).

This is a required section and is encoded in JSON format.

accessors Field Array Elements
Element Value Description
indexViews   An array of indexViews elements.
attributeViews   An array of attributeViews elements.

Example

example here

This is a required section and is encoded in JSON format.

indexViews Field Array Elements
Element Value Description
unique-indexViews-label-1   User-defined file-wide unique label for the attributeView array.
unique-indexViews-label-2   Same as previous. Repeat as necessary.

Example

example here

This is a required section and is encoded in JSON format.

indexViews Field Array Elements
Element Value Description
bufferView   The label of a bufferView.
byteOffset   The offset to the first byte of this section relative to the beginning of the DATA portion of the file.
componentType   TBD
count   The number of elements of type in this indexView

Example

example here

This is a required section and is encoded in JSON format.

attributeViews Field Array Elements
Element Value Description
unique-attributeViews-label-1   User-defined file-wide unique label for the attributeView array.
unique-attributeViews-label-2   Same as previous. Repeat as necessary. Additional documentation in glTF.

Example

example here

This is a required section and is encoded in JSON format.

attributeView Field Array Elements
Element Value Description
bufferView   The label of a bufferView.
byteOffset   The offset to the first byte of this section relative to the beginning of the DATA portion of the file.
byteStride   TBD
componentType   TBD
type VEC3 | VEC2 | ... A character code that describes the encoded data.
count   The number of elements of type in this attributeView
decodeOffset   A numeric array that indicates the offset to be applied to each element of this attributeView data. There is exactly one value for element of type.
decodeScale   A numeric array that indicates the scale factor to be applied to each element of this attributeView data. There is exactly one value for element of type. The real value for each stored value is computed as
R[i,j] = S[i]*D[i,j] + O[i]
where,
i
is the type index
j
is the data index
R
is the real data
S[i]
is the decodeScale element i
D[i,j]
is the stored data
O[i]
is the decodeOffset element i

Example

example here