-
Download and install Node.js
-
Download three.js
-
Open in a text editor the
<your threejs root folder >/utils/converters/fbx2three.js
file -
At the top of the file add the following line
import * as THREE from "../../build/three.module.js";
-
Save and close.
-
Open PowerShell or your preferred command line tool.
-
Inside the command line go to the root three.js folder
cd <your threejs root folder>
-
Install all the dependencies
npm install
-
Install the esm package
npm install esm
-
For OBJ file run
node -r esm utils/converters/obj2three.js model.obj
, for FBX file runnode -r esm utils/converters/fbx2three.js model.fbx
Last active
November 3, 2020 11:26
-
-
Save albisserAdrian/f98f82b70b5eee97791d75a7feaf48ad to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment