OpenZhenZhen AI 提示词画廊 · Claude Opus 5.5 · video

可互动的果冻西瓜玩具

Interactive Jelly Watermelon Toy

创作者制作了一个可在浏览器中抓取、变形并切成多块的光泽果冻西瓜。提示词要求使用原生 WebGPU 和 WGSL,实现单文件 HTML。

可互动的果冻西瓜玩具 — AI video creation
可互动的果冻西瓜玩具

提示词 / Prompt

English prompt

Build "Whole Melon": a single self-contained HTML file (all JS/CSS inline, no build step, no libraries) with a big whole watermelon made of glossy jelly that you can grab, wobble and cut into pieces with a knife. Render with raw WebGPU (WGSL); if WebGPU is missing, show a clean fallback card. SHAPE AND MATERIAL - The melon is a signed distance field: an ellipsoid (~32 cm long) lying on its side with a softly flattened belly. - Layers by depth under the skin: dark-green skin with irregular darker stripes running pole to pole (seamless all the way around), a pale pith band, then translucent red flesh that brightens toward the rind. Add a pale yellow field spot on the belly, a stem scar at one end and a blossom end at the other. - About 700 seeds in a three-lobed ring at roughly two thirds of the radius (teardrops, wide end pointing outward), plus tiny air bubbles. Mesh seeds only near cut faces; a seed the knife goes through is kept by one side and eased just under the new face, so it shows through a thin film of jelly. - Three varieties: Crimson, Golden, Rosé. PIECES AND CUTTING - Every piece is the melon SDF clipped by the half-spaces of the cuts that made it, with the fresh edges rounded (smooth max). All pieces share the melon's original rest frame, so rind, pith, stripes and seeds stay exactly where they grew. - Knife tool: the user draws a line across the melon. Read the stroke on top of what it crosses to get a vertical blade plane. For each piece the plane passes through, fit the piece's best rotation, carry the plane into rest space, and split the piece in two. - Build the new pieces cooperatively (generators with a per-frame time budget) while a steel knife (brushed blade, wooden handle with rivets) lines up over the stroke and presses a groove into the jelly. Swap the new pieces in the moment the edge breaks through, carrying over the position and velocity of the flesh they came from, and let the blade wedge them apart as it sinks. Allow up to about 24 pieces and reject slivers. - For each piece: a surface-nets render skin (evaluate only the blocks near the surface, one Newton step onto it), a hex lattice in the piece's principal frame with boundary nodes snapped onto the surface, and a fast barycentric embedding. PHYSICS (XPBD on the CPU, fixed 60 Hz, 6 substeps) - Cell-wise co-rotational shape matching (8-node cells, warm-started rotation, strain stiffening), tet volume constraints for near-incompressibility, rind firmer than flesh. - Edge damping, plus damping of each piece's deformation relative to its rigid motion (never its fall or tumble), rolling resistance on the table, and sleep when calm. - Piece-to-piece contact against each other's exact SDF in a best-fit frame; sleeping pieces act as walls. Floor contact with Coulomb friction. - Hand tool: grab any piece and pull (soft patch attachment, with enough reach to drag pieces across a wide table). Scroll or a second finger twists while holding. Pinch or scroll zooms; dragging the empty table orbits the camera. RENDERING (a photographic product shot) - Procedural studio: pale paper sweep, overhead softbox, back-left strip light, cool fill card. - Jelly: front faces refract the scene behind by the view-ray thickness (nearest-back-face pass), with Beer–Lambert absorption per material, milky scattering in the pith, a back-lit glow at thin edges, sugar glints, Fresnel studio reflections and GGX highlights. - Seeds, bubbles and the knife are drawn before the jelly, so they are seen refracted through it. - Normals follow the jelly's local deformation (cofactor of the node-averaged deformation gradient). - A soft key shadow coloured by what the light crossed first (rosy through flesh, dark through rind), plus contact occlusion from a top-down height map. MSAA, Khronos PBR Neutral tone mapping. UI (editorial, like a material study) - Kicker "Material Studies / No. 010" and a big italic serif title "Whole / Melon." - A panel with Tool (Hand / Knife), Variety, Firmness and Internal damping sliders, Nudge, Reset, ¼ speed, Show mesh and Pause. - Live readouts: mass, volume %, kinetic energy, piece count. A collapsible "Inside the experiment" note. - Responsive down to phones. Quality bar: it should look and move like a real glossy jelly watermelon, and every cut face should look like a sliced jelly melon with seeds just under the surface. Test headlessly with screenshots: the whole melon, mid-cut, many pieces, a close-up of a cut face, and mobile.

主题与风格

探索更多图片和视频提示词 · 生成图片 · 生成视频 · 在 AI 画布中创作

  • 醉意连线:服务器机房自拍

    生成一段20秒、16:9画幅的电影感视频。画面展示一群明确成年的、开心但明显醉酒的黑客紧密聚在一起自拍;他们通过线缆与电脑实体连接,身处一间巨大且细节丰富的服务器机房,周围遍布机柜、显示器、硬件设备和缠绕的电线。采用充满动感的低机位视角,同时纳入人物与开阔的机房空间,并呈现史诗般的顶棚或天窗氛围。整体使用精致概念艺术风格:鲜艳色彩、温暖光线、体积雾、戏剧性的上帝光、繁复的科技细节与宏大尺度。手持自拍构图应富有活力和沉浸感,包含自然的群体动作、轻微醉酒摇晃、设备指示灯闪烁和电影级景深。所有角色均为虚构成年人;不要出现未成年人、真实人物肖像、标志、可读品牌名称或不安全的身体伤害。保持20秒内的视觉

  • 霓虹雨夜星河婚礼

    生成一段15秒、9:16竖屏、4K写实电影质感视频。使用所提供的身份参考图确定成年新娘的外貌,同时保留服装描述:高级闪钻鱼尾婚纱。成年新郎身穿深色丝绒西装。场景是雨夜奢华都市天台,赛博朋克霓虹与浪漫气氛结合。0–4秒:高位俯拍,镜头缓缓下降,黑色柏油路与积水如镜面反射模糊的城市霓虹。两人在画面中央撑透明雨伞漫步,带有克制的复古电影抽帧感。5–9秒:镜头围绕两人缓慢360度环绕。展现新娘精致的鹅蛋脸、自然眉、冷艳的狐狸眼、高鼻梁和微张红唇;展现新郎分明的下颌线、浓眉、明亮眼眸与深邃眼神。细小雨滴以极慢速度落下。他把雨伞倾向新娘,自己的半边肩膀被微雨打湿。身后的霓虹绽放成巨大的彩色散景。10–15

  • 城堡烟火与鼓阵终章

    生成一段20秒、16:9的真人电影感画面。夜晚,在卢瓦尔河谷一座灯光照亮的中世纪山顶城堡下方,草坪上的历史服饰鼓手同步敲击高举的大型战鼓。烟火表演进入终章,城堡垛口连续升起红、金、白色交叠的烟火齐射,勾勒塔楼与城垛轮廓,温暖的橙光穿透缓缓飘散的烟雾。采用温暖火炬光和轻微变形宽银幕光晕,呈现真实的烟火照明,并在静止护城河水面上表现细致倒影。成千上万的观众举起手机、挥臂欢呼。镜头以大幅度、中等速度围绕鼓阵进行弧形运动,逐步展示完整城堡立面、垛口、人群、烟雾、火花与护城河。全程保持连贯自然的运动、电影级真人写实质感、清晰的环境细节和盛大庆典终章氛围。

  • 极简奇幻戒指面孔图标

    生成一段20秒、16:9的动画,画面中心是一个嵌在华丽暗黑奇幻戒指中的极简矢量面孔图标。采用干净的几何轮廓、克制的黑色、炭灰色、古金色与柔和象牙色,配合细微氛围渐变、精确对称构图和高画质插画质感。开头让戒指轮廓从柔和的中性背景中逐渐显现,随后揭示抽象面部特征与内部徽记,最后以缓慢优雅的镜头推进、柔和全局光照、受控轮廓光和轻微漂浮粒子收束。保持图标清晰简洁,矢量边缘平滑,动作克制,呈现精致的电影感效果。不要文字、标志、水印、可识别的受版权保护角色、艺术家风格仿制或音频。

  • 命运棋局

    生成一段 20 秒、16:9 的奇幻插画风格动画。一块宏伟的棋盘如同战场般延展开来,黑白相间的棋格沐浴在戏剧性的电影光线中。棋子仿佛拥有意志与生命:兵如身披铠甲的步兵般严阵以待,象如庄严的秘术师,马蕴含着野兽般的力量与紧张感,国王与王后则以威严统御棋盘。微弱的魔法光辉在棋子周围聚集,暗示这场对弈由命运驱动,并隐约预示公开冲突即将爆发。采用丰富的绘画质感,营造传奇而迷人的氛围,镜头围绕棋盘缓慢、连续地向左环绕。逐渐积累紧张感,仿佛下一步棋就会唤醒整片战场。

  • 雪峰城堡上的欧洲巨龙

    生成一段20秒、9:16竖屏的电影感视频,采用中世纪奇幻油画风格,并呈现逼真生动的细节。一条欧洲巨龙栖息在高耸的积雪山峰之巅,塑造成受《龙与地下城》启发的奇幻角色。山峰及周围山体间环绕着气势恢宏、部分嵌入群山的砖砌城堡要塞。使用戏剧性的高山光线、随风飘落的雪花、浓郁的油画肌理、细致的鳞片、斑驳的砖石和富有层次的大气透视,营造庄严宏伟的氛围。镜头从广角建立镜头开始,随后缓慢而轻微地推进至巨龙,同时雪花飘过画面;全程保持巨龙与城堡清晰且外观连贯。不要文字、标志、流行度相关描述、源视频或音频输入。