H073.HxGLTF.MonoGame 1.0.1

Prefix Reserved
There is a newer version of this package available.
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" />
                    
Directory.Packages.props
<PackageReference Include="H073.HxGLTF.MonoGame" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=H073.HxGLTF.MonoGame&version=1.0.1
                    
Install as a Cake Tool

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
Idle Walk

Custom Renderer Examples

Rendered manually using HxGLTF’s data

UV Animations Atlas Effect
Conveyor Lights

🧼 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" />


🀝 Contact

Discord: sameplayer

Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 127 3/16/2026
1.3.0 105 3/15/2026
1.0.1 183 5/9/2025
1.0.0 217 5/6/2025