ai21.net
语言

毛绒蜘蛛物理效果对比

演示视频

毛绒蜘蛛物理效果对比 — 1

提示词

Build "Plush Spider" — Material Studies No. 015.

Format and style:
- A single self-contained HTML file on native WebGPU, fully procedural (no assets, no libraries).
- The same editorial style as the series: serif masthead, side specimen panel, live readouts, "Inside the experiment" notes.

The specimen: a cute plush spider sitting on a table.
- The body is one signed distance field:
- a big round abdomen with knitted-looking stripes;
- a smaller head-and-chest tucked into it, with two fuzzy cheeks;
- a paler underside.
- The face:
- two big glossy bead eyes on white felt discs;
- a row of four tiny bead eyes above them;
- blushing cheeks, an embroidered smile and two little felt fangs.
- Eight posable plush legs, four a side, sewn on along the chest. They are striped like socks, end in pale little feet, and have a wire inside.

Physics — body:
- XPBD soft body on a hex-cell lattice: co-rotational shape matching plus tetrahedral volume, 60 Hz, 6 substeps.
- Gravity and floor friction. The seat keeps its footing.
- The toy slowly rights itself toward the heading it last walked (posture with a yaw).
- The abdomen breathes: its cells' rest shapes and rest volumes swell.

Physics — legs:
- Each leg is an XPBD rod chain from a hip embedded in the body lattice to the toe.
- A blended pose in the body's frame (sit, stand, hang, curl, wave) pulls each point toward its target: firmly at the hip, less toward the toe. So the legs hold their shape but sag and swing.
- The wire is plastic: when the hand bends a leg past its give, the pose itself takes the new shape and the leg stays bent until "Straighten legs".
- Spheres riding the body keep the legs off it. Toes grip the table. The finger pushes the legs aside.
- Pulling a leg further than it reaches tows the spider by that hip.

Behaviour:
- Walking:
- the body rises onto its legs with a height controller;
- it is led toward a goal with a weak pull and turns to face it;
- toes are drawn to footholds on the table;
- an alternating four-and-four gait lifts the set that has fallen furthest behind and sets it down ahead, with a little arc;
- it wanders on its own now and then.
- Curl up (button or a finger poke): the legs hug up over its back, the spider rolls away from the touch as a ball (no footing, no rolling resistance), then unrolls and rights itself.
- Hang on silk:
- a springy thread that only pulls, from an anchor high above to a patch of the back;
- it is reeled up off the table, swings when pushed, and its legs paddle the air;
- pressing again lowers it back to the table.
- Wave: one front leg is raised and wiggles.
- With the Finger tool, the spider scuttles over to the finger.

Rendering:
- Shell fur: base plus N instanced shells, alpha-to-coverage under 4× MSAA.
- The fur lie is carried by the deformation gradient, with a damped-spring tip lag.
- Kajiya–Kay highlights, velvet sheen, a comb tool.
- Regions painted in rest space: abdomen stripes, pale underside, short pile around the felt eye discs, cheeks, smile groove, stitched seams round the hips.
- Legs are drawn each frame as plush tubes:
- swept along a Catmull–Rom curve through each rod with a parallel-transport frame;
- a slight knee bulge and a rounded little foot;
- banded colour and a shorter pile.
- A thin glinting silk thread.
- Soft PCSS key-light shadows, contact occlusion on the studio floor, Khronos PBR Neutral tone mapping.
- NaN-safe WGSL: clamped pow and smoothstep, clamped post.

UI:
- Tools:
- Hand: lift and squash the body, or grab and bend a leg;
- Finger: the spider follows it, and a poke curls it up;
- Comb: brush the pile.
- Buttons: Walk, Hang on silk, Curl up, Wave, Straighten legs, Smooth fur, Reset.
- Sliders: Stuffing, Pile, Wire (floppy to stiff).
- Palettes: Midnight (dark plum with lilac stripes), Tangerine (orange with brown stripes), Moss (green with yellow stripes).
- Readouts: mass, volume % of rest, steps taken, silk length in cm.
- Orbit and zoom; responsive stacked layout on phones; adaptive quality; reduced-motion support.

中文译文

构建“Plush Spider”——Material Studies No. 015。

格式与风格:
- 单个自包含的 HTML 文件,基于原生 WebGPU,完全程序化生成(无素材、无库)。
- 与该系列相同的编辑风格:衬线体报头、侧边标本面板、实时读数、“Inside the experiment”注释。

