1
votes

I'm having consistent issues when trying to convert an .obj file to js format that THREE.js can read.

I go to http://threejs.org/editor and import a .obj model and then click file and then "Export Geometry" but nothing happens when it's a file that I imported. If i create a simple cube in the editor it will export fine.

I downloaded the blender threejs addon. Same for that, when I import a .obj file to blender and then export it gives me an error that points to the THREE.js addon.

For every model I've imported it does not export.

How come some models can export geometries properly and others fail?

I've also tried using some online editors that support threejs but they shade out the THREEJS Export Geometry for my models and only allow me to export threejs scene which with my testing does not work propely.

What am I doing wrong?

Thanks!

Edit: I've also tried the Python converter and errors also occur. I used both Python 3x and 2x.

1
I've utilized all these methods with success. Could we see examples of the models your failing on? My first suspect might be are they triangulated or quads? - Darryl_Lehmann
@Darryl_Lehmann Here is a model I tried and it did not work: tf3dm.com/3d-model/portal-turret-70087.html I upload the .obj from that download to the threejs online editor and it doesn't allow me to export geometry. When I click the button it does nothing. Thanks for the help! - novs12
@Darryl_Lehmann Got it working, thanks for your support though! - novs12
glad it worked out, I do believe you can mark your own question correct below :) - Darryl_Lehmann

1 Answers

2
votes

Problem solved with the threejs.org/editor

Turns out I needed to select the model in the scene first and then click export geometry.

Stupid mistakes can be a pain sometimes!