How to convert object to json file for three.js model loader

后端 未结 6 1822
臣服心动
臣服心动 2021-02-04 05:41

I am building a browser game with three.js and I want to load a model from Maya 2013 into my scene. I have exported the model as an obj file.

Now I need to

6条回答
  •  -上瘾入骨i
    2021-02-04 06:08

    If you don't want to use blender, mrdoob(made threejs) has a simple python script to convert obj to json. Just run --this script-- in terminal like so:

    python convert_obj_three.py -i infile.obj -o outfile.js
    

提交回复
热议问题