Skip to content
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

Load glTF #842

Merged
merged 1 commit into from
May 20, 2019
Merged

Load glTF #842

merged 1 commit into from
May 20, 2019

Conversation

wbrbr
Copy link
Contributor

@wbrbr wbrbr commented May 18, 2019

This PR adds support for the glTF 2.0 file format.

Some features:

  • works with .gltf and .glb
  • works with embedded (base64) or external textures
  • loads the albedo/diffuse texture
  • works with multiple mesh per model and multiple primitives per model

Some restrictions (not exhaustive):

  • only triangle meshes
  • it doesn't support node hierarchies or transforms
  • it only loads the diffuse texture. It wouldn't be too hard to make it load other textures (normal, roughness/metalness) if you want to.
  • it only supports unsigned short for indices (no byte/unsigned int) and float for texture coordinates (no byte/unsigned short). All the models I have seen loaded correctly but it might still be an issue

Sponza: (there are some rendering artifacts but it loads correctly)
screenshot000

Duck:
screenshot001

@raysan5
Copy link
Owner

raysan5 commented May 19, 2019

@wbrbr this is an amazing addition! Thank you vey much! I'm merging it as soon as possible! :D

@Leinnan
Copy link

Leinnan commented May 20, 2019

How about anims?

@raysan5 raysan5 merged commit 9a52c71 into raysan5:master May 20, 2019
@raysan5
Copy link
Owner

raysan5 commented May 20, 2019

@Leinnan supporting animations requires some extra work... maybe in a future...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants