Loading...
Loading...
Compare original and translation side by side
Rheinmir/uiux-assetthreejs-particle-morphblurRheinmir/uiux-assetthreejs-particle-morphbluroffset ảo (kéo/cuộn/inertia) → mỗi mesh cố định: wrap(localX - offset.x) → vị trí hiển thị → chỉ số tile ảo đổi → đổi material.map từ pool texture cố định虚拟 offset(拖动/滚动/惯性)→ 每个固定 mesh:wrap(localX - offset.x) → 显示位置 → 虚拟 tile 索引变化 → 从固定 texture pool 切换 material.map| Field | Required? | Ý nghĩa | |
|---|---|---|---|
| In | ảnh/nội dung + màu | không | thiếu → demo tự vẽ placeholder canvas, chạy offline |
| In | ràng buộc dự án: được kéo lib/file ngoài không | có | được → bản gốc; không → |
| In | | không | tham số khởi tạo |
| Out | file | có | giữ comment ghi công dòng đầu nếu là bản gốc |
| Out | bằng chứng verify Playwright | có | ảnh trước/giữa/sau khi kéo 4 hướng + console sạch |
| 字段 | 是否必需? | 含义 | |
|---|---|---|---|
| 输入 | 图片/内容 + 颜色 | 否 | 缺失时,demo 会自动绘制 placeholder canvas,并可离线运行 |
| 输入 | 项目约束:是否允许引入外部库/文件 | 是 | 允许时使用原始版本;不允许时使用 |
| 输入 | | 否 | 用于初始化 |
| 输出 | | 是 | 如果使用原始版本,请保留首行的署名 comment |
| 输出 | Playwright 验证证据 | 是 | 拖动四个方向前、中、后的截图,以及无错误的 console |
gridSize=7material.mappoolSizewheelpointermove{ passive: false }preventDefault()preventDefault()touch-action: nonepreventDefaultPerspectiveCameraplaywright-verifyassets/gridSize=7material.mappoolSizewheelpointermove{ passive: false }preventDefault()preventDefault()touch-action: nonepreventDefaultPerspectiveCameraplaywright-verifyassets/assets/file://touch-action: nonethreejs-particle-morphblurassets/file://passive: falsetouch-action: nonethreejs-particle-morphblur| Step | Type | Inputs | Action | Outputs/exit | Failure/next |
|---|---|---|---|---|---|
| W01 | judgment | yêu cầu | Xác nhận đúng skill (lưới duyệt vô hạn, không có đích) và chọn bản gốc hay | nguồn đã chọn | không được kéo lib ngoài → B01 |
| W02 | effect | pen gốc | Mở link chạy xem hiệu ứng → copy nguyên file | file trong dự án | — |
| W03 | judgment | file đã copy | Chỉ sửa nội dung/ảnh/màu | file đã adapt | — |
| W04 | effect | file | Chạy local qua HTTP, không | trang chạy | lỗi asset → kiểm lại đường dẫn |
| W05 | deterministic | trang | Verify bằng | ảnh + console sạch | lỗi → sửa, lặp W04 |
| 步骤 | 类型 | 输入 | 操作 | 输出/退出条件 | 失败/下一步 |
|---|---|---|---|---|---|
| W01 | judgment | 用户需求 | 确认 skill 是否正确(无限浏览网格且没有目标),并选择原始版本或 | 已选择来源 | 不允许引入外部库 → B01 |
| W02 | effect | 原始 Pen | 打开实际运行的 link 查看效果 → 将原始 | 项目中的文件 | — |
| W03 | judgment | 已复制的文件 | 仅修改内容、图片和颜色 | 已适配的文件 | — |
| W04 | effect | 文件 | 通过本地 HTTP 运行,不使用 | 页面正常运行 | asset 错误 → 检查路径 |
| W05 | deterministic | 页面 | 使用 | 截图 + console 无错误 | 出现错误 → 修复并重复 W04 |
Rheinmir/uiux-asset.html_assets/file://git clone --depth 1 https://github.com/Rheinmir/uiux-asset| Pen gốc — tác giả | Link |
|---|---|
| Infinite Scrollable and Draggable WebGL Grid — ReGGae | chạy · code |
| Infinite 3D Poster Scroll Wall — photodow | chạy · code |
| Infinite Scrolling with Image Cards — jkantner | chạy · code |
assets/Rheinmir/uiux-asset.html_assets/file://git clone --depth 1 https://github.com/Rheinmir/uiux-asset| 原始 Pen——作者 | Link |
|---|---|
| Infinite Scrollable and Draggable WebGL Grid — ReGGae | 运行 · 代码 |
| Infinite 3D Poster Scroll Wall — photodow | 运行 · 代码 |
| Infinite Scrolling with Image Cards — jkantner | 运行 · 代码 |
assets/| ID | Kind | Guard | Hành vi | Skip / failure | Rejoin |
|---|---|---|---|---|---|
| B01 | conditional_required | dự án KHÔNG được kéo lib ngoài | dùng | — | W04 |
| B02 | user_optional | cần hiệu ứng chiều sâu | đổi Ortho sang | — | W05 |
| B03 | conditional_required | cần nhiều ảnh khác nhau hơn số tile hiển thị | dùng texture atlas (đổi UV offset) thay vì tăng | — | W05 |
| ID | 类型 | 条件 | 行为 | 跳过/失败 | 汇合点 |
|---|---|---|---|---|---|
| B01 | conditional_required | 项目不允许引入外部库 | 使用 | — | W04 |
| B02 | user_optional | 需要纵深效果 | 将 Ortho 切换为 | — | W05 |
| B03 | conditional_required | 需要的不同图片数量超过可见 tile 数 | 使用 texture atlas(切换 UV offset),而不是增加 | — | W05 |
infinite-3d-poster-scroll-wall.htmlRheinmir/uiux-assetassets/demo.jswheel{ passive: false }preventDefault()touch-action: noneRheinmir/uiux-assetinfinite-3d-poster-scroll-wall.htmlassets/demo.jswheel{ passive: false }preventDefault()touch-action: noneassets/demo.htmlassets/demo.cssassets/demo.jsgridSizetileSizegappoolSizeInfiniteGrid_drawPlaceholder()THREE.TextureLoaderassets/demo.htmlassets/demo.cssassets/demo.jsInfiniteGridgridSizetileSizegappoolSizeTHREE.TextureLoader_drawPlaceholder()gridSize × gridSizePlaneGeometryoffset.x/offset.ylocalX/localYwrap(localX - offset.x)wrap(raw) = ((raw + half) % full + full) % full - halffull = gridSize*pitchhalf = full/2material.mapwrapped_position + offsetpitchpoolSizeTHREE.TextureLoader<canvas>canvas.toDataURL()THREE.TextureLoader.load(dataUrl)velocityoffset += velocity; velocity *= damping (0.92)destroy()gridSize × gridSizePlaneGeometryoffset.x/offset.ylocalX/localYwrap(localX - offset.x)wrap(raw) = ((raw + half) % full + full) % full - halffull = gridSize*pitchhalf = full/2material.mapwrapped_position + offsetpitchTHREE.TextureLoaderpoolSize<canvas>canvas.toDataURL()THREE.TextureLoader.load(dataUrl)velocityoffset += velocity; velocity *= damping (0.92)destroy()