mgsx-dev / gdx-gltf

GLTF 2.0 3D format support and PBR shader implementation for LibGDX
Apache License 2.0
214 stars 50 forks source link

Add support for sparse accessors #120

Closed nullEuro closed 7 months ago

nullEuro commented 9 months ago

The blender exporter has started to produce GLTF using the sparse feature (I can provide a real example if interested). This breaks the loading, so I decided to add support.

I added two sample models as test cases. They did not load correctly previously, now they do. I ran ImportGLTFTest for all samples and did not detect any crashes. I also tested the new library with my own model that has animations, texture and so on. Still seems to work fine.

MikOfClassX commented 9 months ago

Cool. You may look at our fork too: https://github.com/mgsx-dev/gdx-gltf/compare/master...MikOfClassX:gdx-gltf:classx We consolidated gltf loading, shadow rendering and concurrency.. Plus some more features and fixes that never found a place in the upstream.

MikOfClassX commented 8 months ago

Mark, it may be interesting to share views/code if you want: @mikofclassx on discord, twitter..

MikOfClassX commented 8 months ago

Hi @nullEuro. We merged your PR and it's ok. Thanks.

mgsx-dev commented 7 months ago

Thank you for your contribution :+1: