Skip to content

Instantly share code, notes, and snippets.

@albisserAdrian
Last active November 3, 2020 11:26
Show Gist options
  • Select an option

  • Save albisserAdrian/f98f82b70b5eee97791d75a7feaf48ad to your computer and use it in GitHub Desktop.

Select an option

Save albisserAdrian/f98f82b70b5eee97791d75a7feaf48ad to your computer and use it in GitHub Desktop.

Revisions

  1. albisserAdrian revised this gist Nov 3, 2020. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions 3d-to-json.md
    Original file line number Diff line number Diff line change
    @@ -13,5 +13,4 @@
    7. Inside the command line go to the root three.js folder `cd <your threejs root folder>`
    8. Install all the dependencies `npm install`
    9. Install the esm package `npm install esm`
    10. For OBJ file run `node -r esm utils/converters/obj2three.js model.obj`
    For FBX file run `node -r esm utils/converters/fbx2three.js model.fbx`
    10. For OBJ file run `node -r esm utils/converters/obj2three.js model.obj`, for FBX file run `node -r esm utils/converters/fbx2three.js model.fbx`
  2. albisserAdrian revised this gist Nov 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 3d-to-json.md
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,4 @@
    8. Install all the dependencies `npm install`
    9. Install the esm package `npm install esm`
    10. For OBJ file run `node -r esm utils/converters/obj2three.js model.obj`
    11. For FBX file run `node -r esm utils/converters/.js model.fbx`
    For FBX file run `node -r esm utils/converters/fbx2three.js model.fbx`
  3. albisserAdrian revised this gist Nov 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 3d-to-json.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@


    6. Open PowerShell or your preferred command line tool.
    7. Inside the commamd line go to the root three.js folder `cd <your threejs root folder>`
    7. Inside the command line go to the root three.js folder `cd <your threejs root folder>`
    8. Install all the dependencies `npm install`
    9. Install the esm package `npm install esm`
    10. For OBJ file run `node -r esm utils/converters/obj2three.js model.obj`
  4. albisserAdrian revised this gist Nov 3, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion 3d-to-json.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,14 @@
    #Convert OBJ and FBX models to JSON using Three.JS
    # Convert OBJ and FBX models to JSON using Three.JS

    1. Download and install [Node.js](https://nodejs.org/en/)
    2. Download [three.js](https://github.com/mrdoob/three.js)


    3. Open in a text editor the `<your threejs root folder >/utils/converters/fbx2three.js` file
    4. At the top of the file add the following line `import * as THREE from "../../build/three.module.js";`
    5. Save and close.


    6. Open PowerShell or your preferred command line tool.
    7. Inside the commamd line go to the root three.js folder `cd <your threejs root folder>`
    8. Install all the dependencies `npm install`
  5. albisserAdrian created this gist Nov 3, 2020.
    15 changes: 15 additions & 0 deletions 3d-to-json.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #Convert OBJ and FBX models to JSON using Three.JS

    1. Download and install [Node.js](https://nodejs.org/en/)
    2. Download [three.js](https://github.com/mrdoob/three.js)

    3. Open in a text editor the `<your threejs root folder >/utils/converters/fbx2three.js` file
    4. At the top of the file add the following line `import * as THREE from "../../build/three.module.js";`
    5. Save and close.

    6. Open PowerShell or your preferred command line tool.
    7. Inside the commamd line go to the root three.js folder `cd <your threejs root folder>`
    8. Install all the dependencies `npm install`
    9. Install the esm package `npm install esm`
    10. For OBJ file run `node -r esm utils/converters/obj2three.js model.obj`
    11. For FBX file run `node -r esm utils/converters/.js model.fbx`