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.

形式とスタイル:
- ネイティブ WebGPU 上の、単一の自己完結した HTML ファイル。完全にプロシージャル(アセットなし、ライブラリなし)。
- シリーズと同じエディトリアル・スタイル:セリフ体のマストヘッド、側面の標本パネル、ライブの読み取り値、「Inside the experiment」の注記。

標本:テーブルの上に座った、かわいいぬいぐるみのクモ。
- 体はひとつの符号付き距離場:
- ニット風のストライプが入った、大きく丸い腹部;
- そこに収まった、やや小さな頭部兼胸部。ふたつのふわふわした頬をもつ;
- やや淡い色の腹側。
- 顔:
- 白いフェルトの円盤の上に載った、光沢のある大きなビーズの目がふたつ;
- その上に並ぶ、小さなビーズの目が四個;
- 赤らんだ頬、刺繍の微笑み、そしてフェルト製の小さな牙がふたつ。
- ポーズを変えられるぬいぐるみの脚が八本、片側四本ずつ、胸に沿って縫い付けられている。靴下のようなストライプで、先端は淡い色の小さな足になっており、内部にワイヤーが通っている。

物理 — 体:
- ヘックスセル格子(hex-cell lattice)上の XPBD ソフトボディ:コ・ロテーショナル形状マッチングに四面体体積、60 Hz、6 サブステップ。
- 重力と床の摩擦。座り込んだ部分は接地を保つ。
- おもちゃは、最後に歩いた方位(ヨーを含む姿勢)へ向かってゆっくりと体勢を戻す。
- 腹部は呼吸する:セルの静止形状と静止体積が膨らむ。

物理 — 脚:
- 各脚は、体の格子に埋め込まれた股関節からつま先までを結ぶ XPBD ロッド・チェーン。
- 体の座標系でブレンドされたポーズ(座る、立つ、ぶら下がる、丸まる、振る)が、各点を目標へ引き寄せる:股関節では強く、つま先へ向かうほど弱い。そのため脚は形を保ちつつも、たるみ、揺れる。
- ワイヤーは塑性変形する:手で脚をその許容範囲を超えて曲げると、ポーズ自体が新しい形を取り、脚は「Straighten legs」まで曲がったままになる。
- 体に追従する球が、脚を体から離しておく。つま先はテーブルを掴む。指は脚を押しのける。
- 脚を届く範囲より遠くへ引くと、その股関節のところでクモが引っ張られる。

挙動:
- 歩行:
- 体は高さコントローラによって脚の上まで持ち上がる;
- 弱い引力で目標へ導かれ、そちらへ向きを変える;
- つま先はテーブル上の足場へ引き寄せられる;
- 四本ずつ交互に動く歩容が、最も遅れて取り残された組を持ち上げ、前方へ小さな弧を描いて下ろす;
- ときどき、勝手に歩き回る。
- Curl up(ボタン、または指でつつく):脚が背中の上へ抱き寄せられ、クモは触られた方向から球のように転がり離れ(足場も転がり抵抗もなし)、その後ほどけて体勢を戻す。
- Hang on silk:
- 高いところのアンカーから背中の一区画へ渡された、引く力だけを及ぼすばね状の糸;
- テーブルから巻き上げられ、押されると揺れ、脚は空中を漕ぐ;
- もう一度押すと、テーブルへ戻される。
- Wave:前脚の一本が持ち上げられ、小刻みに振られる。
- Finger ツールを使うと、クモは指のところまで小走りで寄ってくる。

レンダリング:
- シェルファー:ベースに加えて N 枚のインスタンス化シェル、4× MSAA 下の alpha-to-coverage。
- 毛の寝る向きは変形勾配によって運ばれ、先端には減衰ばねによる遅れが付く。
- Kajiya–Kay ハイライト、ベルベットの光沢、コームツール。
- 静止空間で塗り分けた領域:腹部のストライプ、淡い腹側、フェルトのアイディスク周囲の短いパイル、頬、微笑みの溝、股関節まわりの縫い目。
- 脚は毎フレーム、ぬいぐるみのチューブとして描画される:
- 各ロッドを通る Catmull–Rom 曲線に沿って、パラレル・トランスポート・フレームでスイープ;
- わずかに膨らんだ膝と、丸みを帯びた小さな足;
- 縞状の色と、より短いパイル。
- 細く光るシルクの糸。
- 柔らかな PCSS キーライトの影、スタジオの床のコンタクト・オクルージョン、Khronos PBR Neutral トーンマッピング。
- NaN に安全な WGSL:クランプした pow と smoothstep、クランプしたポスト処理。

UI:
- ツール:
- Hand:体を持ち上げて潰す、または脚を掴んで曲げる;
- Finger:クモがそれを追い、つつくと丸まる;
- Comb:パイルをブラッシングする。
- ボタン:Walk、Hang on silk、Curl up、Wave、Straighten legs、Smooth fur、Reset。
- スライダー:Stuffing、Pile、Wire(floppy to stiff)。
- パレット:Midnight(濃いプラムにライラックのストライプ)、Tangerine(オレンジに茶色のストライプ)、Moss(緑に黄色のストライプ)。
- 読み取り値:mass、volume % of rest、steps taken、silk length in cm。
- オービットとズーム;スマートフォンでのレスポンシブな積み重ねレイアウト;適応的品質;モーション低減の対応。

出典

原作者
vib3coded
公開日
2026-10-05(由推文 ID 反解)
原典
元の投稿を見る ↗
収録元
zhuyansen/awesome-opus-5.5-video · 2107127712871505976 · ライセンス未表明