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

Vicente Penades d602cf364c fixed small difference between vector3 and morph il y a 6 ans
build 94b58a8285 bumped version il y a 6 ans
examples 223fd4ae62 Added a programable. VertexProcessor mechanism that can be used either to validate or sanitize vertices (WIP) il y a 6 ans
src a8f8bdc96f Wrapping up animation curve editor... il y a 6 ans
tests d602cf364c fixed small difference between vector3 and morph il y a 6 ans
.gitignore 9e2e0531f4 Initial commit il y a 7 ans
LICENSE 9e2e0531f4 Initial commit il y a 7 ans
README.md 59cb84a770 Updated Nugets package il y a 6 ans
SharpGLTF.ruleset ab63178d7b il y a 6 ans
SharpGLTF.sln 69451d6d63 improving skinning API il y a 6 ans
stylecop.json 4d29fdd7c1 stylecop change! il y a 7 ans

README.md


Overview

SharpGLTF is a NetStandard 2.0, .NET library designed to support Khronos Group glTF 2.0 file format.

The aim of this framework is:

  • To be able to create, manipulate, load and save glTF2 documents.
  • To provide a safe and easy to use high level API to produce 3D assets.

The current status of the library is preview alpha, but, for some use cases it is already usable.

Nuget Packages

Quickstart

A simple example of loading a glTF file and saving it as GLB:

var model = Schema2.ModelRoot.Load("model.gltf");
model.SaveGLB("model.glb");

More examples can be found here and in the Test project.

Design

The framework is divided in two packages:

  • SharpGLTF.Core provides the core glTF2 schema implementation, read & write operations, and a low level API for direct document access.
  • SharpGLTF.Toolkit provides a high level API over the Core package, adding convenient extensions and utilities to help creating meshes, materials and scenes.

Appendix