SharpGLTF is a 100% .NET Standard library designed to support Khronos Group glTF 2.0 file format.
The library is divided into two main packages:
- SharpGLTF.Core provides read/write file support, and low level access to the glTF models.
- SharpGLTF.Toolkit provides convenient utilities to help create, manipulate and evaluate glTF models.
Package | Version |
---|---|
SharpGLTF.Core | |
SharpGLTF.Toolkit |
The library is still in preview status because the APIs are still subject to change from version to version, but most of the features are already completed and heavily tested, so I believe the code is mature enough to be used in production.
A simple example of loading a glTF file and saving it as GLB:
var model = SharpGLTF.Schema2.ModelRoot.Load("model.gltf");
model.SaveGLB("model.glb");
More examples can be found here and in the Test project.