A free cloth simulation — play it in your browser, no install. 纯浏览器的可拽丝袜模拟:可以用鼠标拖拽丝袜. Stocking Tension Simulation · 纯浏览器的实时布料物理 用鼠标捏住一条丝袜往外拉 —— 拉伸处会变薄、透光、透出皮肤,松手就弹回去。 这不是预烘焙动画,也不是贴图假装的 —— 每一条丝袜的褶皱、每一次拉扯的回弹,都是浏览器里每秒 60 次现算出来的。 真正难的不是"跑起来",而是让它贴在腿上且不发散。下面几条都是踩过的坑。 腿是弯曲的,截面不是圆。做法是:按高度把模型顶点切成 75 层 → 每层算质心作为环心,用平行传输构造该层的正交基 (u, w) → 顶点按方位角分 44 个桶,取每桶最远半径 → 圆向 +…
Made this, @790395245? See how many people played it → or use email
GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.
Open the live demo Source on GitHubStocking Tension Simulation · 纯浏览器的实时布料物理
用鼠标捏住一条丝袜往外拉 —— 拉伸处会变薄、透光、透出皮肤,松手就弹回去。
这不是预烘焙动画,也不是贴图假装的 —— 每一条丝袜的褶皱、每一次拉扯的回弹,都是浏览器里每秒 60 次现算出来的。
真正难的不是"跑起来",而是让它贴在腿上且不发散。下面几条都是踩过的坑。
腿是弯曲的,截面不是圆。做法是:按高度把模型顶点切成 75 层 → 每层算质心作为环心,用平行传输构造该层的正交基 (u, w) → 顶点按方位角分 44 个桶,取每桶最远半径 → 圆向 + 层间各平滑两轮 → 沿半径生成环点 → closestPointToPoint 投影回表面再沿法线外推 10mm。
⚠️ 环心必须是截面质心。早期版本用"最接近质心的表面顶点"(medoid)当环心,结果朝向它自己的半径只有 ~1cm、对侧却 ~17cm,径向投影把粒子甩到完全错误的位置 —— 网格当场撕成碎片。
这是穿模的真正原因。closestPointToPoint 给的是无符号距离:粒子一旦被拽进腿内部,它到表面的距离反而"变大",碰撞逻辑就认为它没问题,于是永久卡在肉里(实测拖拽时最多 59 个粒子陷入、最深 4cm)。
Built something like this? Submit your vibe — free account, takes a minute. How listing works.
Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.
Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.