Fix extension loading and add image stream open #1

Merged
themixedupstuff merged 6 commits from JoeTwizzle/ReFuel.Gltf:master into master 2026-10-24 15:05:09 +02:00
Contributor

This PR makes extensions visible by checking for the right Json key and marking the respective GltfCollection as an extension collection.
It also adds stream open functionality for images without a URI such as when embedded in a .glb file.
In order to support this I had to make changes to the StreamWrapper class.
Updated to net10.0
Added KhrMaterialsEmissiveStrength in new extensions folder. (Not enabled by default)
Lastly the IExtensionProvider interface was changed in order to provide context about the parent type being parsed to the provider. This is needed for e.g. the KhrLightsPunctual extension.

This PR makes extensions visible by checking for the right Json key and marking the respective GltfCollection as an extension collection. It also adds stream open functionality for images without a URI such as when embedded in a .glb file. In order to support this I had to make changes to the StreamWrapper class. Updated to net10.0 Added KhrMaterialsEmissiveStrength in new extensions folder. (Not enabled by default) Lastly the IExtensionProvider interface was changed in order to provide context about the parent type being parsed to the provider. This is needed for e.g. the KhrLightsPunctual extension.
JoeTwizzle added 6 commits 2026-10-24 14:48:03 +02:00
Owner

Thank you for taking the time to work on parts of the project I had not had the chance to test/debug. I'm merging this as is. I will be writing unit tests to diagnose things further. Also, since I have no LICENCE.md, I think we can agree on the terms of the MIT license. I will create it very soon.

Thank you for taking the time to work on parts of the project I had not had the chance to test/debug. I'm merging this as is. I will be writing unit tests to diagnose things further. Also, since I have no LICENCE.md, I think we can agree on the terms of the MIT license. I will create it very soon.
themixedupstuff merged commit e4e29a1907 into master 2026-10-24 15:05:09 +02:00
Sign in to join this conversation.