https://github.com/khronosgroup/gltf-csharp-loader
C# Reference Loader for glTF
https://github.com/khronosgroup/gltf-csharp-loader
Last synced: about 1 year ago
JSON representation
C# Reference Loader for glTF
- Host: GitHub
- URL: https://github.com/khronosgroup/gltf-csharp-loader
- Owner: KhronosGroup
- License: other
- Created: 2017-02-27T14:31:07.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T16:44:37.000Z (over 2 years ago)
- Last Synced: 2025-05-07T10:17:49.200Z (about 1 year ago)
- Language: C#
- Size: 686 KB
- Stars: 230
- Watchers: 37
- Forks: 65
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
This is a C# reference loader for glTF. It's as simple to use as `Interface.LoadModel("PathToModel.gltf")`. You can use this loader in your project by importing the "glTF2Loader" NuGet package. Additional examples can be found in the gltfLoaderUnitTests project.
## Build Instructions
### Prerequisites
This solution requires access to the glTF schema to compile and the sample models to test. It assumes that the glTF and glTF-Sample-Models repos have been cloned under the same root directory that the glTF-CSharp-Loader repo was cloned.
```
repos
+-- glTF
| +-- README.md
+-- glTF-CSharp-Loader
| +-- README.md
+-- glTF-Sample-Models
| +-- README.md
```
### Building
To build the project, load the CSharp.sln solution. Click "Start". This will build glTFLoader_Shared, GeneratorLib, and Generator. It will then run the Generator. The generator reads the .spec files defining the glTF standard and generates a set of classes that will be used as the schema for loading your models. The glTFLoader project can now be built. You will need glTFLoader.dll and glTFLoader_shared.dll in order to use the loader in any subsequent project.