-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conversion error #47
Comments
I believe this is because you have a vertex normal that has a magnitude of 0 on line 13. |
Perhaps the converter could do something more useful than throw an uncaught DeveloperError? Can it explain to the user what problem was found, and where? Better yet, can't the converter just print out a warning and work around the problem with UNIT_Z or something? Real-world data is lumpy and has minor problems sprinkled around. Ordinary users want tools that can tolerate a few bad vectors. You could print a warning, you could put UNIT_Z or UNIT_Y, or you could even copy the zero-length normal through to the output along with the warning. Sure the model won't be perfect but the user will appreciate having it much more than a stack trace. The user would load the bad model into something else, see the misdirected normal vectors, and go fix their model instead of filing bug reports like this one. OK, rant over now, thanks for reading this far 😄 |
@emackey This issue has been popping up and we have an issue open for this CesiumGS/gltf-pipeline#242. I think this should get fixed in the near future. |
This converts correctly once #49 is in, and mostly in part due to this fix: CesiumGS/cesium#5032 |
Fixed in #49 |
I've installed obj2gltf v0.1.7 using
npm install -g obj2gltf
.My node version is v7.5.0.
When I try to convert my file wall_and_door.obj, which you can find at https://github.com/andyli/aframe-test/tree/1fe0f0cc8af332b9a8c7880437a8678e99e3b6e2/wall_and_door, there is an error:
The text was updated successfully, but these errors were encountered: