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 文件:一個簡單的 3D “Jelly Pumpkin” 演示,使用來自 CDN 的 three.js。代碼保持簡短基礎。

場景
- 中央一個橙色南瓜,由低多邊形球體(約 24x16 分段)構成,帶 8 條淺棱,平面着色。
- MeshPhongMaterial,略微透明(opacity 0.9),亮橙色,帶一點自發光顏色。不使用 transmission,不使用環境貼圖,不使用後期處理。
- 南瓜燈臉由扁平的黑色 2D 形狀(兩隻三角形眼睛、三角形鼻子、鋸齒形嘴)構成,緊貼在南瓜表面前方。內部不得發光。
- 頂部一個簡單的綠色圓柱形瓜蒂。
- 周圍有三個低多邊形小南瓜(紫色、綠色、橙色)和四個小扁球體作爲糖果。
- 白色背景,環境光加一盞平行光,地面有基礎的硬陰影。

交互
- 點擊南瓜:它略微壓扁(Y 軸縮放變小,X/Z 軸變大),然後迅速彈回,不產生額外晃動。
- 拖拽瓜蒂:從瓜蒂到光標之間繪製一根筆直的細綠色圓柱。向上拖拽會剛性地抬起整個南瓜;鬆開後它下落,並有一次小幅彈跳。
- “Carve Face” 按鈕:立即切換到第二張臉(兩隻黑色圓形眼睛、圓形的嘴)。
- “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 · 未聲明授權