OSMBuildings / OBJ2GeoJSON

Converts OBJ files to 3D renderable GeoJSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

weird conversion issue

juliangums opened this issue · comments

Looks like the model gets messed up somehow.
here the model as it appears in and online viewer. Looks very much like in SketchUp:
3dviewer

now loaded by mapbox after conversion
on map

What am I doing wrong?

You could check whether your OBJ file is triangulated.
Otherwise, without sample files and/or a test application there is very little chance of help.

Just using the normal Mapbox GL

test.zip

What I thought, faces are not triangulated. You need to do that first.
Usually when saving an OBJ file.

That did work! Amazing! Dankeschön!

Sry to bother you again, but I'm stuck. Any idea why this triangulated file takes infinitely long to convert?
model.zip

This time it's hard to tell.
Perhaps it is about size, in terms of number of vertices and also extent of contained meshes.
Could you try to split this into smaller chunks and retest?