Drop version suffixes from Blender source filenames
Rename the Blender working files to plain role names, dropping the version noise: bull_v11 -> bull, matador_v03 -> matador, publik_mees_v01 -> publik_mees, and collapse anim_bull2 into anim_bull (identical rig, newer save kept; older duplicate dropped). Repoint create_matador_anims.py (blend input + fbx export name), render_anim_preview.py and CLAUDE.md at the new names. The anim_* and sword files link the model blends as Blender libraries (//bull_v11.blend, //matador_v03.blend, //publik_mees_v01.blend), so those links need repointing once in Blender. The game is unaffected — it ships the exported fbx/glb, not the .blend sources (art/blender/ is Godot-ignored). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FBbGXbzg3SD6ZBSadPPF5H
This commit is contained in:
@@ -101,7 +101,7 @@ art/ all raw art, grouped by role (snake_case):
|
|||||||
|
|
||||||
## Animation & bone conventions
|
## Animation & bone conventions
|
||||||
|
|
||||||
### Blender rig (matador_v03)
|
### Blender rig (matador)
|
||||||
- **Armature bones:** `matador` (root) → `COG` → `chest` → `head`, `collarbone_L/R` → `arm_L/R` → `forearm_L/R` → `hand_L/R`, `leg_L/R` → `shin_L/R` → `foot_L/R`
|
- **Armature bones:** `matador` (root) → `COG` → `chest` → `head`, `collarbone_L/R` → `arm_L/R` → `forearm_L/R` → `hand_L/R`, `leg_L/R` → `shin_L/R` → `foot_L/R`
|
||||||
- **Rotation mode:** All animated bones use **XYZ Euler** (set in `create_matador_anims.py`)
|
- **Rotation mode:** All animated bones use **XYZ Euler** (set in `create_matador_anims.py`)
|
||||||
- **Bone-local axes:** Swing (forward/back) is on **local X**. Arm lowering from T-pose is on **local Y** (positive = left arm down, negative = right arm down). Knee bend is **positive X** (shins only bend backward).
|
- **Bone-local axes:** Swing (forward/back) is on **local X**. Arm lowering from T-pose is on **local Y** (positive = left arm down, negative = right arm down). Knee bend is **positive X** (shins only bend backward).
|
||||||
@@ -119,7 +119,7 @@ After FBX import, animations appear as `Armature|walk` and `Armature|idle` in An
|
|||||||
|
|
||||||
### Verification workflow
|
### Verification workflow
|
||||||
1. Edit bones/animations in Blender (`create_matador_anims.py`)
|
1. Edit bones/animations in Blender (`create_matador_anims.py`)
|
||||||
2. Run render preview: `blender --background art/blender/matador_v03.blend --python art/blender/render_anim_preview.py`
|
2. Run render preview: `blender --background art/blender/matador.blend --python art/blender/render_anim_preview.py`
|
||||||
3. Inspect PNGs in `art/blender/preview/` — check bone orientations **before** exporting to Godot
|
3. Inspect PNGs in `art/blender/preview/` — check bone orientations **before** exporting to Godot
|
||||||
4. Export FBX (done automatically by `create_matador_anims.py`)
|
4. Export FBX (done automatically by `create_matador_anims.py`)
|
||||||
5. Re-import in Godot and test in-game
|
5. Re-import in Godot and test in-game
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Blender 5.1 script: create walk + idle animations for matador_v03.
|
Blender 5.1 script: create walk + idle animations for matador.
|
||||||
Run: blender --background matador_v03.blend --python create_matador_anims.py
|
Run: blender --background matador.blend --python create_matador_anims.py
|
||||||
"""
|
"""
|
||||||
import bpy, math, os
|
import bpy, math, os
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ ti.name = 'idle'
|
|||||||
si = ti.strips.new('idle', 0, idle)
|
si = ti.strips.new('idle', 0, idle)
|
||||||
|
|
||||||
# ── export FBX ─────────────────────────────────────────────────────────────────
|
# ── export FBX ─────────────────────────────────────────────────────────────────
|
||||||
fbx_path = os.path.join(os.path.dirname(bpy.data.filepath), 'matador_v03.fbx')
|
fbx_path = os.path.join(os.path.dirname(bpy.data.filepath), 'matador.fbx')
|
||||||
bpy.ops.export_scene.fbx(
|
bpy.ops.export_scene.fbx(
|
||||||
filepath=fbx_path,
|
filepath=fbx_path,
|
||||||
use_selection=False,
|
use_selection=False,
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Blender 5.1 script: render preview frames of matador animations to PNG.
|
Blender 5.1 script: render preview frames of matador animations to PNG.
|
||||||
Run: blender --background matador_v03.blend --python render_anim_preview.py
|
Run: blender --background matador.blend --python render_anim_preview.py
|
||||||
|
|
||||||
Outputs to art/blender/preview/ directory:
|
Outputs to art/blender/preview/ directory:
|
||||||
walk_frame_00.png .. walk_frame_09.png
|
walk_frame_00.png .. walk_frame_09.png
|
||||||
|
|||||||
Reference in New Issue
Block a user