Logo: Text To 3d Asset

Text To 3d Asset

Communautéit
LaurentiuGabriel
text-to-3d-asset

Generate a game-ready 3D asset by running the local AI pipeline sequentially: Fooocus (SDXL text-to-image) -> Hunyuan3D-2 (image-to-textured-GLB) -> optional Blender FBX convert + Unreal import. Use when the user wants to create/generate a 3D model, mesh, or racer for the Unreal train-racer project from a text prompt or a photo. Covers launching both local Gradio services, generating, and wiring the result into Unreal.

Iwwersiicht

EditeurLaurentiuGabriel
Repositoryunreal-game-assets-creation-skill
Skill-Nummtext-to-3d-asset
Stären
148
Forks
3
Matgeliwwert Dateien
4
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    LaurentiuGabriel huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Text To 3d Asset an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/LaurentiuGabriel/unreal-game-assets-creation-skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LaurentiuGabriel/unreal-game-assets-creation-skill.git \
  .claude/skills/text-to-3d-asset
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Text To 3d Asset an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Text To 3d Asset automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Text To 3d Asset net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Text / Photo -> 3D Asset Pipeline

Two local AI services on this machine chain together to turn a text prompt or photo into a textured 3D .glb, which then imports into the Unreal train-racer project. Related background: hunyuan3d-deployment memory.

prompt --(Fooocus SDXL)--> image.png --(Hunyuan3D-2)--> textured.glb --(Blender)--> .fbx --(Unreal MCP)--> BP racer
        [Stage 1: optional]            [Stage 2: core]              [Stage 3: optional, Unreal only]

If the user already has a photo, skip Stage 1 and start at Stage 2.

Validation status (2026-07-24): Full chain tested end-to-end. Stage 1 automated via Fooocus-API (installed at C:\AI\Fooocus-API; REST text-to-image returned a clean locomotive image). Stage 2 (hunyuan_gen.py) + Stage 3 convert (glb_to_fbx.py) working (image -> textured .glb -> .fbx, ~60–130 s for the 3D step). Stage 3 Unreal import validated (Caitlin). Vanilla Fooocus is NOT drivable via gradio_client — that's why the Fooocus-API wrapper exists.

⚠️ Hardware rule (RTX 4070 Laptop, 8 GB VRAM / 32 GB RAM) — STRICT

Only one image/3D service loaded at a time. Don't just avoid concurrent generation — don't keep both servers resident. Measured 2026-07-24: running Fooocus with the Hunyuan3D server still loaded made SDXL take ~14 min (27 s/step) instead of ~1 min, because the two exhaust RAM and swap to disk. So: stop the other server before generating. Stage 1 → stop Hunyuan (8080), run Fooocus. Stage 2 → stop Fooocus-API (8888), run Hunyuan. Relaunching a server is cheap vs. the slowdown.

Key paths

ThingPath
FooocusC:\projects\unreal-game\Fooocus_win64_2-5-0 (launch run.bat)
Fooocus UIhttp://localhost:7865
Fooocus outputsC:\projects\unreal-game\Fooocus_win64_2-5-0\Fooocus\outputs\<YYYY-MM-DD>\
Fooocus-API (REST)C:\AI\Fooocus-API — isolated python_embeded; config.txt reuses models
Fooocus-API endpointhttp://127.0.0.1:8888 — POST /v1/generation/text-to-image
Hunyuan3DC:\AI\HY3D2\Hunyuan3D2_WinPortable (launch launch_server.bat)
Hunyuan3D UI/APIhttp://localhost:8080
Bundle python (has gradio_client)C:\AI\HY3D2\Hunyuan3D2_WinPortable\python_standalone\python.exe
BlenderC:\Program Files\Blender Foundation\Blender 4.4\blender.exe
Skill scriptsthis skill's scripts/ folder

Stage 1 — Generate the image (Fooocus SDXL)

Only if starting from a text prompt. Model already installed: juggernautXL_v8Rundiffusion (photoreal).

For best downstream 3D: prompt for a single centered subject, plain/simple background, 3/4 or front view, even lighting. Hunyuan3D's auto background-removal expects one clear subject. Add e.g. , single object, centered, plain white background, studio lighting, full view.

Vanilla Fooocus has no gradio_client API (Gradio 3.41.2, 0 named endpoints, gr.State generate flow). That's why the Fooocus-API REST wrapper is installed — use it (Method A). UI is the fallback.

Method A — Fooocus-API REST (installed, automated) ✅

