/SharpGLTF

glTF reader and writer for .NET Standard

Primary LanguageC#MIT LicenseMIT

GitHub Nuget (with prereleases) Join the chat at https://discord.gg/ecGAbsUDbB

Overview

SharpGLTF is a 100% .NET Standard library designed to support Khronos Group glTF 2.0 file format.

The library is divided into these main packages:

Library Nuget Function
SharpGLTF.Core Nuget (with prereleases) Read/Write file support, and low level access to the glTF models.
SharpGLTF.Runtime Nuget (with prereleases) Helper classes to simplify gltf model rendering.
SharpGLTF.Toolkit Nuget (with prereleases) Convenience utilities to help create, manipulate and evaluate glTF models.

Additionally, there's some optional extension libraries available:

Quickstart

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.

Appendix