heygen-com/hyperframes

three

提供 HyperFrames 中 Three.js 与 WebGL 的适配模式,涉及确定性场景、Canvas 图层、AnimationMixer 时间线和相机控制。性能、资源释放与目标设备需在成品中检查。

  • 历史版本 SKILL.md
  • 已有中文用途摘要
  • 安装与运行未实测
先判断是否解决你的问题

three 是什么?

提供 HyperFrames 中 Three.js 与 WebGL 的适配模式,涉及确定性场景、Canvas 图层、AnimationMixer 时间线和相机控制。性能、资源释放与目标设备需在成品中检查。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 three,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 three

请在 Codex 的当前工作环境中安装并检查 three 这个 Skill。

项目身份:heygen-com/hyperframes / three
来源:https://github.com/heygen-com/hyperframes/blob/8662598a3ac64018a2999d189ffb369e6d46b53a/skills/three/SKILL.md
已定位的源文件:skills/three/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

来源版本
历史源文件(2026-04-30T16:08:43+02:00);原目录已变更,本页解释所链接的历史版本,不代表当前安装方式。
源文件
已保存 SKILL.md,抓取于 2026-11-17T10:54:27.618Z
中文使用说明
已有中文用途摘要;具体用法尚待逐项整理
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

skills/three/SKILL.md · 抓取时间 2026-11-17T10:54:27.618Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Three.js and WebGL adapter patterns for HyperFrames. Use when creating deterministic Three.js scenes, WebGL canvas layers, AnimationMixer timelines, camera motion, shader-driven visuals, or canvas renders that respond to HyperFrames hf-seek events.

查看源文件章节 / Source sections
  • 原文:Three.js for HyperFrames
  • 原文:Contract
  • 原文:Basic Pattern
  • 原文:AnimationMixer Pattern
  • 原文:Good Uses
  • 原文:Avoid
  • 原文:Validation
  • 原文:Credits And References
原文:Three.js for HyperFrames

HyperFrames supports Three.js through its `three` runtime adapter. The adapter does not own your scene. It publishes HyperFrames time and dispatches a seek event so your composition can render the exact frame.

原文:Contract

- Create the scene, camera, renderer, materials, and assets synchronously when possible. - Render from HyperFrames time, not wall-clock time. - Listen for the `hf-seek` event and render exactly that time. - Load models, textures, and HDRIs before render-critical seeking. Do not fetch them at seek time. - Avoid `requestAnimationFrame` or `renderer.setAnimationLoop` as the source of truth for render-critical motion. The adapter sets `window.__hfThreeTime` and dispatches `new CustomEvent("hf-seek", { detail: { time } })` on each seek.

原文:Basic Pattern

```html <canvas id="three-layer"></canvas> <script type="module"> import * as THREE from "https://cdn.jsdelivr.net/npm/three@0.181.2/+esm"; const canvas = document.getElementById("three-layer"); const renderer = new THREE.WebGLRenderer({ canvas, alpha: true, antialias: true }); // Match these to your composition's frame size. renderer.setSize(1920, 1080, false); renderer.setPixelRatio(1); const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(35, 1920 / 1080, 0.1, 100); camera.position.set(0, 0, 6); const mesh = new THREE.Mesh( new THREE.IcosahedronGeometry(1.4, 4), new THREE.MeshStandardMaterial({ color: 0x64d2ff, roughness: 0.38 }), ); scene.add(mesh); scene.add(new THREE.HemisphereLight(0xffffff, 0x223344, 2)); function renderAt(time) { mesh.rotation.y = time * 0.7; mesh.rotation.x = Math.sin(time * 0.6) * 0.16; renderer.render(scene, camera); } window.addEventListener("hf-seek", (event) => { renderAt(event.detail.time); }); renderAt(window.__hfThreeTime || 0); </script> ``` ```css #three-layer { width: 100%; height: 100%; display: block; } ```

原文:AnimationMixer Pattern

For GLTF or authored clip animation, seek the mixer directly: ```js function renderAt(time) { mixer.setTime(time); renderer.render(scene, camera); } ``` If several mixers exist, seek all of them from the same `time`.

原文:Good Uses

- Deterministic 3D objects, product spins, particles with seeded data, and shader plates. - Camera moves derived from `time`. - GLTF animation clips when assets are local and loaded before validation completes.

原文:Avoid

- Using `Date.now()`, `performance.now()`, or clock deltas to update scene state. - Leaving render-critical work inside a free-running animation loop. - Loading remote models or textures at render time. - Device-pixel-ratio dependent output. Pin renderer size and pixel ratio for video renders. - Post-processing passes that depend on previous frame history unless you can reconstruct state from time.

文件 SHA256:12dd949a36e878fae99aedee3b22de2fe11be32598970166c7c171a223a8fde1

仓库许可证记录:未提供;not-established,查看来源。

Skills.sh收录简介 · 2026-07-28

Three.js and WebGL adapter patterns for HyperFrames. Use when creating deterministic Three.js scenes, WebGL canvas layers, AnimationMixer timelines, camera…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识three
来源仓库heygen-com/hyperframes
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次288
快照累计安装量70234

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源