threejs-web

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Three.js Web Projects

Three.js Web项目

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.
Establish the visible outcome, interaction, asset inputs, existing stack, and target devices from the request and repository. Preserve the chosen framework and art direction. Ask only about decisions that materially block implementation.
Inspect package manifests, lockfiles, routes, styles, current canvas ownership, and available assets. Record the installed Three.js revision, renderer backend, and companion package peer requirements. Use documentation or source matching those versions; do not upgrade the stack just to match an example.
Build a vertical slice first: a responsive canvas, representative subject, camera framing, one interaction, and a usable loading/error state. Then add requested detail. Keep product text, navigation, forms, and core actions in semantic HTML.
Choose only the relevant specialist instructions from the routing guide. Skills are optional focused guidance, not a requirement to run every workflow. When only this skill is installed, implement from the requirements and consult the official documentation directly.
Define asset and frame budgets for the actual devices. Add resize handling, explicit resource ownership, reduced motion, and a non-WebGL fallback as appropriate to the experience. Verify visible results in a browser, not just compilation. Report what was built, checks actually performed, and unresolved device or asset limitations. Shipping instructions do not authorize publication outside the user's request.
使用项目已安装的版本和现有架构。这些说明是对用户任务的补充;不授权无关的更改或外部操作。
从请求和代码库中确定可见结果、交互、资源输入、现有技术栈和目标设备。保留所选的框架和美术方向。只询问那些实质性阻碍实现的问题。
检查包清单、锁文件、路由、样式、当前canvas所有权和可用资源。记录已安装的Three.js版本、渲染器后端和配套包的peer依赖要求。使用与这些版本匹配的文档或源码;不要仅仅为了匹配示例而升级技术栈。
先构建一个垂直切片:响应式canvas、代表性主体、相机取景、一个交互,以及可用的加载/错误状态。然后添加所需的细节。将产品文本、导航、表单和核心操作保持在语义化HTML中。
仅从路由指南中选择相关的专家说明。技能是可选的聚焦指导,不是运行每个工作流的要求。当只安装了此技能时,根据需求实现并直接查阅官方文档。
为实际设备定义资源和帧预算。根据体验需要添加resize处理、明确的资源所有权、减少动态效果,以及非WebGL回退。在浏览器中验证可见结果,而不仅仅是编译通过。报告构建的内容、实际执行的检查,以及未解决的设备或资源限制。发布说明不授权在用户请求之外进行公开。

API reference

API参考

Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
查阅官方文档以获取准确的签名和特定版本的行为。如果无法访问文档,请检查已安装的类型/源码并说明任何剩余的不确定性。