GLB-3D-Coder: A Tiny 4B Model Generating 3D Assets for Game Engines
Developer ConfidentDinner6648 introduced GLB-3D-Coder, a compact 4B local coding model fine-tuned to write Three.js scenes with GLB export capabilities. This allows users to generate 3D game assets from simple text prompts for direct import into game engines like Godot. This tool represents a creative niche in local AI development by lowering the barrier to creating custom 3D game assets without requiring complex modeling software. It enables independent developers to prototype objects quickly using lightweight, locally run language models. The model is built on Qwen3.5-4B and performs best with English prompts, using specific generation settings like temperature 0.8 and top-p 0.95. While most initial generations succeed, some outputs still require minor code fixes or retries before importing into Godot.
## BACKGROUND
Three.js is a popular JavaScript library used to create and display animated 3D computer graphics in a web browser, while GLB is the binary file format version of glTF that packs 3D models and textures into a single file. Godot is a free, open-source game engine that natively imports GLB and glTF formats for use in 2D and 3D game development.