generar-asset-3d

Generates textured 3D models from images via Hunyuan3D and Blender, then integrates them into a Babylon.js game.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning a reference image into a game-ready 3D asset involves many fragile steps: running a local Hunyuan3D server, cleaning and orienting the mesh in Blender, exporting GLB files, and wiring them into a Babylon.js game. This Skill documents the full tested pipeline, including known pitfalls, so the process succeeds on the first attempt. ## Core Features & Use Cases - Image-to-3D generation: Calls a local Hunyuan3D server through the Blender MCP addon to produce a textured model from an absolute-path reference image. - Blender cleanup and orientation: Welds duplicate vertices before deleting disconnected islands, and rotates the model 180° with a world-space matrix so it matches the game's facing convention. - Game integration: Exports GLB to versioned assets and public folders, loads it with SceneLoader.ImportMeshAsync plus primitive fallbacks, and scales using real bounding boxes. - Use Case: You need a new spaceship or character model for the game. Provide a reference image, and the Skill walks through generation, cleanup, export, code integration, and visual verification with screenshots. ## Quick Start Generate a 3D asset from my reference image and integrate it into the game following the generar-asset-3d pipeline.

Frequently Asked Questions about generar-asset-3d

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 Hunyuan3D?▼

Start the local Hunyuan3D server with texture enabled, then call generate_hunyuan3d_model through the Blender MCP addon with an absolute image path. Generation takes about 60 seconds; only image-to-3D works, text-to-3D is disabled on this server.

How to clean up a generated 3D mesh 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 arrives as its own island.

Why does the Hunyuan3D generation call time out or show a network error?▼

The MCP call can time out while generation continues on the server, and the model usually still imports into Blender. The generic network error message hides real failures, so check server.log; a vanished process means out-of-memory, requiring about 21 GB of RAM.

Can I rotate a glTF-imported model in Blender with rotation_euler?▼

No, adding pi to rotation_euler.z produces a broken compound rotation because glTF imports carry a 90-degree X rotation. Apply a world-space Z-axis rotation matrix and then apply the transform instead.

How do I load a GLB model into a Babylon.js scene with a fallback?▼

Use BABYLON.SceneLoader.ImportMeshAsync with the /models/ path served by Vite, and always wrap it with a fallback to primitive meshes if loading fails. Scale and ground the model using its real hierarchy bounding vectors rather than hardcoded constants.

What are the limitations of Hunyuan3D-generated models for games?▼

Generated models have no rig or animations, so game code must tolerate empty animationGroups. Text-to-3D is unavailable on this server setup, and texturing consumes roughly 21 GB of RAM, so avoid other heavy workloads during generation.