H073.HxGLTF.MonoGame
1.0.1
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package H073.HxGLTF.MonoGame --version 1.0.1
NuGet\Install-Package H073.HxGLTF.MonoGame -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="H073.HxGLTF.MonoGame" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="H073.HxGLTF.MonoGame" Version="1.0.1" />
<PackageReference Include="H073.HxGLTF.MonoGame" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add H073.HxGLTF.MonoGame --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: H073.HxGLTF.MonoGame, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package H073.HxGLTF.MonoGame@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=H073.HxGLTF.MonoGame&version=1.0.1
#tool nuget:?package=H073.HxGLTF.MonoGame&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HxGLTF.MonoGame β GLTF Loader with Quick Rendering
HxGLTF.MonoGame is an extension to HxGLTF, providing a lightweight way to render loaded GLTF/GLB files using MonoGame.
π‘ This is intended for prototyping only. The rendering system is minimal.
For production use, implement your own renderer using the loaded data.
π Whatβs Included
- MonoGame-compatible classes like
GameModel,GameNode, etc. - A simple renderer:
PreImpGameModelRenderer - Optional precompiled shader
- Minimal boilerplate to visualize GLTFs
π Quickstart (Example)
// 1. Initialize the Renderer
var renderer = new PreImpGameModelRenderer(GraphicsDevice);
renderer.LoadPreCompiledEffect(Content); // Optional precompiled shader
// 2. Load the Model
var model = GameModel.From(GraphicsDevice, GLTFLoader.Load("model.glb"));
// 3. (Optional) Play Animation in Update
// model.Play(index);
// 4. Draw the Model in Draw() (with optional shader)
renderer.DrawModel(model, world, view, projection);
// renderer.DrawModel(model, world, view, projection, effect);
π§ͺ Use this for testing or early-stage development.
β Limitations
- Not all GLTF features are supported by the sample renderer
- Indexed meshes may render incorrectly (e.g. Sketchfab models)
- Some models may need to be fixed in Blender
- Designed for understanding and customization, not full game-ready use
πΌ Visual Examples
Basic Animation (Built-in Renderer)
| Single | Multiple |
|---|---|
![]() |
![]() |
Custom Renderer Examples
Rendered manually using HxGLTFβs data
| UV Animations | Atlas Effect |
|---|---|
![]() |
![]() |
π§Ό Fixing Broken Models
Sketchfab models or exported GLBs may have bad mesh indices.
β Fix:
- Open in Blender
- Export again as
.glb
π¦ Installation
dotnet add package H073.HxGLTF.MonoGame
Or in .csproj:
<PackageReference Include="H073.HxGLTF.MonoGame" Version="x.y.z" />
π Related
- HxGLTF (Core Loader)
β Use it if you want full control over your rendering pipeline.
π€ Contact
Discord: sameplayer
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- H073.HxGLTF (>= 1.2.2)
- MonoGame.Framework.DesktopGL (>= 3.8.3)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.



