#gltf #csharp #library #3d #format #decoder #encoder #gamedev #asset #pipeline

vpenades 8aef7d5999 temporarily disabled a sample model test il y a 2 ans
.github 01fb119b67 yml++ il y a 2 ans
build fc88c592ea nugets++ il y a 2 ans
examples 9cd7903c9c added AOT compilation to demo il y a 2 ans
src 31fbf6b5b9 removing warnings... il y a 2 ans
tests 8aef7d5999 temporarily disabled a sample model test il y a 2 ans
.editorconfig c0aed7c82c Preliminar changes to support trimmed assemblies. il y a 3 ans
.gitignore 9918aaff7f Code cleanup il y a 3 ans
LICENSE 9e2e0531f4 Initial commit il y a 7 ans
NuGet.Config a047f8e3f7 Added testAttachment nunit helper il y a 3 ans
README.md b23b5ce225 Update README.md il y a 2 ans
SharpGLTF.ruleset ee789d20f5 Updated nuget packages. il y a 5 ans
SharpGLTF.sln 516e3be4cb added project back il y a 2 ans
stylecop.json 4d29fdd7c1 stylecop change! il y a 7 ans

README.md

GitHub Nuget (with prereleases)

Overview

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.

Nuget Packages

|Package|Version| |-|-| |SharpGLTF.Core|Nuget (with prereleases)| |SharpGLTF.Toolkit|Nuget (with prereleases)|

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.

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