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 · 未聲明授權