用于JavaScript / TypeScript的FBX解析器
该解析器将解析FBX文本文件,并将其转换为JavaScript-Object结构。
安装
npm install fbx-parser
用法
import * as FBXParser from 'fbx-parser'
// when encoding is known
const fbx = parseText ( fbxString )
const fbx = parseBinary ( fbxUint8Array )
// when file encoding is unknown
import * as fs from 'fs'
const file = 'file.fbx'
let fbx : FBXData
try {
// try binary file encoding
fbx = parse (
1