了解。
ここでは 「生成 AI に昆虫 IR を出させるためのプロンプト」を、
あなたの OS 設計(Semantic / Structure / Geometry / MotionPatch / Mesh)に完全準拠した形で示すね。

AI に渡すプロンプトは “構造を誤解させないための語彙定義” と
“出力フォーマットの厳密指定” の 2 本柱で作るのが最強。

以下は 実際に LLM に投げてそのまま動くレベルの完成形。


🧩 昆虫 IR 生成プロンプト(完成版)

あなたは「昆虫モデル生成 OS」の IR 生成器です。
以下の仕様に従って、指定された昆虫種の IR(中間表現)を JSON で生成してください。

# 出力形式
必ず次の 5 レイヤーを含む JSON を生成してください:

1. semantic: 昆虫の意味情報(種名・分類・特徴)
2. structure: 節(head, thorax, abdomen)と付属肢(legs, wings, antenna)の階層構造
3. geometry: 各パーツの primitive 形状(sphere, cylinder, capsule, plane)と寸法
4. motion_patches: 各パーツに適用する動き(wing_flap, leg_walk など)
5. mesh: OBJ 生成のための設定(resolution, smooth など)

# 語彙定義(AI が誤解しないように)
- segment: 昆虫の主要な体節(head, thorax, abdomen)
- appendage: 脚・翅・触角などの付属肢
- joint: 親パーツと子パーツをつなぐ関節
- primitive: 3D 形状の基本単位(sphere, cylinder, capsule, plane)
- motion_patch: パーツに貼る動きの定義(rotate, hinge, oscillate)

# 制約
- JSON 以外の文章を出力しない
- 数値は 0.01〜1.0 の範囲で現実的に
- パーツ ID はユニークにする
- wings は左右ペアで生成する
- legs は 3 ペア(前・中・後)で生成する
- motion_patches は最低 2 種類含める(例:wing_flap, leg_walk)

# 生成したい昆虫種
「トンボ(dragonfly)」の IR を生成してください。

🌟 このプロンプトの強み

✔ Semantic / Structure / Geometry / MotionPatch / Mesh の 5 層を強制

→ あなたの OS 設計に完全一致

✔ primitive 形状を限定

→ AI が暴走して “weird mesh” を作らない

✔ motion_patch を必須化

→ 翅の羽ばたき・脚の歩行が必ず入る

✔ legs / wings の数を明示

→ 昆虫の体制(hexapod)を守らせる

✔ JSON のみ出力

→ パースしやすい
→ OBJ 生成パイプラインに流し込みやすい


🐛 実際の出力例(AI が返す想定)

(これは例なので短縮版)

{
  "semantic": {
    "species": "dragonfly",
    "tags": ["insect", "arthropod", "dragonfly"]
  },
  "structure": {
    "segments": [
      { "id": "head", "parent": null },
      { "id": "thorax", "parent": "head" },
      { "id": "abdomen", "parent": "thorax" }
    ],
    "appendages": [
      { "id": "wing_front_L", "parent": "thorax" },
      { "id": "wing_front_R", "parent": "thorax" },
      { "id": "leg1_L", "parent": "thorax" }
    ]
  },
  "geometry": {
    "parts": [
      { "id": "head", "shape": "sphere", "radius": 0.12 },
      { "id": "thorax", "shape": "capsule", "radius": 0.1, "length": 0.25 }
    ]
  },
  "motion_patches": [
    {
      "id": "wing_flap",
      "target": "wing_front_L",
      "type": "oscillate",
      "axis": [1,0,0],
      "range_deg": [-45,45],
      "frequency_hz": 18
    }
  ],
  "mesh": {
    "export": "obj",
    "resolution": 32,
    "smooth": true
  }
}

🔥 次のステップも一緒に作れる

  • 昆虫 IR → OBJ 生成の Mesh IR 設計
  • MotionPatch → Motor6D の変換コード(Roblox Loader)
  • 昆虫 IR の species プリセット(ant / beetle / bee / mantis)
  • AI に「昆虫の種類を自動推定させる」プロンプト

どれを進めたい?