VRMACCESSOR(3VRMWL)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars, in the Wolfram Language (tools/ff_makevrm.nb)VRMACCESSOR(3VRMWL)

NAME

vrmAccessor — append an array and its accessor

SYNOPSIS

vrmAccessor[g, arr, ctype, type] · vrmAccessor[g, arr, ctype, type, target, minmax]

DESCRIPTION

Rounds the array to 32-bit floats (ctype 5126) or unsigned integers (5125, 5121) with NumericArray, writes its bytes little-endian with ExportByteArray, and records the accessor; with minmax True, the bounds of the rounded values, as glTF requires for positions.

RETURN VALUE

The accessor's index, from 0.

SEE ALSO

vrmBufferView(3vrmwl), vrmAddMeshes(3vrmwl), acc(3vrm)

SOURCE

tools/ff_makevrm.nb: line 274 of its cells one after another (docs/man/src/ff_makevrm-cells.txt)

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0