將obj文件或者fbx文件轉為為 threejs 對應的json文件。
1. 安裝node
2. 下載threejs源文件
https://github.com/mrdoob/three.js
3. cmd 切換到 .\three.js\utils\converters 目錄下,
可以看到 threejs 提供的兩個js文件,fbx2three.js obj2three.js 文件
4. 安裝esm
cmd 中執行 npm install esm
5. 將obj文件拷貝到目錄下,執行命令
node -r esm obj2three.js ws.obj
6. 查看對應的json文件。