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

vpenades 7cb579121e actions++ hai 1 ano
.github 7cb579121e actions++ hai 1 ano
build 4f7ba5368e updated nugets hai 1 ano
examples 56e9245e5a moved trimmed app to examples hai 1 ano
src 950eb4884b Fixed Wavefront writing streams not being properly closed. hai 1 ano
tests 3cac7e1f77 test work++ hai 1 ano
.editorconfig c0aed7c82c Preliminar changes to support trimmed assemblies. %!s(int64=3) %!d(string=hai) anos
.gitignore 9918aaff7f Code cleanup %!s(int64=3) %!d(string=hai) anos
LICENSE 9e2e0531f4 Initial commit %!s(int64=7) %!d(string=hai) anos
NuGet.Config a047f8e3f7 Added testAttachment nunit helper %!s(int64=3) %!d(string=hai) anos
README.md b23b5ce225 Update README.md %!s(int64=2) %!d(string=hai) anos
SharpGLTF.ruleset ee789d20f5 Updated nuget packages. %!s(int64=5) %!d(string=hai) anos
SharpGLTF.sln 56e9245e5a moved trimmed app to examples hai 1 ano
stylecop.json 4d29fdd7c1 stylecop change! %!s(int64=7) %!d(string=hai) anos

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