Closed triceam closed 7 years ago
Can you try it out with a smaller obj? I totally agree that 25MB should be quick, but we have some optimization issues in https://github.com/AnalyticalGraphicsInc/gltf-pipeline which this project uses.
@triceam any update here?
Can you try it out with a smaller obj? I totally agree that 25MB should be quick, but we have some optimization issues in https://github.com/AnalyticalGraphicsInc/gltf-pipeline which this project uses.
The speed should be significantly faster once I finish the obj2gltf cleanup and use the preserve
flag in gltf-pipeline.
I have not had an opportunity to try with the latest... I'll have to revist this once I'm done updating the photogrammetry rendering server to the latest.
Fixed in #49
Speeds should improve since gltf-pipeline
optimizations are disabled be default. Also --bypassPipeline
is an available option for the fastest conversion, however this will export the gltf with the KHR_materials_common
extension.
I have a project that generates models using OpenDroneMap, and I'm trying to convert those .obj models to be viewable on the web. I can view the .obj models using meshlab without any issues. When I try to use
obj2gltf
to convert them as part of my workflow inside of a Node.js app, it does nothing. I never get any response from the promise (no success, no error), and no console output. It just hangs. I left it running for about 20 minutes to see if it was just taking a really long time, but finally killed it when nothing happened.My code looks like this:
My output only shows the file names, nothing else:
I assume this is just failing silently - there are no other indications of an error, and no stack trace. The .obj file is about 25 MB, which isn't tiny, but again, it also is not huge so I wouldn't expect it to take this long.