{"id":13731643,"url":"https://github.com/code4game/libgltf","last_synced_at":"2025-05-08T05:30:31.631Z","repository":{"id":54232910,"uuid":"103149835","full_name":"code4game/libgltf","owner":"code4game","description":"glTF 2.0 parser/loader for C++17, supports many extensions likes `KHR_draco_mesh_compression`, `KHR_lights_punctual`, `KHR_materials_clearcoat`, and more.","archived":false,"fork":false,"pushed_at":"2024-09-03T21:35:25.000Z","size":18223,"stargazers_count":74,"open_issues_count":2,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-14T22:35:34.555Z","etag":null,"topics":["animation","draco","gltf","mesh","morph","parser","skeleton"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code4game.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"c4gio","custom":"https://c4gio.itch.io/"}},"created_at":"2017-09-11T14:59:04.000Z","updated_at":"2024-11-13T03:39:38.000Z","dependencies_parsed_at":"2024-11-14T22:32:21.282Z","dependency_job_id":"7ebfcd66-4d46-47da-94a1-5d906abd3890","html_url":"https://github.com/code4game/libgltf","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4game%2Flibgltf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4game%2Flibgltf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4game%2Flibgltf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code4game%2Flibgltf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code4game","download_url":"https://codeload.github.com/code4game/libgltf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253008323,"owners_count":21839627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","draco","gltf","mesh","morph","parser","skeleton"],"created_at":"2024-08-03T02:01:34.691Z","updated_at":"2025-05-08T05:30:31.616Z","avatar_url":"https://github.com/code4game.png","language":"C++","readme":"# libgltf\n\n[![glTF status](https://img.shields.io/badge/glTF-2%2E0-green.svg?style=flat)](https://github.com/KhronosGroup/glTF)\n[![libgltf document](https://readthedocs.org/projects/libgltf/badge/?version=latest)](http://libgltf.rtfd.io/)\n[![visit milestones](https://img.shields.io/badge/visit-milestones-blue.svg?style=flat)](https://github.com/code4game/libgltf/milestones)\n\n[![build](https://github.com/code4game/libgltf/workflows/build/badge.svg)](https://github.com/code4game/libgltf/actions?query=workflow%3Abuild)\n[![Coverage status from coveralls](https://coveralls.io/repos/github/code4game/libgltf/badge.svg?branch=master)](https://coveralls.io/github/code4game/libgltf?branch=master)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/5480b79467244c528a22defcf1fd9c4f)](https://www.codacy.com/gh/code4game/libgltf/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=code4game/libgltf\u0026amp;utm_campaign=Badge_Grade)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/code4game/libgltf.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/code4game/libgltf/context:python)\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcode4game%2Flibgltf.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcode4game%2Flibgltf?ref=badge_shield)\n[![CII best practices](https://bestpractices.coreinfrastructure.org/projects/1434/badge)](https://bestpractices.coreinfrastructure.org/projects/1434)\n[![support](https://img.shields.io/badge/support-buy%20a%20cup%20of%20coffee-orange.svg?style=flat)](https://c4gio.itch.io/libgltf-ue4)\n\nThe project includes a generator that can generate codes by glTF 2.0 JSON schema.\n\nIt is used in [glTFForUE4](https://github.com/code4game/glTFForUE4).\n\n## Features\n\n* [glTF 2.0]\n* Load the gltf/embedded/glb file\n* This is a static library\n* Cross platform\n* C++17\n* Supports the Unicode and UTF8\n* Supports some extensions\n  * `KHR_draco_mesh_compression` - [Google's Draco]\n  * `KHR_lights_punctual`\n  * `KHR_materials_clearcoat`\n  * `KHR_materials_emissive_strength`\n  * `KHR_materials_ior`\n  * `KHR_materials_iridescence`\n  * `KHR_materials_sheen`\n  * `KHR_materials_specular`\n  * `KHR_materials_transmission`\n  * `KHR_materials_unlit`\n  * `KHR_materials_variants`\n  * `KHR_materials_volume`\n  * `KHR_texture_transform`\n  * `ADOBE_materials_thin_transparency`\n  * `AGI_articulations`\n  * `AGI_stk_metadata`\n  * `CESIUM_primitive_outline`\n  * `EXT_lights_ies`\n  * `EXT_mesh_gpu_instancing`\n  * `EXT_texture_webp`\n  * `FB_geometry_metadata`\n  * `MSFT_lod`\n  * `MSFT_texture_dds`\n* Platforms\n  * Windows\n    * Win32 (win32)\n    * x64 (win64)\n  * Linux (linux)\n  * macOS (macos)\n  * Android\n    * armeabi-v7a\n    * armeabi-v7a-with-neon\n    * arm64-v8a\n    * x86\n    * x86_64\n  * iOS\n    * iOS (iphoneos)\n    * watchOS (watchos)\n    * simulator\n\n## Getting Started\n\n1. Update the submodule\n    \u003e Run `git submodule update --init`\n2. Generate the project by [CMake]\n    \u003e Run `cmake -G \"[GENERATOR BY YOUR SYSTEM]\" [LIBGLTF FOLDER]`\n3. Build the project and generate the static library `libgltf.lib` or `libgltf.a`\n4. Include `libgltf/libgltf.h` in your project.\n5. Link the static library `libgltf.lib` or `libgltf.a` in your project.\n    \u003e You have to link the static library `draco.lib` or `draco.a` with your project, if you want to support the [Google's Draco].\n    \u003e And you can find the draco in the external folder.\n\nCode example:\n\n```cpp\nstd::shared_ptr\u003clibgltf::IglTFLoader\u003e gltf_loader = libgltf::IglTFLoader::Create(/*a function to load the file by std::istream*/);\nstd::shared_ptr\u003clibgltf::SGlTF\u003e loaded_gltf = gltf_loader-\u003eglTF().lock();\nif (!loaded_gltf)\n{\n    printf(\"failed to load your gltf file\");\n}\n```\n\n## License\n\nThis software is released under the MIT license.\n\n[glTF 2.0]: https://www.khronos.org/gltf/\n[Google's Draco]: https://github.com/google/draco\n[CMake]: https://cmake.org/\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcode4game%2Flibgltf.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcode4game%2Flibgltf?ref=badge_large)\n","funding_links":["https://patreon.com/c4gio","https://c4gio.itch.io/"],"categories":["Graphics"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4game%2Flibgltf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode4game%2Flibgltf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode4game%2Flibgltf/lists"}