-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
glTF importer fails on Draco-compressed 2CylinderEngine.gltf from Khronos samples #47822
Comments
Draco is an extension so there's a string that say it is used per file in the json. |
On master branch, 45d3b96 after the new meshoptimizer was merged, this is now a crash (well, assertion failure crash):
Reproduction project: I propose that the assertion failures be removed from meshoptimizer and replaced with a ERR_FAIL type macro. Again, the crash here only affects master branch. This is not a crash on godot 3.x |
An alternative would be to validate all the inputs of:
The loop can continue when vertex_count is zero. |
I can confirm that a glTF 2.0 file exported from Blender 2.93 with compression enabled (in the export dialog's Geometry section) fails to load correctly in 3.3.2. |
Fix plan order:
|
Initial design. If godot doesn't know about the required extension then it aborts the load. |
How much work would it be to integrate support for Draco compression in our glTF importer? Also, is there an external tool that can be used to decompress Draco-compressed glTF files into uncompressed glTF files? This is useful when downloading third-party glTF files you don't have the source of. |
glTF-Tranform, see KhronosGroup/glTF-Blender-IO#252 (comment). |
Can confirm this is still valid on the nearest build to my custom build. |
Godot version:
3.3 RC 8
OS/device including version:
Linux
Issue description:
The Draco-compressed glTF model
2CylinderEngine
from https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/2CylinderEngine/glTF-Draco fails to import in Godot 3.3 RC 8.Several errors are reported about issues with the buffer data, and while the imported scene can be opened, it's completely broken.
Example of error:
It might be that we don't support Draco-compressed glTF files, but if so we need to handle them gracefully by detecting the compression and prevent the engine from trying to import them.
Full log output from an import in 3.3 RC 8 with
--verbose
:Verbose log output
I also tested in the
master
branch, and the same errors seem to be raised (so it wasn't fixed by #34193), and the new meshoptimizer code actually asserts on that scene:Steps to reproduce:
2CylinderEngine.gltf
from theglTF-Draco
folder.Minimal reproduction project:
gltf-draco-2cylinderengine-bug.zip
The text was updated successfully, but these errors were encountered: