ai21.net
言語

ジェリーパンプキンのレンダリング比較

ジェリーパンプキンのレンダリング比較 — 1

プロンプト

Build a single self-contained HTML file: a simple 3D "Jelly Pumpkin" demo using three.js from a CDN. Keep the code short and basic.

SCENE
- One orange pumpkin in the centre made from a low-poly sphere (about 24x16 segments) with 8 shallow ribs, flat shading.
- MeshPhongMaterial, slightly transparent (opacity 0.9), bright orange with a little emissive colour. No transmission, no environment map, no post-processing.
- Jack-o'-lantern face made of flat black 2D shapes (two triangle eyes, triangle nose, zigzag mouth) placed just in front of the pumpkin surface. No glow from inside.
- Simple green cylinder stem on top.
- Three small low-poly pumpkins (purple, green, orange) and four small flattened spheres as candy around it.
- White background, ambient light plus one directional light, basic hard shadows on the floor.

INTERACTION
- Click the pumpkin: it squashes slightly (scale Y down, X/Z up) and springs back quickly with no extra wobble.
- Drag the stem: draw a straight thin green cylinder from the stem to the cursor. Dragging upward lifts the whole pumpkin rigidly; release and it falls, with one small bounce.
- "Carve Face" button: instantly swap to a second face (two black circle eyes, round mouth).
- "Glow" slider: changes the emissive intensity of the pumpkin a little.
- "Add Candy" button: drops 16 small spheres from above; they fall, bounce once on the floor and stop. No collision with the pumpkin.

UI
- Plain HTML: title "Jelly Pumpkin" in bold Arial top left, subtitle "Click the pumpkin to make it wobble!".
- Top right white box with border: colour buttons (Orange, Purple, Green), Glow range input, "Carve Face" and "Add Candy" buttons with default browser styling.
- Bottom left small grey text with stats: "Wobble: 0.6 | Face: 1 | Candy: 0".

日本語訳

単一の自己完結型HTMLファイルを構築する:CDNから読み込んだthree.jsを使った、シンプルな3D「Jelly Pumpkin」のデモ。コードは短く基本的なものにする。

シーン
- 中央にオレンジ色のパンプキン1個。低ポリゴンの球体(約24×16セグメント)を8本の浅い畝で変形し、フラットシェーディング。
- メッシュフォンマテリアル、わずかに透明(不透明度0.9)、明るいオレンジに少しの発光色。トランスミッションなし、環境マップなし、ポストプロセッシングなし。
- 表面のすぐ手前に平面の黒い2D図形(三角形の目2つ、三角形の鼻、ジグザグの口)で作ったジャック・オー・ランタンの顔。内側からの光はなし。
- 上部にシンプルな緑色の円柱のヘタ。
- 周囲に小さな低ポリゴンのパンプキン3個(紫、緑、オレンジ)と、キャンディとして平たい球体4個。
- 白い背景、アンビエントライトとディレクショナルライト1灯、床には基本的なハードシャドウ。

インタラクション
- パンプキンをクリック:わずかに潰れ(Yスケールを下げ、X/Zを上げる)、余計な揺れなしですばやく元に戻る。
- ヘタをドラッグ:ヘタからカーソルまで、細い緑色の直線円柱を描く。上方向にドラッグするとパンプキン全体がリジッドに持ち上がり、離すと落下して一度だけ小さく跳ねる。
- 「Carve Face」ボタン:即座に2つ目の顔(黒い円形の目2つ、丸い口)に切り替える。
- 「Glow」スライダー:パンプキンの発光強度を少し変える。
- 「Add Candy」ボタン:上から小さな球体を16個落とす。それらは落下し、床で一度跳ねてから止まる。パンプキンとの衝突はなし。

UI
- プレーンなHTML:左上に太字Arialでタイトル「Jelly Pumpkin」、サブタイトル「Click the pumpkin to make it wobble!」。
- 右上に枠線付きの白いボックス:色ボタン(Orange、Purple、Green)、Glowのレンジ入力、「Carve Face」と「Add Candy」ボタン(ブラウザのデフォルトスタイル)。
- 左下に小さな灰色のテキストで統計:「Wobble: 0.6 | Face: 1 | Candy: 0」。

出典

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