Text To 3dのロゴ

Text To 3d

コミュニティ
hec-ovi
text-to-3d

Initialize and operate a fully local text-to-3D toolkit that turns one subject description into a textured GLB, at full density or to a triangle budget, and can rig a generated character with a Mixamo-named skeleton and playable clips. Uses FLUX.2 klein through ComfyUI, TRELLIS.2 on Vulkan, and SkinTokens on ROCm. Use for starting the local generation harness, creating 3D models, meshes, GLBs or glTF assets from words, rigging or animating a generated character, preparing game or three.js assets, batching several models, or opening the local preview gallery.

概要

公開者hec-ovi
リポジトリtext-to-3D-skill
スキル名text-to-3d
スター
45
フォーク
5
同梱ファイル
160
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 160個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    hec-oviがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Text To 3d」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/hec-ovi/text-to-3D-skill/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hec-ovi/text-to-3D-skill.git \
  .claude/skills/text-to-3d
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでText To 3dを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にText To 3dを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Text To 3dは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

text-to-3d

Turn one described subject into one textured GLB, and a humanoid into a rigged one:

text
prompt -> FLUX.2 klein (ComfyUI) -> PNG -> TRELLIS.2 (Vulkan) -> GLB

Choose a capability

idUse it forSection
initStart and verify the local harnessInit
generateGenerate one static GLBGenerate
budgetGenerate to a triangle budgetTriangle budget
rigGive a generated character a skeleton and clipsRig
previewInspect generated modelsPreview
batchGenerate several models efficientlyBatch

Never use Blender. The rig path does not need it, and the retargeting that a Blender workflow implies is what puts a walk cycle in backwards.

Init

Run init before the first generation in a session:

bash
python3 scripts/init.py

The bundled launcher finds the toolkit from --toolkit-dir, $TEXT_TO_3D_TOOLKIT, or the current checkout. When it is installed as a standalone skill and no checkout exists, it clones the toolkit into ~/.local/share/text-to-3d-toolkit.

Init is idempotent. It:

  1. Verifies the ten TRELLIS.2 GGUFs and fetches missing files.
  2. Starts the sibling comfyui-strix-docker Compose stack.
  3. Builds and starts the resident Vulkan mesh engine and the rig service.
  4. Starts the local preview server.
  5. Waits for all health checks and prints one JSON result.

The first run may build both images, download about 20 GB of weights, and load the models. Do not report success until the JSON result says every service is ready.

Useful overrides:

bash
python3 scripts/init.py --toolkit-dir /path/to/text-to-3D-skill
python3 scripts/init.py --comfy-dir /path/to/comfyui-strix-docker
python3 scripts/init.py --no-fetch --no-build
python3 scripts/init.py --no-rig            # meshes only; the rig holds 1.6 GB

Generate

Name one complete subject, its important parts, material, and style. The image prompt already supplies centering, a plain background, and even lighting.

bash
python3 layers/pipeline/src/pipeline.py \
  --prompt "a brass diving helmet with round glass ports and copper fittings" \
  --out-dir out \
  --runner server

Use 1024 for full-body figures and 512 for compact props. Describe characters standing still, facing forward, with limbs visible. Do not ask for an action.

FlagDefaultChange it when
--res 512|1024|1536512A full figure needs more texture detail.
--target-faces N150K at 512The asset is for a game, web page, or real-time scene.
--seed NDerived from promptThe run must reproduce a prior asset.
--no-textureOffThe caller will supply materials.
--bg-removal birefnetAutoReflective highlights punch holes in the default matte.
--drop-imageOffThe intermediate PNG is not needed.

The result is a schema-validated JSON envelope. The GLB path, checksum, byte size, triangle count, and stage timings come from the written file.

Inspect both the intermediate image and the GLB before reporting completion. A structurally valid model can still omit a requested part.

Triangle budget

A budget is a target, not a quality setting. The reconstruction runs at full detail either way and the simplifier collapses the result to the count asked for, with the texture baked afterwards onto the mesh that survives; measured at 4000 faces the shape quality is within a degree of the 138K version. So a budget costs file size and nothing else, and asking for one never means asking for a cruder model.

