Last active
November 3, 2020 11:26
-
-
Save albisserAdrian/f98f82b70b5eee97791d75a7feaf48ad to your computer and use it in GitHub Desktop.
Revisions
-
albisserAdrian revised this gist
Nov 3, 2020 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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` -
albisserAdrian revised this gist
Nov 3, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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` For FBX file run `node -r esm utils/converters/fbx2three.js model.fbx` -
albisserAdrian revised this gist
Nov 3, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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` -
albisserAdrian revised this gist
Nov 3, 2020 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,14 @@ # 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` -
albisserAdrian created this gist
Nov 3, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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`