Skip to content

Lacamoura48/CCDIKSolver-Mixamo-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCDIKSolver + Mixamo 3D Model Example

Welcome to an interactive playground for real-time 3D character posing and Inverse Kinematics (IK) using Three.js and the powerful CCDIKSolver!

✨ What is this?

This project demonstrates how to load a Mixamo 3D character, visualize its skeleton, and manipulate its limbs and joints using CCD (Cyclic Coordinate Descent) IK in the browser. Move the hands, feet, or hips with intuitive controls and watch the character's pose update in real time—no animation experience required!

  • CCDIKSolver Integration: Real-time IK for hands and feet, with joint constraints for natural movement.
  • Transform Controls: Drag and position IK targets directly in the scene.

🕹️ How to Use

  1. Install dependencies:
    npm install
  2. Start the development server:
    npm run dev
  3. Open your browser: Visit http://localhost:5173 (or the port shown in your terminal).
  4. Interact!
    • Use your mouse to orbit, pan, and zoom the camera.
    • Drag the colored controls attached to the character’s hands, feet, and hips to pose the model.

🧩 How It Works

  • The app loads a Mixamo character (bot.glb) and extracts its skeleton.
  • For each IK target (hands, feet, hips), a draggable control is created using TransformControls.
  • The CCDIKSolver updates the skeleton in real time, solving for natural joint rotations using min and max rotation for each joint.
  • All logic is in src/main.js, with bone names in src/boneNames.js.

📦 Project Structure

public/
  bot.glb         # Mixamo 3D character model
  icon.svg        # App icon
src/
  main.js         # Main Three.js logic and IK setup
  boneNames.js    # List of bone names for IK
  style.css       # App styling
index.html        # App entry point
package.json      # Project config

🖼️ Credits

🌟 Inspiration

This project is a sandbox for anyone curious about 3D model animation, rigging, or inverse knematics. Tweak, pose, and experiment—bring your character to life!

About

sandbox for anyone curious about 3D model animation, rigging, or inverse knematics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published