Okay
  Public Ticket #1821066
Converting OBJ to js
Closed

Comments

  • Vineet started the conversation

    Hi, I am trying to convert my obj model to .js format. I have tried the three.js editor and clara.io but the file generated by both are sort of different from the files you are using. Can you tell me how do you convert the models?

    Thanks

  •  14
    Nick replied

    Hey Vineet,

    Can you send over the obj file to us and we'll convert it for you. We use a little python script that does the jobsmile.png


    aetherthemes

  • Vineet replied

    Hi Nick,

    I haven't yet finalized the model I will be using. Could you please share the python script with me so that I can do it at my end? 

    Thanks

  •  14
    Nick replied

    I'm attaching the script here.

    Once you unzip, put the script and your obj file in the same directory, and then through Terminal navigate to that directory and just type:

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

    Where the infile.obj is the name of your obj file and outfile.js is the desired name of your js file.

    Attached files:  convert_obj_three.zip


    aetherthemes

  • Vineet replied

    Thanks a lot Nick :)