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

NAME

vrmWrite — write the .vrm file

SYNOPSIS

vrmWrite[g, path]

DESCRIPTION

The 12-byte header ("glTF", version 2, total length), the JSON chunk (ExportByteArray[ , "RawJSON", "Compact" -> True], padded with spaces) and the binary chunk (padded with zeros), each with its length and type, little-endian, written with BinaryWrite.

RETURN VALUE

The file's size in bytes.

SEE ALSO

vrmNewGLB(3vrmwl), write(3vrm)

SOURCE

tools/ff_makevrm.nb: line 282 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