blender-game-assets

Generates game-ready 3D models from images using Hunyuan3D and Blender, then exports GLB assets for web games.

Updated Jul 18, 2026
One-click install
npx skills add https://github.com/devlitus/space-flight---combat-simulator --skill blender-game-assets-devlitus
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: blender-game-assets
Source: https://github.com/devlitus/space-flight---combat-simulator/tree/main/.codex/skills/blender-game-assets
Command: npx skills add https://github.com/devlitus/space-flight---combat-simulator --skill blender-game-assets-devlitus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning a reference image into a usable in-game 3D model involves many fragile steps — AI generation, mesh cleanup, orientation fixes, export, and engine integration — where a single wrong order of operations can destroy the model. This Skill documents a proven end-to-end pipeline with all known pitfalls marked, so you avoid costly trial and error. ## Core Features & Use Cases - Image-to-3D Generation: Calls a local Hunyuan3D server through the Blender MCP addon to produce textured models from reference images. - Mesh Cleanup & Orientation: Welds duplicate vertices before deleting disconnected islands, and applies a correct 180° world-matrix rotation so characters face away from the camera. - Game Integration: Exports GLB to versioned assets and public folders, loads models in Babylon.js with primitive fallbacks, and scales them using real bounding boxes. - Use Case: You need a new spaceship or character model for your browser game. Provide a concept image, and follow the pipeline to generate, clean, orient, export, and verify the model in-game with a real visual test. ## Quick Start Use the blender-game-assets skill to generate a textured 3D model from my reference image and integrate it into the game as a GLB asset.

Frequently Asked Questions about blender-game-assets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a 3D model from an image with Blender?▼

Run a local Hunyuan3D server with texturing enabled, connect the Blender MCP addon, and call generate_hunyuan3d_model with an absolute image path. Generation takes about 60 seconds and imports the textured model directly into Blender.

How to clean up AI-generated meshes in Blender?▼

First weld vertices with mesh.remove_doubles at threshold 0.0001, then delete disconnected islands keeping only the largest connected component. Deleting islands before welding removes the entire model because each face becomes its own island.

Does Hunyuan3D support text-to-3D generation?▼

No, this pipeline only supports image-to-3D via input_image_url. The text-to-image stage is deliberately disabled on the server because it does not fit in available VRAM and RAM, and it should not be re-enabled.

Why does my imported glTF model face the wrong direction?▼

Generated models face opposite to the game's convention, and the glTF import adds a 90° X rotation that breaks simple euler edits. Apply a 180° world-matrix Z rotation with transform_apply instead of modifying rotation_euler.

Why does the Blender MCP call time out during generation?▼

The MCP timeout is expected because generation continues on the server and the model usually still imports into Blender. If not, find the GLB in the Hunyuan3D gradio_cache folder and import it manually with bpy.ops.import_scene.gltf.

How do I load GLB models in Babylon.js with a fallback?▼

Use BABYLON.SceneLoader.ImportMeshAsync pointing at the public models folder, and always wrap it with a fallback to primitive shapes if loading fails. Scale and ground the model using its real hierarchy bounding vectors, never hardcoded constants.