dgreenheck / three-pinata

Three.js library for fracturing and slicing meshes in real time.

Home Page:https://dgreenheck.github.io/three-pinata/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

three-pinata

Three.js library for fracturing and slicing non-convex meshes in real time.

This is a Typescript port of the OpenFracture library I wrote for Unity several years ago.

The demo app utilizes Rapier for the collision detection and physics.

Live Demo

https://dgreenheck.github.io/three-pinata/

Running Demo Locally

  1. Clone the repo
  2. Run the following commands in the root folder
npm install
npm run dev
  1. Go to http://127.0.0.1:5173/three-pinata/ in your browser.

Documentation

Coming soon!

Todo

  • Improved demo
  • Offload computation to web workers
  • Handle multiple geometry groups
  • Support for meshes with tangent data

About

Three.js library for fracturing and slicing meshes in real time.

https://dgreenheck.github.io/three-pinata/

License:MIT License


Languages

Language:TypeScript 99.3%Language:JavaScript 0.4%Language:HTML 0.3%