I have 3D object file (ex:- car.obj) and want to load it with ThreeJS on a browser
Use the obj2three.js file for the conversion as follows
- NodeJs installed
- A 3D file (.obj)
Once we have the required material and software installed, open the command line and use the following command. You need to first be in the folder where your 3D object file resides.
cd <path to your .obj file>
node <path to the obj2three.js file> <object file>
Once you have the JSON file you can use the " THREE.ObjectLoader() " to load the file on a browser