Opus 5.5 日本山谷交互舟船 3D 场景提示词
本提示词由 @MengTo 公开分享,用于指导 Claude Opus 5.5 从零构建封建日本樱花山谷中舟船溯流而上的交互式 3D 场景。
场景涵盖地形、河流物理、昼夜与天气系统、人物村民、WASD 驾驶控制,并包含极尽详尽的资产嵌入、控制台错误排查与渲染优化清单。
- 原帖链接:https://x.com/MengTo/status/2103155074705019158
- 在线体验:https://valley.mengto.here.now
- 开源/源码地址:http://threeui.com
中文翻译提示词
这条推文火了。我在下方分享完整提示词。👇
源码可在 http://threeui.com 获取(共 450+ 案例,其中 150 个免费开源)。对于初学者,我在 http://designcode.io 的课程中讲解如何从零编写这类提示词。
---
从零开始创建一个完全可交互的 3D 场景:樱花季节的封建日本山谷河流中,一艘传统木船被船夫撑篙逆流而上。视觉风格应当是具有电影质感与绘画美感的风格,而非简单追求照片写实,同时必须保持极其丰富、细腻、精致且在视觉上高度成熟的品质。
构建山谷地形、河流、河岸、岩石、樱花树、红枫、云松、森林、地表植被、寺庙建筑、舟船、撑篙船夫、村民、天空、云彩、远山、光照、材质、水体、倒影、花瓣、薄雾、粒子、野生动物、天气系统、完整的昼夜循环、声音音效、动画系统、运镜调度、画面构图、大气景深与电影级色彩调色。最终成片必须给人以高制作规格、精美 3D 艺术品的感觉,而非粗糙的原型、技术演示或低质场景。
从完全空白的页面开始。严禁复用或依赖任何先前的项目或现有场景。你可以纯靠代码生成资产,或在必要时引用可靠、受信任且开源的资产和库。
强制要求:
全场景内严禁出现任何形式的文字,包括加载屏幕。严禁任何语言的标题、名称、Logo、描述、致谢、标签或操作控制说明。任何加载指示器必须纯以图形呈现。
将整个工程交付为单个最终独立的网页文件,可直接在浏览器中双击打开运行。资产必须尽可能内嵌在文件内部,严禁在运行时发起对外部 CDN 的请求。
山谷必须让人感到是一个连续、真实可信的物理空间。一条蜿蜒的河流顺着长长的山谷流下,上游逐渐收窄为峡谷。河中央有深水水道,两侧边缘是浅滩碎石。河岸在砾石滩与较陡的泥土河岸之间自然过渡。长满森林的山谷峭壁隆起为浑圆的青山,远处的山脉一层层隐入雾霭烟霞。
沿河构建以下地标性景观:
- 一座横跨在水面桥墩上的朱红色木质拱桥。
- 桥头尽头的一座神道鸟居。
- 通往石阶与干砌石挡土墙支撑的寺庙露台的林间小道。
- 一座带有弧形瓦顶歇山顶(入母屋造)、飞檐翘角、斗拱、带栏杆的回廊与格栅拉门的寺庙正殿。
- 位于小山丘上的一座带有环状相轮刹顶的五重宝塔。
- 参道小径两旁的石灯笼。
- 对岸开阔空地上的一座路旁小祠堂。
- 一排沿上游河岸攀爬至山腰小神社的密集朱红色小鸟居连廊。
- 挂着御币纸垂的注连绳围栏。
- 悬挂于屋檐四角、随风摇曳的风铃。
对于植被景观,请手动布局关键樱花树,包括一株垂枝樱。给它们粗壮虬曲、倾斜生长的树干,让部分枝桠悬垂在水面之上,枝头挂满密集的繁花。在山坡上加入红枫、修剪成云朵状的日本松,以及由雪松和阔叶林构成的密集混交林。地表铺满随风起伏的野草、芦苇、春季野花、蕨类、修剪整齐的杜鹃花丛、苔藓斑驳的巨石,以及水边裸露盘错的树根。所有草木植被必须在同一阵阵风中同步摆动,花瓣在背光照耀下必须呈现透光辉映的质感。
核心主角船只是一艘高濑舟(Takasebune)风格的内河木质货船。必须具备具有真实厚度的木板船体、肋骨、横梁、底板和铁质加固扣件。船上带有竹拱支撑的芦苇草席顶棚,装载着一车车稻米包、木箱和一个陶釉大罐,配有盘绕的绳索、弓形竹竿上挑起的船头灯笼,以及收纳在船尾一侧的摇橹。
一位身披蓑衣的船夫站在抬高的船头平台上,用一根长长的竹篙撑船,发力时调动全身:髋部下沉,脊柱倾斜借力推撑,双脚稳稳扎根,双手牢牢握持竹篙。蓑衣随风和每一次撑篙动作自然反应。撑篙绝对不能穿透船体、手掌或任何其他物件。
加入两位村民角色:一位撑着红色油纸伞的女子伫立在桥栏边眺望行船;一位年迈的僧人在寺庙参道前清扫飘落的花瓣。两人都必须带有细微的呼吸与动作。
水体必须是整个画面的核心灵魂:
- 能够精准倒映其上方的一切倒影(桥梁、建筑、花树、天空)。
- 具备水体折射与基于深度的光线吸收色彩变化,在浅水区可清晰透见水底的鹅卵石河床。
- 表面带有顺应水流走向的流动波纹。
- 在巨石和桥墩迎水面有流速加快的翻滚水流与白色泡沫浪圈,泡沫顺流向后漂移拖尾。
- 船体后方带有逼真的尾迹:船头破浪波、V 形展开的浪褶,以及贴合船舷两侧的扰动水纹带。
- 沿河岸静水缓流处漂浮着成团积聚的花瓣浮排。
让山谷充满生命力与氛围粒子:
- 花瓣从每一簇樱花树冠旋转飘落,漫空穿梭。
- 花瓣随水流向下漂移,静静栖落在河岸、石阶与桥面上。
- 微尘粒子只在透过的太阳光柱(丁达尔光束)中发亮显现。
- 低空河雾在水面上成片缓缓流淌漂移。
- 鸟群在山谷上空盘旋翱翔,偶尔有一对白鹭横穿河流从船头前方掠过。
- 黄昏时分,萤火虫在草木水边飞舞闪烁。
运行一个持续数分钟且无限循环的完整昼夜天气周期:黎明、清晨、正午、午后雷暴、黄金时刻、日落、蓝调时刻、月光之夜、拂晓。太阳沿真实的物理弧线运行;夜晚月亮作为主光源接管照明,阴影随光源方向实时投射。天空色彩、带有金银边镶边的云层、雾霭、环境光强度、曝光与调色均随时间实时变化。夜晚展现璀璨星空、淡淡的银河带以及带有陨石坑细节的明月。
午后雷暴使云层聚拢变厚,化为压抑的阴霾暗色。带来雨丝倾盆、水面密集的飞溅水花环,以及照亮整座山谷与云层的树状分叉闪电。所有物体表面变得潮湿反光,随后在日落时分缓缓风干。
黄昏入夜之后:
- 石灯笼和寺庙正殿的拉门透出温暖烛光。
- 水面上放流的纸灯笼(放水灯,Tōrō nagashi)缓缓漂过,在船体两侧分流散开。
- 带有彗星般拖尾的苍白幽灵微光在水面游荡,照亮周围的水体、雾气与河岸,并在水中形成倒影。
黄金时刻是本作品的标志性视觉:温暖的低角度夕阳斜射山谷,投下长长的影子,穿过林木与薄雾的丁达尔圣光,透亮背光的繁花,以及温暖的大气薄雾。
加入由流水声、雨声和闪电后滚滚而来的雷鸣声构成的合成氛围音效,并支持键盘按键一键静音。
舟船必须能完全自主逆流航行。一套自动导航算法引领木船在暗礁岩石与桥墩间穿梭穿行,绝对不发生碰撞。观看者可用 WASD 或方向键随时接管驾驶。操舵手感必须包含动量、转向惯性、水流阻力以及过弯时的船体侧倾。河岸、礁石与桥墩在物理层面上推阻反弹船只。闲置片刻后,自动巡航无缝恢复接管。
采用第三人称追随相机跟随船只,支持拖拽环绕查看、滚轮缩放景深,并伴随缓慢的电影感镜头漂移。镜头绝对不可穿入河岸以下或穿透树冠。长按特定按键可快进昼夜时间流速。当船只航行至峡谷尽头源头时,画面隐入浓雾并在下游重新开始,使旅程无限无缝循环。
水流、船只、船夫、枝叶、花瓣与相机运镜必须全部自然流畅运转,避免人工机械感或迟钝卡顿。木船必须呈现出真正顶着逆流破浪前行的力道感。
严禁使用简单的基础几何体敷衍成片。树木、建筑、船只、角色与岩石都需要经过精心塑形的多边形几何结构,并清晰展现小尺度细节:树皮纹理、屋顶瓦片、屋椽、木构榫卯、船板拼接、绳索捆扎以及竹节。对岩石、树皮、泥土、石墙和木材使用精细的高质量纹理。所有物体必须稳稳落在地面或浮于水面,严禁悬空漂浮,严禁模型穿插穿模。
光照必须在全天各个时刻都清晰展现几何形体与材质质感。运用柔和阴影、角落裂缝与树根处的环境光遮蔽(AO)、体积光束、泛光(Bloom)以及胶片级调色。阴影暗面必须保留细节层次,绝不能死黑一片。
在极致视觉质量与实时运行性能之间保持极佳平衡,兼顾高分屏(Retina)显示,确保交互与动画丝滑流畅,绝不在画质上做明显妥协。
主动自动选用最合适达成最佳成效的技能、工具、库、技术与可用资产,不要等待我来指定具体使用何种技术栈。
在桌面浏览器中真实运行并验证测试最终成品。在清晨、暴风雨、黄金时刻和夜间四个时间点截取屏幕截图进行检查。检查浏览器控制台中的报错与警告,彻底修复所发现的每一处可见或技术性缺陷。包括几何变形、黑屏、资产加载失败、动画卡死、不良构图、渲染伪影、漂浮或穿插物体、船只或竹篙穿模以及相机穿帮问题。
最终确认交付文件可直接无障碍打开运行,场景内绝无任何多余文字,且无任何运行时或加载期报错。随后以简明回复完成任务。
原版提示词
This blew up. I'm sharing the full prompt below. 👇
The source code is available on http://threeui.com along with 450 more. 150 are free and open-source. For beginners, I'm teaching how to prompt these from scratch in my courses on http://designcode.io
---
Create from scratch a fully interactive 3D scene of a traditional wooden riverboat being poled upstream through a mountain river valley in feudal Japan during cherry-blossom season. The visual style should be cinematic and painterly rather than photorealistic, while still being exceptionally rich, detailed, polished, and visually sophisticated.
Build the valley terrain, river, riverbanks, rocks, cherry trees, maples, pines, forest, ground cover, temple architecture, boat, boatman, villagers, sky, clouds, distant mountains, lighting, materials, water, reflections, petals, mist, particles, wildlife, weather, a full day-and-night cycle, sound, animation, camera work, composition, atmospheric depth, and color grading. The final result should feel like a premium, high-production 3D artwork, not a prototype, technical demo, or low-quality scene.
Start from a completely blank page. Do not reuse or depend on any previous project or scene. You may create the assets yourself or use reliable, trusted, open-source assets and libraries when necessary.
Mandatory requirements:
No text of any kind may appear anywhere inside the scene, including the loading screen. No titles, names, logos, descriptions, credits, labels, or control instructions in any language. Any loading indicator must be purely graphic.
Deliver the entire project as one final standalone page file that can be opened directly in a web browser, with assets embedded inside it as much as reasonably possible and no runtime requests to external CDNs.
The valley must feel like one continuous, believable place. A winding river flows down a long valley that narrows into a gorge upstream. It has a deep channel and shallow pebbled margins. Its banks vary between gravel bars and steeper earthen banks. Forested valley walls rise into rounded mountains, and far ranges fade layer by layer into haze.
Build these landmarks along the river:
- An arched vermilion wooden bridge on piers that stand in the water.
- A torii gate at the bridge's end.
- A path to stone steps and a temple terrace held up by dry-stone retaining walls.
- A main hall with a curved tile hip-and-gable roof, upturned corners, bracket sets, a railed veranda, and lattice doors.
- A five-storey pagoda with a ringed spire on a knoll.
- Stone lanterns along the approach.
- A small wayside shrine in a clearing on the far bank.
- A tunnel of small vermilion torii climbing the bank upstream to a hillside shrine.
- A rope fence with paper streamers.
- Bells hanging from the roof corners that swing in the wind.
For vegetation, place hero cherry trees by hand, including a weeping cherry. Give them gnarled, leaning trunks, let some overhang the water, and cover them in dense blossom. Add Japanese maples, cloud-pruned pines, and a dense mixed forest of cedars and broadleaf crowns on the slopes. Cover the ground with wind-blown grass, reeds, spring wildflowers, ferns, clipped azalea shrubs, mossy boulders, and exposed roots at the water's edge. All foliage must move in one shared, gusting wind, and the blossoms must glow when backlit.
The hero boat is a takasebune-style river cargo boat. It needs a planked hull with real thickness, ribs, thwarts, floorboards, and iron clamps. Give it a reed-mat canopy on bamboo hoops, a cargo of rice bales, crates, and a glazed jar, plus coiled rope, a bow lantern on an arching bamboo pole, and a sculling oar stowed at the stern quarter.
A boatman in a straw cape stands on a raised bow platform and poles the boat with a long bamboo pole, using his whole body: hips drop, the spine leans into the push, the feet stay planted, and both hands grip the pole firmly. The cape reacts to the wind and to each stroke. The pole must never pass through the hull, the hands, or anything else.
Add two villagers. A woman under a red oiled-paper umbrella stands at the bridge rail watching the boats. An old monk sweeps petals off the temple approach. Both breathe and move subtly.
The water must be the centrepiece. It needs:
- Accurate reflections of everything above it.
- Refraction and depth-based color absorption, with the pebbled riverbed visible in the shallows.
- Ripples that follow the flow.
- Faster water and white foam collars around boulders and bridge piers, with foam trailing downstream.
- A convincing wake that follows the boat: a bow wave, V-shaped arms, and a disturbed band along the hull.
- Rafts of petals drifting in the slack water along the banks.
Fill the valley with life and particles:
- Petals tumble from each cherry canopy and through the air.
- Petals ride the current downstream and settle on the banks, the steps, and the bridge deck.
- Dust motes glow only inside the sunbeams.
- Banks of low river mist drift over the water.
- Flocks of birds wheel over the valley, and a pair of herons sometimes crosses the river ahead of the boat.
- Fireflies come out at dusk.
Run a continuous day-and-night cycle of several minutes that loops: dawn, morning, afternoon, a thunderstorm, golden hour, sunset, blue hour, moonlit night, pre-dawn. The sun travels a real arc, the moon takes over as the key light at night, and shadows follow whichever one is lit. Sky color, clouds with silver-gold linings, fog, ambient light, exposure, and the color grade all change with the hour. At night, show stars, a faint Milky Way band, and a cratered moon.
The afternoon storm thickens the clouds into a dark overcast. It brings rain streaks, splash crowns on the river, and branching lightning that lights the clouds and the whole valley. Surfaces turn wet and glossy, then dry slowly through sunset.
After dusk:
- The stone lanterns and the hall's doors glow.
- Paper lanterns set adrift on the river (tōrō nagashi) flow past and part around the boat.
- Pale spirit wisps with comet-like trails drift above the water. Each one lights the water, mist, and banks around it and appears in the reflections.
Golden hour is the signature look: a low warm sun up the valley, long shadows, god rays through the trees and mist, backlit blossoms, and a warm haze.
Add a quiet synthesized soundscape of flowing river, rain, and thunder that rolls in after each flash, with a keyboard toggle to mute it.
The boat must travel upstream on its own. An autopilot threads it between rocks and bridge piers without ever touching them. The viewer can take over with WASD or the arrow keys. Steering needs momentum, turning inertia, water drag, and a heel into turns. Banks, rocks, and piers push the boat back physically. After a short idle period, the autopilot resumes.
A third-person chase camera follows the boat with drag-to-orbit, scroll-to-zoom, and a slow cinematic drift. It must never dip below the banks or into tree canopies. Holding a key fast-forwards the time of day. When the boat reaches the head of the gorge, the scene fades into mist and restarts downstream, so the journey loops forever.
The water, boat, boatman, foliage, petals, and camera must all be animated naturally and smoothly. Avoid artificial slow motion or sluggish movement. The boat should feel like it is genuinely being pushed upstream against the current.
Do not rely on primitive geometric shapes as the finished result. The trees, architecture, boat, characters, and rocks need carefully shaped geometry and clearly visible small-scale details: bark, roof tiles, rafters, joinery, planking, rope lashings, and bamboo nodes. Use detailed, scanned, or high-quality textures for rock, bark, ground, stone walls, and wood. Everything must rest on the ground or the water. Nothing may float, and no objects may intersect.
Lighting must reveal the geometry and materials clearly at every hour. Use soft shadows, ambient occlusion in crevices and at roots, light shafts, bloom, and a filmic grade. Shadow sides must stay readable, never crushed to black.
Maintain a strong balance between visual quality and real-time performance, including on high-density (Retina) displays, preserving smooth interaction and animation without making an obvious sacrifice in quality.
Automatically use the most appropriate skills, tools, libraries, techniques, and available assets needed to achieve the best result. Do not wait for me to specify which technologies to use.
Actually test the finished result in a desktop web browser. Capture screenshots at morning, during the storm, at golden hour, and at night. Inspect the browser console for errors, and fix every visible or technical issue you find. That includes distorted geometry, black screens, failed asset loading, broken animation, poor composition, rendering artifacts, floating or intersecting objects, the boat or pole clipping through anything, and camera problems.
At the end, verify that the final file opens and works directly, that the scene contains no text whatsoever, and that there are no remaining runtime or loading errors. Then finish the task with only a brief response.