It seems that Three.js allows loading geometry from OBJ files (Blender, 3DsMax, etc), but is there any support for exporting a Three.js scene into an OBJ file (or any other formats)?
Asked
Active
Viewed 1.5k times
1 Answers
18
By looking extensively at the GitHub repository, I found an OBJ exporter (not shipped with three.js):
var exporter = new THREE.OBJExporter();
exporter.parse(mesh);

Sam
- 2,398
- 4
- 25
- 37
-
3how would you export it with a .mtl texture file? :( – user151496 Jan 28 '16 at 19:02
-
1It should be `exporter.parse(mesh);` not `exporter.parse(geometry);` – LF00 Nov 06 '17 at 05:53
-
THREE.Object3D could be passed to `parse` as of this writing. – Arg0n Jan 15 '19 at 08:13