Isolated env at C:\AI\Fooocus-API\python_embeded (copy of Fooocus's embedded python + fastapi/uvicorn/ sqlalchemy/colorlog/rich/chardet; its python310._pth was patched to add .. and ../repositories/Fooocus). config.txt (copied from the Fooocus install) makes it reuse juggernautXL + LoRA + expansion — no re-download.

  1. Stop the Hunyuan3D server first (hardware rule): $c=Get-NetTCPConnection -LocalPort 8080 -State Listen -EA SilentlyContinue; if($c){Stop-Process -Id $c.OwningProcess -Force} (relaunch it for Stage 2).
  2. Launch if port 8888 isn't up (run from its dir so ./config.txt is found): cmd /c "cd /d C:\AI\Fooocus-API && python_embeded\python.exe -s main.py --skip-pip --disable-preset-download --port 8888 --host 127.0.0.1 > C:\AI\Fooocus-API\api.log 2>&1" Wait for Uvicorn running on http://127.0.0.1:8888 in api.log (loads SDXL, ~20–40 s).
  3. Generate: C:\AI\Fooocus-API\python_embeded\python.exe -s "<this skill>\scripts\fooocus_gen.py" --prompt "<subject>, single centered object, plain white background, studio lighting, full view" --out "<path\img.png>" Blocks until done, saves the PNG. ~1–2 min when Fooocus has the GPU to itself (10x slower if Hunyuan is still loaded).

Method B — Fooocus UI (fallback, manual click)

Launch cmd /c "cd /d C:\projects\unreal-game\Fooocus_win64_2-5-0 && run.bat" (cold start ~5–6 min; poll port 7865, the log doesn't flush). Open http://localhost:7865, enter prompt, click Generate, grab the newest PNG from Fooocus\outputs\<date>\.

Either way, Stage 1 produces a PNG on disk. Stop Fooocus-API (port 8888) before Stage 2. Pass the PNG to Stage 2.


Stage 2 — Image -> textured GLB (Hunyuan3D-2) [core, validated]

  1. Ensure the server is up (it does not persist across sessions): Invoke-WebRequest http://localhost:8080 -UseBasicParsing. If down, launch in background: cmd /c "C:\AI\HY3D2\Hunyuan3D2_WinPortable\launch_server.bat > C:\AI\HY3D2\server.log 2>&1" then watch C:\AI\HY3D2\server.log for Uvicorn running on http://0.0.0.0:8080 (~1–2 min; models cached).
  2. Generate (uses the running server's API — reuses loaded models):
    C:\AI\HY3D2\Hunyuan3D2_WinPortable\python_standalone\python.exe -s ^
      "<this skill>\scripts\hunyuan_gen.py" --image "<path\to\image.png>" --name <AssetName>
    • --mode textured (default) = shape + texture (~60–75 s). --mode shape = geometry only (faster).
    • Output GLB(s) land in C:\AI\HY3D2\outputs\<AssetName>_textured.glb (+ _white.glb).
    • Runs as a background command if you don't want to block; it prints timing + output paths.
  3. Preview it before going further: decode is only meaningful visually — either open the GLB, or continue to Stage 3 and screenshot in Unreal.

Stage 3 — Import into Unreal (optional; needs the editor + unreal-mcp running)

The unreal-mcp StaticMeshTools.import_file accepts only fbx/obj, not glb. Convert first.

  1. GLB -> FBX (embedded textures) via Blender:
    "C:\Program Files\Blender Foundation\Blender 4.4\blender.exe" --background ^
      --python "<this skill>\scripts\glb_to_fbx.py" -- --src "<asset.glb>" --dst "<asset.fbx>"
  2. Import (unreal-mcp): StaticMeshTools.import_file with folder_path=/Game/Meshes/<Name>GLB, asset_name=<Name>, import_materials=true, import_textures=true, combine_meshes=true. Then AssetTools.save_assets.
  3. Wire into a racer BP (project convention — see hunyuan3d-deployment memory): racer BPs derive from BP_TrainBase; each adds a GLBBody StaticMeshComponent. To add a new engine, mirror BP_Thomas (single GLBBody, scale to length-match Thomas ≈ 1197 / mesh_local_Y_extent, relativeRotation yaw -90, relativeLocation.z = -mesh_local_min_z * scale so it sits on the ground). Access SCS templates via ActorTools.get_components on the CDO (/Game/Blueprints/BP_<Name>.Default__BP_<Name>_C) -> BP_<Name>_C:<Comp>_GEN_VARIABLE, then ObjectTools.get/set_properties. Compile + save the Blueprint. Verify by spawning an instance and EditorAppToolset.CaptureViewport (decode per the unreal-mcp-screenshot-extraction memory).

Troubleshooting

  • Hunyuan server down / not persisting: expected across sessions — relaunch launch_server.bat.
  • CUDA OOM during 3D texture: another generation is running (Fooocus?) — serialize them; or drop Hunyuan to --profile 5 (already default in launch_server.bat).
  • Import rejects .glb: convert to FBX first (Stage 3 step 1).
  • hf.exe fails / model download WinError 1314: use the Python huggingface_hub API with HF_HUB_DISABLE_SYMLINKS=1 (see hunyuan3d-deployment memory) — but for generation you only need the server up, not re-downloads.
  • Blender import shows one mesh named *.ply: normal (Hunyuan meshes carry no node name); the FBX still exports fine.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Text To 3d Asset?

Generate a game-ready 3D asset by running the local AI pipeline sequentially: Fooocus (SDXL text-to-image) -> Hunyuan3D-2 (image-to-textured-GLB) -> optional Blender FBX convert + Unreal import. Use when the user wants to create/generate a 3D model, mesh, or racer for the Unreal train-racer project from a text prompt or a photo. Covers launching both local Gradio services, generating, and wiring the result into Unreal.

Firwat Text To 3d Asset op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Text To 3d Asset besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Text To 3d Asset an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/LaurentiuGabriel/unreal-game-assets-creation-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Text To 3d Asset benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Text To 3d Asset benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Text To 3d Asset domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Text To 3d Asset gratis?

LaurentiuGabriel huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