Set one for a game, engine, or web scene:

bash
python3 layers/pipeline/src/pipeline.py \
  --prompt "a stylised red sports car" \
  --target-faces 12000 \
  --out-dir out \
  --runner server

Starting points:

  • Small prop: 2K to 6K faces.
  • Stylised full-body figure: 5K to 10K.
  • Vehicle or hero asset: 20K to 50K.

Decimation runs before UV unwrap, so the texture is baked onto the simplified mesh.

Rig

Give a generated character a skeleton, skin weights and clips. Humanoids only.

bash
python3 layers/rig/src/rig.py \
  --glb out/<character>-r1024.glb \
  --out-dir out

The result is <stem>-rigged.glb, carrying a Mixamo-named skeleton and idle and walk. The mesh, its materials and its textures are untouched: skinning is appended to the file, not rebuilt from it.

Requires the rig service, which init starts. A prop returns NOT_A_CHARACTER; that is the correct answer, not a failure to work around.

FlagDefaultChange it when
--no-animateOffThe caller brings its own clips and wants the skin only.
--max-influences N4A target engine reads fewer than four bones per vertex.

Preview

Init starts the viewer at http://127.0.0.1:8190/. An asset id is its GLB file stem.

text
http://127.0.0.1:8190/?id=<asset-id>

Resolve one id before handing over its link:

bash
curl -fsS "http://127.0.0.1:8190/api/models?id=<asset-id>"

Batch

Generate every image first, then every mesh. Alternating stages can evict the image weights and make the next image reload take several minutes.

bash
python3 layers/text2image/src/klein.py --prompt "..." --out-dir out
python3 layers/image2mesh/src/mesh.py --image out/first.png --out-dir out --runner server

The resident engine started by init avoids paying the TRELLIS model-load cost for every mesh.

Failures

Read the outer code, then cause.code when present.

CodeAction
MODELS_MISSINGRe-run init without --no-fetch.
SERVICE_TIMEOUTInspect the named endpoint and its Compose logs.
TEXT2IMAGE_FAILED plus BACKEND_UNREACHABLERe-run init and inspect the ComfyUI service.
TEXT2IMAGE_FAILED plus MODEL_MISSINGCheck the ComfyUI models mount.
IMAGE2MESH_FAILED plus NO_VULKAN_DEVICECheck /dev/dri and the render group id.
IMAGE2MESH_FAILED plus GLB_INVALIDKeep the output and report the engine bug.
NOT_A_CHARACTERThe subject is not a humanoid. Ship it static.
MODEL_UNREACHABLE from the rigRe-run init and inspect the rig service.

Limits

  • One subject, not a multi-object scene.
  • Rigging is for humanoids. A prop is refused with NOT_A_CHARACTER rather than given a spine.
  • Clips are generated, not hand-animated: they read as motion at gameplay distance and do not survive a close look. The skeleton is Mixamo-named, so an authored clip pack plays on it without retargeting.
  • Faces hold up at gameplay distance, not as portrait assets.
  • Vulkan GPU for the mesh, ROCm for the rig. The mesh engine refuses silent CPU fallback.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

ほかに100個のファイルがあります。

よくある質問

AIスキル「Text To 3d」では何ができますか?

Initialize and operate a fully local text-to-3D toolkit that turns one subject description into a textured GLB, at full density or to a triangle budget, and can rig a generated character with a Mixamo-named skeleton and playable clips. Uses FLUX.2 klein through ComfyUI, TRELLIS.2 on Vulkan, and SkinTokens on ROCm. Use for starting the local generation harness, creating 3D models, meshes, GLBs or glTF assets from words, rigging or animating a generated character, preparing game or three.js assets, batching several models, or opening the local preview gallery.

TypingMindでText To 3dを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Text To 3dはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにText To 3dをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/hec-ovi/text-to-3D-skill/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Text To 3dを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Text To 3dで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもText To 3dを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Text To 3d」は無料ですか?

hec-oviがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