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

后端 未结 6 1904
臣服心动
臣服心动 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条回答
  •  Happy的楠姐
    2021-02-04 06:01

    Create a Python file named conversion.py with the following content: click here to see it.

    And then run this command in your Terminal:

    python conversion.py -i file.obj -o file.js
    

提交回复
热议问题