🎨 Godot glTF Vertex Color Converter

Convert Blender custom vertex colors to Godot CUSTOM attributes

🐍 Main Script

Converts Blender's custom vertex color attributes (_COLOR2, _COLOR3, etc.) into TEXCOORD attributes that Godot imports as CUSTOM0-3.

Requirements:

  • Python 3.7 or higher
  • numpy library
pip install numpy

Usage:

python convertGLTF.py your_model.glb

Output: your_model_godot.glb

🔍 GLB Inspector

Inspect your .glb file to see what attributes are present. Useful for debugging export settings.

Usage:

python inspectGLTF.py your_model.glb

Example Output:

================================================== GLB FILE INSPECTION ================================================== 📦 Mesh: Plane Attributes: - POSITION: VEC3, count=81 - NORMAL: VEC3, count=81 - _COLOR2: VEC4, count=81 - _COLOR3: VEC4, count=81
⬇️ Download inspectGLTF.py

📺 Video Tutorial

Watch the full step-by-step tutorial on YouTube:

🎬 Watch on YouTube

📌 Quick Reference

Blender naming: _COLOR2, _COLOR3, _COLOR4, _COLOR5
Godot access: CUSTOM0, CUSTOM1, CUSTOM2, CUSTOM3
Export settings: Enable "Vertex Colors" in glTF export