保留原始需求
阅读原作者的帖子;调整提示词时,保留所有必需的参考素材或依赖项。
作者分享的提示词,明确说明用于 Opus 5.5,旨在复刻 React Native 取货流程。它会生成一个风格化的 3D 店面和城市街区场景,其中立体凸出的二维码模块逐渐压平,最终转为 2D 取货二维码界面。随附的五张带时间戳图片是必须遵循的参考依据。
同一个角色,两种真实制作方式。不同任务的结果会有所不同。
# 构建:“街景到二维码”取货转场(像素级还原)
在 React Native 应用中尽可能准确地还原这段 8.17 秒的流程。咖啡订单准备就绪后,镜头从街道高度升至店铺上方。俯视所见的 3D 城市街区**就是**取货二维码,随后它会压平为取货页面上的真实 2D 二维码。
随附 5 张带时间戳的参考图,文件名分别为:`t0.00`(开场)、`t4.40`(二维码模块开始出现)、`t4.70`(镜头越过屋顶最高点)、`t5.00`(接近俯视中央环形区域)、`t8.00`(最终页面)。它们是唯一标准。如果本说明与图片不一致,以图片为准。图片之间的所有内容都在下面的时间线中描述。
这些图片是手机屏幕的录屏,屏幕置于 `#E9E8ED` 背景上,并带有柔和阴影。该背景不属于应用。在每张 1080x1920 图片中,屏幕范围为 x 163-917、y 75-1710,比例为每 1.916 个图片像素对应 1pt。
## 技术栈与交付内容
- 使用 Expo 和 TypeScript 构建 React Native 应用。如果当前已有项目,请集成到其中,并沿用现有的导航和代码规范;否则请创建项目。优先适配 iOS。
- 3D 场景:`expo-gl` + `three` + `@react-three/fiber/native`,置于全屏 UI 后方。
- UI:使用 `react-native-reanimated` 为原生 RN 视图添加动画。磨砂表面使用 `expo-blur`。最终二维码和图标使用 `react-native-svg`。字体使用 `@expo-google-fonts/inter`。
- 没有 DOM,因此无法使用 `document.createElement('canvas')` 纹理。尽可能通过几何体构建细节。其余部分(招牌字样、店铺内部、石材砌缝)请编写一个仅供开发时使用的脚本生成 PNG 纹理,将其提交到项目中,并使用 `expo-asset` 加载。不要使用外部模型或照片。
- 保持场景轻量:合并静态几何体,并使用 `InstancedMesh` 绘制二维码模块,使所有模块只需少量绘制调用即可完成。将柔和阴影烘焙到纹理中,或使用平面阴影,而不是实时阴影贴图,除非实时阴影贴图不会影响帧率。
- 屏幕挂载时自动播放。目标是在实体 iPhone 上达到 60fps。
- **所有内容都由一个主时钟 `t` 驱动,单位为秒**。该 Reanimated 共享值从 0 线性运行到 8.17。场景通过 `useFrame` 读取它,UI 通过 `useAnimatedStyle` 读取它。每个属性都必须是 `t` 的纯函数,不得使用独立的弹簧动画或计时器,以免出现漂移。
- 添加仅供开发使用的暂停方式,可在任意时间冻结画面(例如使用深层链接 `?t=4.6`),用于下面的验证。还要添加仅供开发使用的点击重播功能。
- 最终页面需要实现真实行为:显示取货页面时,通过 `expo-brightness` 提高屏幕亮度,关闭页面后恢复亮度,与文案承诺一致。“x”按钮关闭整个流程。“分享”和“添加到 Apple Wallet”可以使用无操作占位实现。
## 布局
- 设计尺寸为 393x852pt(iPhone 15/16)。以下所有位置均以该尺寸为基准。使用安全区域内边距和比例缩放,使其他 iPhone 尺寸也能保持正确布局,并确保二维码始终居中且为正方形。
- 使用深色内容样式的真实设备状态栏、真实灵动岛和真实底部 Home Indicator。不要绘制假的系统元素。状态栏始终显示在场景上方。
- 如需获取与参考图匹配的截图,请运行 `xcrun simctl status_bar booted override --time 9:41 --batteryState charged --batteryLevel 100`。
- 字体:Inter,字距收紧。以下字号为以 pt 为单位的测量估值。
## 屏幕 1:订单状态(t = 0 到 3.0)
全屏铺满 3D 场景,后方放置一张悬浮的磨砂面板。
**圆形玻璃按钮**:43pt,距左右边缘 16pt,距顶部 61pt。半透明白色,带背景模糊和细微高光边缘。左侧为返回箭头,右侧为“...”。
**面板**:左右内缩 8pt,顶部位于 540pt,底部内缩 4pt,圆角 34pt。使用磨砂效果,并让场景明显透过面板呈现模糊效果:顶部为 `#DEDFDC`,到中部逐渐稳定在约 `#F1EDEA`。顶部边缘附近居中放置 36x4pt 的灰色拖动条。内边距 16pt。
从上到下:
1. “订单 A42”:13pt 半粗体灰色。
2. “制作中”:34pt 粗体,接近黑色。
3. 时钟图标 + “大约还需 **2** 分钟”:15pt 灰色,数字为黑色粗体。
4. 三段式进度条:高度 5pt,完全圆角,间距 6pt;轨道为 `#E3E1DC`,填充为 `#69A25F`,大约位于 y 662pt。下方标签字号为 13pt:“已下单”“制作中”“已就绪”。当前标签使用黑色粗体,其余标签为灰色。
5. 白色卡片 `#FCFAF8`,圆角 18pt,高度约 125pt,分为上下两行,中间以细线分隔:
- 36pt 圆形 `#E0FFD7`,其中放置深绿色 `#4E7151` 冰饮杯图标;右侧为“Blondie Matcha”16pt,以及“标准杯,冰饮,燕麦奶”14pt 灰色;最右侧为右对齐的“£4.45”灰色文字。
- 同样的圆形中放置店铺图标;右侧为“42 Gordon Street”和“到取货柜台领取”;最右侧为灰色右箭头。
## 3D 场景
单位:**1 个世界单位 = 1 个二维码模块。**地面平面是二维码的坐标系,模块 (22,22) 位于世界原点。
**二维码矩阵**(45x45,版本 7,`#` = 深色;从最终画面读取,按原样使用):
```
` #######.#..##....###.#.#.....##.##..#.####### #.....#....#.###.##......#.#...#...#..#.....# #.###.#..#######.#.#..##.###.#...#.#..#.###.# #.###.#...#.##.#..#.###.#.#.######.##.#.###.# #.###.#.##...##.###.#########.#.#####.#.###.# #.....#.#...#...#.#.#...#...##.##.....#.....# #######.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.####### ............#.......#...###..#.#..#.#........ .#######.#.###.#.#..#####.##.....##.#..##...# .##..#.######...#..#####.##..#.#..##.#.#.#... #.###.###....##.##.#...#...#..#..#...##...... .##..#.#..##.###.#.#.###....#.#..#.#.#.#.#... ...#####..#.....#.#..#.###.#.####.......#.#.# ##.###.##.##....#..#.#..#.....#.##..##.##.#.# #####.###..#...#.##...##.#.#.####.....#.####. ..#....#.....#..###..#########.#.######...##. .##...####.##.######.##...#......###..##.###. ..#.#..#.#####.#...#.#.#.##..#.#.#..###..#..# ..###.#.###...###.##.#.#...#..#..###...#...#. .##.##.#.###.###..##...#......###.#.#..#.#... .##.#####.##..#.#...######.#.##...#.#####.### ##..#...#.#.#.#.#.#.#...#.....#.##..#...#..#. #.###.#.#..####..####.#.##.#.##...###.#.#.#.. #.###...#..##..####.#...#..#.##.##.##...####. #.#.#####....######.######..####....######... #..###.#...#..##...#.####.########.#.#..#.... .#..#####..#.####.#..#....#.##.##..#...###### ....#..####..#.#...##.#.#......#..#.##..#.#.# ###.###.#..#.#.########..#.#..#..##..##....## .#.#.#.#.#.....##...#######..###..#.#.##.#.#. #....###.....##.##..#.#...##..#..#..###...... #...##....#.#...#.#.###.#.##..#..#.....#.#.#. #.#####.#..#.###...#.#......#####..##..##.#.. #.#.##..#.....######.....####.#.##.#.#....##. ....#.###.#.####..##.##.#...#####..#...#####. .####..#.####..#...###.##....#.#..#.##..#.#.# #..##.#...#.###.##.######........##.#######.. ........#.###.##...##...#.#.##.#..###...##.## #######.#.....#.##..#.#.#..##.#..#..#.#.#..#. #.....#.#.#....######...#..##.#...#.#...##... #.###.#.#..#.##...#.#####.#..####.#.#####.### #.###.#.#.....##.###...#.#.##.#.##.#....#.##. #.###.#.#.#.#....#.###...#.#.########....##.. #.....#.#.#####.#.#...#.#..#.#.##.####.#..#.. #######..#...#...###........#..#..#####..###. `` **The key idea:** the center alignment pattern (rows and columns 20-24) *is the hero building*. Its dark outer ring (5x5 modules, 1 module thick) is a hollow courtyard building with a flat dark roof. The courtyard is 3x3 modules of light ground, with a single dark block at its center. The storefront is the south face of this ring. The camera therefore flies up over the facade, passes the roof edge, and looks down into the courtyard, which is already the middle of the QR. **Hero building, south face.** Warm limestone (about `#D9C4A1`) with faint block coursing, a horizontal string course per floor, and two vertical pilasters that divide 3 bays. About 3 visible upper floors in the opening frame, more above. 3x2-pane sash windows in blue-slate `#647985`, cream frames, sills. A dentil cornice and parapet at the top, with the inner courtyard walls in the same stone and window style. **Shopfront at ground level:** - Green fascia `#69A25F`, angled slightly outward, with "BLANK ▪ STREET" in small spaced white caps. - Green mullions, cream interior panels. - Central dark green door `#31452C` with a brass pull. - Pendant lamps, shelves with small green packages, menu board, and diagonal white glass-reflection streaks. - Green stall risers `#4E7151`. - Boxwood topiary balls in stone planters at both ends. - Outdoor seating: 3 small round white-topped tables with black bases and dark green chairs, casting soft shadows. - A small green sign/box at the far right. **Street** (front of the building, moving toward camera): pale pavement strip with a thin yellow line at the kerb, gray road about `#A7A7A5` with a white dashed lane mark, then large cream paving slabs `#F1EDEA` near the camera. **Neighbors:** buildings either side use the same stone, with dark brown ground floors. Visible at the edges from about t = 4.2. **Every other dark module** is a small extruded building block, 1x1 in footprint, merged into visual clumps with neighbors. Flat roof with a subtly varied near-black tint per module: navy `#1B1E26`, warm `#231D1A`, olive `#201D17`, teal about `#1A2A2A`. Tiny dentil detail along roof edges where facades are visible. Light modules are bare ground. **Light:** warm directional sun casting soft shadows up and to the left on screen when viewed from above. Stylized, soft, illustrative, non-photoreal. Treat it as a flat illustration given depth, not PBR. ## Master timeline (measured from the video) Easing should feel continuous. The camera move is the single dominant gesture, slow to start and fast through the top-down reveal, between t = 4.4 and 5.2. | t (s) | What happens | |---|---| | 0.00 | Screen 1, camera at street level looking at the facade. Fascia at about 46% of screen height, road directly below. "Making" segment about 60% full and filling linearly. | | 0.70-0.90 | Digit "2" rolls vertically to "1", with motion blur and fade. | | 1.40 | Bold label switches from "Making" to "Ready". | | 1.50-1.60 | Title crossfades "Being made" to "Ready" with blur, in place. The subtitle crossfades to a check-circle + "Show your code to the barista" (no bold digit). | | ~1.60 | "Making" segment reaches 100%. | | 1.60-2.30 | "Ready" segment fills: about 23% at 1.7, 85% at 1.9, 98% at 2.1, full at 2.3. | | 2.30-3.00 | Hold. | | 3.00-3.30 | Sheet drops off the bottom with ease-in, revealing the paving. | | ~3.10 | Buttons morph: back to "x", "..." to share icon, quick crossfade. Glass stays. | | 3.20-4.00 | Camera begins to rise and pitch down. Verticals converge (building leans outward at top). Road color fades up to cream. Lane dash and kerb line dissolve, so by 4.0 the whole ground is uniform cream `#DED6CE`-`#E5DFD3`. Seating is now seen from a higher angle. | | 4.00-4.30 | Rise continues. Storefront shrinks toward the middle of the screen. More floors come in from the top, and the cornice arrives at about 4.4. | | 4.30-4.60 | **QR modules appear on the ground in front of the shop**: flat rectangles fade from transparent through gray to dark, staggered, nearest the shop first. Some are still pale gray at 4.6 while others are dark. | | 4.50 | Dark navy roof `#1B1E26` passes under the status bar at the top. | | 4.60-4.80 | Camera crests the parapet. The roof band moves down the screen and the courtyard appears above it, showing the inner far wall with windows and the dark center block. Facade is now foreshortened to a thin strip with table tops as white dots. | | 4.80-5.20 | Near-top-down and pulling out fast. The ring reads as the center alignment pattern, about 5 modules at 225px on the 720-wide reference at t=5.0. Tall walls collapse toward zero parallax, soft shadows still visible, then fading. Roof tints still differ. | | 5.20-5.30 | Perfectly flat and orthographic. All shadows gone. The QR is wider than the screen, and its bottom edge has come into view with `#F2F2F2` below. | | 5.30-5.60 | The QR scales down smoothly toward its final size and position, and the finder squares come into view. Tints converge to near-black. Ground goes to `#F2F2F2`. | | 5.50-5.70 | Glass buttons lose their glass over the now-light background. "Pickup" fades in. | | 5.60-6.10 | Screen 2's sheet rises from the bottom with a decelerating spring, no visible overshoot. | | ~6.20 | QR settled. Everything still. | | 6.20-8.17 | Hold on the final frame. | **Camera implementation:** Use one PerspectiveCamera. Animate position, lookAt and FOV from keyframes via a smooth spline. Keep x centered on the hero the whole time, with no roll. Narrow the FOV as the camera climbs (a dolly-zoom), so that perspective has fully flattened by t = 5.25. Simultaneously collapse the height of all blocks to 0 between about 5.0 and 5.25. This is what gives zero parallax. At the moment the view is flat and aligned, swap from the GL view to a crisp `react-native-svg` QR (a single Path) in the same position and size with no visible jump, then run the scale-down on that view with a Reanimated transform. (How the modules behave in height during 4.3-5.2 is inferred from the video. They read as flat fades at first and as low extruded blocks by 5.0. Tune to match the frames.) ## Screen 2: Pickup (final state) Background `#F2F2F2`. - Nav: "x" and share in 43pt very light circular buttons, same positions as Screen 1. "Pickup" 17pt semibold centered at y 81pt. - QR: 308x308pt at x 42.5pt, y 179.5pt, module 6.84pt. Near-black with a very faint residual color variation. Square modules with no rounding. - Sheet: `#FEFCFB`, x inset 8pt, top 586pt, bottom about 847pt, radius 34pt, grabber, 16pt padding. - "A42" 40pt bold, near-black. On the same row at right, a pill about 75x28pt, fill `#E0FFDD`, dark green "✓ Ready" 13pt semibold. - "Pickup code" 13pt semibold gray. - "Show this to your barista" 20pt bold. - "Blondie Matcha, Regular · 42 Gordon Street" 15pt gray. - Sun icon + "Brightness is turned up while this is open" 13pt gray. - Black pill CTA `#000000`, 346x49pt, top at 783pt: white wallet icon + "Add to Apple Wallet" 16pt semibold white. ## Definition of done 1. On an iPhone 15 or 16 simulator, freeze at t = 0.00, 4.40, 4.70, 5.00 and 8.00, capture each with `xcrun simctl io booted screenshot
```
将截图裁剪到屏幕区域后,放在对应的参考图旁进行比对。务必实际打开并查看图片。列出每一处可见差异,修正后重复比对,直到只剩细微差异。还要完整观看整段动画,因为 5 张静态图无法发现图像之间的跳变。
2. 时间不足时,按以下优先级处理:(a) 4.3-5.3 秒二维码显现过程的连续性,环形区域必须准确落在模块 20-24 上,且任何位置都不能出现明显切换;(b) 最终画面,应尽可能接近原图;(c) 开场画面;(d) 细小的店铺道具。
3. 在代码中逐模块比对最终二维码与矩阵。
4. 在实体 iPhone 上测量 4.3-5.3 秒显现过程中的帧率,并报告数值。模拟器的 GL 性能不具代表性。如果没有可用设备,请明确说明,不要声称达到 60fps。提示词解析
看看《从街景到取货二维码的转场》这个 Claude Opus 5.5 3D 案例,主题包括街景到二维码, 取货转场, React Native。来源标注会说明正文是作者原始提示词,还是根据公开内容整理的创作简报。
先保留核心目标,再写清镜头、操作方式、灯光和验收要求。先验证这些基础效果,再逐步增加视觉细节。
阅读原作者的帖子;调整提示词时,保留所有必需的参考素材或依赖项。
旋转摄像机、尝试控件并测试完整交互,以发现穿模、物体悬浮和状态异常等问题。
交互运行正常后,使用 Tripo 生成的角色、道具或产品,让体验更具个人特色。

提示词负责搭建游戏或场景。再用 Tripo 制作更细致的角色和道具,替换简单的占位模型,让画面更生动。