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

[rmodel] Does raylib support the Draco compression of glb format? #3051

Closed
AllenDang opened this issue May 10, 2023 · 6 comments
Closed

[rmodel] Does raylib support the Draco compression of glb format? #3051

AllenDang opened this issue May 10, 2023 · 6 comments

Comments

@AllenDang
Copy link

Issue description

As title states.

@raysan5
Copy link
Owner

raysan5 commented May 10, 2023

raylib uses the outstanding cgltf library for gltf/glb loading and as stated on its README, yes, it supports Draco mesh compression extension but...

KHR_draco_mesh_compression (requires a library like [Google's Draco](https://github.com/google/draco) for decompression though)

@raysan5 raysan5 closed this as completed May 10, 2023
@AllenDang
Copy link
Author

AllenDang commented May 10, 2023

@raysan5 I checked cgltf lib, it didn't mention how to enable the draco support, I tried to define a header as #define CGLTF_EXTENSION_FLAG_DRACO_MESH_COMPRESSION and added google/draco, but still doesn't work.
How to enable it?

@raysan5
Copy link
Owner

raysan5 commented May 10, 2023

@AllenDang I'm afraid I have no idea, I never used it... I don't know if it requires calling some special function to load Draco meshes, as per my understanding, it should be internal to cgltf to process them... Maybe you can ask cgltf author for details?

I'm just updating the library on raylib with latest changes but I can't see anything related to Draco loading changes.

@AllenDang
Copy link
Author

@raysan5 Sure, I will open an issue in cgltf to ask for it.

@AllenDang
Copy link
Author

@raysan5 I asked in cgltf about enable draco compression, seems it's not that easy, need to inject draco decoompression into the gltf parse.

jkuhlmann/cgltf#215

@raysan5
Copy link
Owner

raysan5 commented May 18, 2023

@AllenDang Thanks for the info! It seems the integration should happen at cgltf side som I'm closing the related issue on raylib. #3063

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

No branches or pull requests

2 participants