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

Vicente Penades 071b0fa453 refactored normals and tangents generation code. il y a 6 ans
.github 37cf323cc7 WIP: tangent space generation support il y a 6 ans
build 9e3b0c145a Renamed ValueTuple's Item1, Item2, etc to proper names. il y a 6 ans
examples eb766bed4c SpecularGlossiness precedes MetallicRoughness il y a 6 ans
src 071b0fa453 refactored normals and tangents generation code. il y a 6 ans
tests 09e132e881 WIP: more improvements on tangents generation; plus aditional tests. il y a 6 ans
.gitignore 9e2e0531f4 Initial commit il y a 7 ans
Analyzers.targets 9f30c75584 Updated nugets. il y a 6 ans
LICENSE 9e2e0531f4 Initial commit il y a 7 ans
README.md 862497ea58 Update README.md il y a 6 ans
SharpGLTF.ruleset 64ad92cf3b improved skinning transform il y a 6 ans
SharpGLTF.sln 0d6d1e349b Tests: Moved test files download out of the tests, and added tests for both Net471 and netcoreapp2.2 il y a 6 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