{"repo":"bandinopla/three-simplecloth","free":true,"listed":false,"github":"https://github.com/bandinopla/three-simplecloth","clone":"git clone https://github.com/bandinopla/three-simplecloth.git","description":"Simple cloth simulation for Three.js WebGPU","language":"TypeScript","stars":55,"topics":["cloth","cloth-simulation","threejs","webgpu"],"license":"MIT","category":"game-templates","readme_excerpt":"Based on: https://github.com/mrdoob/three.js/blob/a58e9ecf225b50e4a28a934442e854878bc2a959/examples/webgpu compute cloth.html What is this? A Three.js module you can use to turn pieces of skinned meshes into cloth-like meshes that will move like cloth... kind of. It has support for colliders (spheres) and grabbing and interacting with the cloth. Play with the online demo How does this work? You skin your mesh normally but then you vertex paint in red color the parts that you want to turn into \"cloth\" and then when you use this module you basically pass a reference to the mesh that contains this painting and it will turn it into a \"cloth like\" mesh, blending between normal skinned and cloth using this color as a mask. It is probably advisable to have the cloth portions as separated meshes, not all one big giant mesh including your character. So for example, if only a small portion should be cloth, try to see if you can separate it and turning into a separated skinned mesh under the same rig. This will avoid calculating on the whole mesh and will be more performant. Obviously all part of the same skeleton as a child of the main rig. Read: Article explaining implementation Install Usage Find the examples in the playground folder. Initially I did the female bot dancing in main.ts then when I added more examples I wrote separated files for them. So main will contain part of the logic for the dancing robot demo and part of the logic to select the right demo. Config The third parame","default_branch":null,"files":null,"tree":[],"storefront":"/r/bandinopla","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bandinopla/three-simplecloth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}