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

Vicente Penades 5e53a8d166 WIP scene builder hace 6 años
build 94b58a8285 bumped version hace 6 años
examples 223fd4ae62 Added a programable. VertexProcessor mechanism that can be used either to validate or sanitize vertices (WIP) hace 6 años
src 5e53a8d166 WIP scene builder hace 6 años
tests addda0c17a fleshing out SceneBuilder... hace 6 años
.gitignore 9e2e0531f4 Initial commit hace 6 años
LICENSE 9e2e0531f4 Initial commit hace 6 años
README.md 59cb84a770 Updated Nugets package hace 6 años
SharpGLTF.ruleset ab63178d7b hace 6 años
SharpGLTF.sln 69451d6d63 improving skinning API hace 6 años
stylecop.json 4d29fdd7c1 stylecop change! hace 6 años

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