标本:一只坐在桌上的可爱毛绒蜘蛛。
- 身体是一个有符号距离场:
- 一个带针织质感条纹的大圆腹部;
- 一个较小的头胸部收在其中,带有两片毛茸茸的脸颊;
- 颜色更浅的腹面。
- 面部:
- 两只嵌在白色毛毡圆片上的大而光亮的珠状眼睛;
- 它们上方一排四只微小的珠状眼睛;
- 泛红的脸颊、一个刺绣的微笑和两颗小毛毡獠牙。
- 八条可摆姿势的毛绒腿,每侧四条,沿胸部缝上。它们像袜子一样有条纹,末端是颜色浅的小脚,内部有一根铁丝。

物理——身体:
- 六边形单元晶格上的 XPBD 软体:共旋转形状匹配加四面体体积,60 Hz,6 个子步。
- 重力与地面摩擦。坐部保持稳固支撑。
- 玩具会缓慢自行回正,转向它上一次行走的朝向(带偏航角的姿态)。
- 腹部会呼吸:其单元的静止形状与静止体积会膨胀。

物理——腿:
- 每条腿是一根 XPBD 杆链,从嵌入身体晶格的髋部一直延伸到脚趾。
- 在身体坐标系中的一个混合姿态(坐、站、悬、卷、挥)会把每个点拉向其目标:在髋部处较牢固,越靠近脚趾越弱。因此腿能保持形状,但会下垂和摆动。
- 铁丝具有塑性:当手把一条腿弯过其屈服点后,姿态本身会接受新的形状,腿会保持弯曲,直到点击“Straighten legs”。
- 随身体运动的球体让腿不碰到身体。脚趾抓住桌面。手指会把腿拨到一边。
- 把一条腿拉到超出其可达范围时,会通过该髋部拖拽蜘蛛。

行为:
- 行走:
- 身体通过高度控制器抬升到腿上;
- 它被一股微弱的拉力引向目标,并转身面向目标;
- 脚趾被吸引到桌面上的落脚点;
- 交替的四加四步态会抬起落后最远的那一组腿,并以一个小弧线将它们放到前方;
- 它时不时会自行游荡。
- 卷起(按钮或手指戳一下):腿会收拢到背上,蜘蛛像球一样从触碰处滚开(无立足点、无滚动阻力),然后展开并自行回正。
- 悬在丝上:
- 一根只拉不推的弹性丝线,从高处的锚点连到背部的一片区域;
- 它被收线带离桌面,被推动时会摆动,腿在空中划动;
- 再次按下会把它放回桌面。
- 挥手:抬起一条前腿并摆动。
- 使用“Finger”工具时,蜘蛛会小步快跑向手指。

渲染:
- 壳层毛发:基础层加 N 层实例化壳层,在 4× MSAA 下使用 alpha-to-coverage。
- 毛发的倒伏方向由变形梯度携带,并带有阻尼弹簧式的尖端滞后。
- Kajiya–Kay 高光、天鹅绒光泽、一把梳子工具。
- 在静止空间中绘制的区域:腹部条纹、浅色腹面、毛毡眼片周围的短绒毛、脸颊、微笑凹槽、髋部周围的缝合接缝。
- 腿每帧都被绘制为毛绒管:
- 沿穿过每根杆的 Catmull–Rom 曲线扫掠,并使用平行传输标架;
- 轻微的膝部隆起和圆润的小脚;
- 环状色带和更短的绒毛。
- 一根微微闪光的细丝线。
- 柔和的 PCSS 主光阴影、影棚地面上的接触遮蔽、Khronos PBR Neutral 色调映射。
- 对 NaN 安全的 WGSL:带钳制的 pow 和 smoothstep,带钳制的后处理。

界面:
- 工具:
- Hand:抬起并压扁身体,或抓住并弯曲一条腿;
- Finger:蜘蛛会跟随它,戳一下会让它卷起;
- Comb:梳理绒毛。
- 按钮:Walk、Hang on silk、Curl up、Wave、Straighten legs、Smooth fur、Reset。
- 滑块:Stuffing、Pile、Wire(从松软到硬挺)。
- 配色:Midnight(深李子色配淡紫色条纹)、Tangerine(橙色配棕色条纹)、Moss(绿色配黄色条纹)。
- 读数:质量、相对静止状态的体积百分比、已迈出的步数、丝线长度(cm)。
- 环绕与缩放;手机上的响应式堆叠布局;自适应画质;支持减少动态效果。

溯源

原作者
vib3coded
发布日期
2026-10-05(由推文 ID 反解)
原始出处
查看原帖 ↗
收录来源
zhuyansen/awesome-opus-5.5-video · 2107127712871505976 · 未声明许可