https://github.com/vpenades/SharpGLTF
glTF reader and writer for .NET Standard
https://github.com/vpenades/SharpGLTF
3d csharp gltf gltf2 graphics loader
Last synced: 9 months ago
JSON representation
glTF reader and writer for .NET Standard
- Host: GitHub
- URL: https://github.com/vpenades/SharpGLTF
- Owner: vpenades
- License: mit
- Created: 2019-02-02T21:00:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-23T21:52:54.000Z (10 months ago)
- Last Synced: 2025-03-24T09:23:54.732Z (10 months ago)
- Topics: 3d, csharp, gltf, gltf2, graphics, loader
- Language: C#
- Homepage:
- Size: 96.2 MB
- Stars: 494
- Watchers: 19
- Forks: 81
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.nuget.org/packages?q=sharpgltf)
[](https://discord.gg/ecGAbsUDbB)
---
### Overview
__SharpGLTF__ is a 100% .NET Standard library designed to support [Khronos Group glTF 2.0](https://github.com/KhronosGroup/glTF) file format.
The library is divided into these main packages:
|Library|Nuget|Function|
|-|-|-|
|[__SharpGLTF.Core__](src/SharpGLTF.Core/README.md)|[](https://www.nuget.org/packages/SharpGLTF.Core)|Read/Write file support, and low level access to the glTF models.|
|[__SharpGLTF.Runtime__](src/SharpGLTF.Runtime/README.md)|[](https://www.nuget.org/packages/SharpGLTF.Runtime)|Helper classes to simplify gltf model rendering.|
|[__SharpGLTF.Toolkit__](src/SharpGLTF.Toolkit/README.md)|[](https://www.nuget.org/packages/SharpGLTF.Toolkit)|Convenience utilities to help create, manipulate and evaluate glTF models.|
Additionally, there's some optional extension libraries available:
- __SharpGLTF.Ext.Agi__
- [__SharpGLTF.Ext.3DTiles__](src/SharpGLTF.Ext.3DTiles/README.md)
#### Quickstart
A simple example of loading a glTF file and saving it as GLB:
```c#
var model = SharpGLTF.Schema2.ModelRoot.Load("model.gltf");
model.SaveGLB("model.glb");
```
More examples can be found [here](examples) and in the Test project.
#### Appendix
- [Khronos Group glTF-CSharp-Loader](https://github.com/KhronosGroup/glTF-CSharp-Loader)
- [Khronos Group UnityGLTF](https://github.com/KhronosGroup/UnityGLTF)