You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One sample extension is to check the glTF requirements. For example, less than N triangles; no textures > 2048. We can implement this extension so that it returns a null node if failing. Error data is stored in the extension.
Describe the project you are working on
Godot Engine and a 3D VR game
Describe the problem or limitation you are having in your project
The GLTFDocument is starting to get large and it's difficult to add functionality.
See also moving GLTFDocument to core #3273
Describe the feature / enhancement and how it helps to overcome the problem or limitation
I propose adding a Ref<GLTFExtension> system so we can start moving code from Ref<GLTFDocument> to extensions.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Worked with @humbletim and @lyuma.
Reference https://github.com/KhronosGroup/glTF-Blender-IO/blob/b8767c9b122cc504c6828edc3f84130469e89392/example-addons/example_gltf_extension/readme.md
GLTFDocumentExtensions
Add hook functions.
If this enhancement will not be used often, can it be worked around with a few lines of script?
GLTF2 support can be difficult and making hooks can help others. GLTF Extensions is not a few lines.
Is there a reason why this should be core and not an add-on in the asset library?
GLTFDocument is in core so it can't be easily modified by an addon.
The text was updated successfully, but these errors were encountered: