Skip to content

Blender Workflow.en

Claude Code edited this page Nov 20, 2026 · 2 revisions

Blender Workflow

中文 · English

The model supplies a deformable body, animation supplies poses, RigWorks selects and combines poses from player state, and AssimpLoader evaluates and renders them. An FBX does not need to ship every Minecraft action to become a playable character.

Included fixture

The BlockPlayer_CharacterEngine scene in model-tests/block_player/block_player.blend has 23 bones, 624 vertices, 312 triangles, blended skin weights, Blink/Smile shape keys and four PBR texture channels, plus 15 NLA tracks covering idle, walk, run, crouch, jump, fall, swim, flight, elytra, riding, sleeping, death, item use and swinging. These are compact validation animations, not production motion.

The muted authoring IK constraints demonstrate the Blender-side setup. FBX/GLB do not preserve full live constraint semantics: baking a constraint into an action records the resulting transforms, not an IK solver. Runtime IK is described by JSON sidecars.

Re-exporting

Run this in Blender's Python console:

from pathlib import Path
import bpy
p = Path(bpy.path.abspath("//")).resolve().parent / "scripts/export_block_player.py"
exec(compile(p.read_text(), str(p), "exec"), {"__file__": str(p)})

Add "ASSIMPLOADER_EXPORT": False to the execution dictionary to validate without exporting. The script checks weights, blended vertices, action names, height and floor, and restores selection, active action, NLA mutes and scene.

Runtime resources

All paths below live under assets/rigworks/models/character/block_player/ in mod or resource-pack assets.

Resource Responsibility
profile.json model, scale/yaw, humanoid roles, action mapping, head aim, sidecar references
block_player.fbx / .glb geometry, skin, imported actions, vertex morphs and PBR materials
block_player.instance.json AssimpLoader states, interpolation, foot placement and Spring Bones
rig.json append transforms, constrained IK, bone/group morphs and explicit morph defaults
equipment.json physical left/right hand mounts, metre offsets and vanilla held-item orientation
physics.json body shapes, bone feedback modes, collision masks, joints, springs and step budget

Resource packs override these assets through normal Minecraft resource lookup. An arbitrary local filesystem path is not accepted as a character profile. Unknown versioned fields and unresolved bones fail with diagnostics.

Units and facing

  • Mesh and model coordinates use metres. Author at unit scale 1 with feet at Y=0.
  • physics.json offsets, shape dimensions, joint positions and linear limits are in metres. BOX size means half extents; CAPSULE uses radius and cylinder height along Y. Angles are radians and quaternions are XYZW.
  • profile.scale scales geometry, offsets and feedback consistently; profile yaw aligns authored forward with the player's visual forward.
  • An imported FBX may retain 100x bone scaling. The physics adapter strips it before applying metre offsets and restores the render scale during feedback. Spring Bone tails use the imported node's local units.

Enabling and inspecting

Run /assimploader character enable in a world, then switch to third person. The default profile is the included block player.

/assimploader character
/assimploader character menu
/assimploader character profile rigworks:models/character/block_player/profile.json
/assimploader character reload
/assimploader character morph Expression 1
/assimploader character ragdoll on
/assimploader character ragdoll auto
/assimploader character motion play solver_probe false
/assimploader character motion pause
/assimploader character motion seek 1
/assimploader character motion resume
/assimploader character motion stop
/assimploader character disable

Profile, enable flag and performance choices are stored under [character] in the client TOML. Physics can be disabled independently.

Semantics that are not supported

PMX/VMD parsing, SDEF/QDEF, UV/material/flip/impulse morph semantics and arbitrary cross-rig retargeting are not obtained automatically by this workflow. The supported path is LBS skinning, imported vertex morphs and bone/combination morphs, imported skeletal animation, and basic PBR input.

Continue with Rig Calibration, Animation and Vanilla Actions.

Clone this wiki locally