文件准备:
obj、mtl
Three.js
针对Python2 使用文件 convert_obj_three.py
针对Python2 使用文件 convert_obj_three_for_python3.py
要求:
1.电脑安装Python2.7或者Python3更高版本
2.obj(有的模型有mtl和贴图文件)和convert_obj_three.py(或者convert_obj_three_for_python3.py)放在同一文件夹。
步骤:
1) 打开cmd。
2) cmd到指定的文件目录下。
3) 输入python convert_obj_three_for_python3.py -i 模型名称.obj -i新的文件名称.js
(如果电脑安装的是python2.7版本,输入convert_obj_three.py -i 模型名称.obj -i新的文件名称.js)
4)回车,等待结果。