HomeJavaModsMCglTF
MCglTF

MCglTF is a 3D model loader library which load glTF format file and prepare the required techniques to render the model for Minecraft Modding enviroment.
Various features from glTF spec are available, but still remain a good compatibility and performance.

github.com/TimLee9024/MCglTF-Example

What is glTF?

The following image gives an overview of glTF:

glTF overviewFrom github.com/javagl/gltfOverview/

Japanese translation by Takuto Takahashi

More detail github.com/KhronosGroup/glTF/

Usages

The example codes for rendering Block, Item, and Entity

Features

 

Frequently Asked Question

Q. Why my texture for my model does not show up?
A. You need to defined material inside "extras" of "materials" to link your texture. For more details please visit wiki page.

Q. Why two animations cannot control translation/rotation/scale/weight in same node at the same time and cause one of the animation not playing?
A. There is no animation blending technique defined in glTF specification, so the animations created by GltfAnimationCreator does not support animation blending too. You need to create your own animation processor based on your scenario.

Q. How to apply my custom processing to the model like custom material(e.g. apply player skin) or create special OpenGL commands for specified node?
A. For more advanced way to generate OpenGL commands for glTF model, you can override and return false to isReceiveSharedModel(GltfModel, GltfRenderDatas) in your IGltfModelReceiver. This allow you to create your custom RenderedGltfModel based on supplied GltfModel. (Beware to add your OpenGL objects like VBO, VAO, Texture, etc to GltfRenderDatas for deletion during refresh resource.)

 

Credit

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MCglTF is a free Minecraft Java mod. Compatible with Minecraft 1.19.3, 1.19.2, 1.18.2, 1.16.5 and newer. Downloaded 834,102 times (via CurseForge). Download it and open it directly in the game.

Explore more