Skip to content
/ fastgltf Public

A modern C++17 glTF 2.0 library focused on speed, correctness, and usability

License

Notifications You must be signed in to change notification settings

spnda/fastgltf

Folders and files

NameName
Last commit message
Last commit date
May 12, 2024
Jun 21, 2024
Jul 25, 2024
Jul 25, 2024
Jun 21, 2024
Jul 25, 2024
Jun 23, 2024
Jun 23, 2024
Feb 26, 2024
Sep 15, 2022
Dec 31, 2023
Jul 25, 2024
Jan 2, 2024
May 15, 2024
May 16, 2024

Repository files navigation

fastgltf

vcpkg conan center CI_x64 workflow status CI_arm workflow status Documentation Status

fastgltf is a speed and usability focused glTF 2.0 library written in modern C++17 with minimal dependencies. It uses SIMD in various areas to decrease the time the application spends parsing and loading glTF data. By taking advantage of modern C++17 (and optionally C++20) it also provides easy and safe access to the properties and data. It is also available as a C++20 named module.

The library supports the entirety of glTF 2.0 specification, including many extensions. By default, fastgltf will only do the absolute minimum to work with a glTF model. However, it brings many additional features to ease working with the data, including accessor tools, the ability to directly write to mapped GPU buffers, and decomposing transform matrices.

To learn more about fastgltf, its features, performance and API you can read the docs.

Examples and real-world usage

You can find some examples in the examples/ directory of this repository on how to use fastgltf in a 3D renderer to load glTF files. Additionally, this is a list of some interesting projects using fastgltf:

  • Fwog: The examples of this modern OpenGL 4.6 abstraction make use of fastgltf.
  • wad2gltf: A WAD to glTF converter
  • Castor3D: A multi-OS 3D engine
  • Raz: A modern & multiplatform 3D game engine in C++17
  • vkguide: A modern Vulkan tutorial

License

The fastgltf library is licensed under the MIT License.


Libraries embedded in fastgltf:

Libraries used in examples and tests:

  • Catch2: Licensed under BSL-1.0.
  • glad: Licensed under MIT.
  • glfw: Licensed under Zlib.
  • glm: Licensed under MIT.