Skills Plugins MCP Prompt Model 博客 我的中心
開発 #design #web

threejs

Use when building or debugging interactive 3D scenes on the web with Three.js (scene/camera/renderer, lights/materials, GLTF loading, controls, performance). Helpful for designers shipping 3D UI moments.

DeepseekModel キュレーション済みスキル 品質 優秀 · 90 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=mengto-skills-agent-skills-web-design-threejs-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name threejs description Use when building or debugging interactive 3D scenes on the web with Three.js (scene/camera/renderer, lights/materials, GLTF loading, controls, performance). Helpful for designers shipping 3D UI moments. Three.js — WebGL 3D Scenes Skill When to use Real 3D: product spins, interactive hero scenes, shaders/material effects, 3D data viz You need full control beyond “background effects” You can budget time for asset pipeline + performance tuning Core mental model Create: Scene (root graph) Camera (Perspective/Orthographic) Renderer ( WebGLRenderer ) Mesh = Geometry + Material Lights (if using non-unlit materials) Render loop: requestAnimationFrame(animate) Update time-based animations, controls, mixers, then renderer.render(scene, camera) Key APIs/patterns Setup: const renderer = new THREE.WebGLRenderer({ canvas, antialias, alpha }) renderer.setSize(width, height, false) renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)) Camera: camera.aspect = width / height; camera.updateProjectionMatrix() Scene graph: scene.add(object) / object.position/rotation/scale Loading assets: GLTFLoader (models), TextureLoader (images), DRACOLoader (compressed glTF) Controls (common): OrbitControls (debug/product), PointerLockControls (FPS), custom pointer handlers Cleanup (important in SPAs): geometry.dispose() , material.dispose() , texture.dispose() , renderer.dispose() Remove event listeners; cancel RAF. Common pitfalls Not handling resize → stretched/cropped rendering Too high devicePixelRatio → mobile GPU meltdown Leaking WebGL resources (not disposing) → crashes after route changes Loading huge textures/models → slow start; use compressed textures, Draco/KTX2, smaller maps Using too many lights/shadows → expensive; fake lighting with baked textures when possible Quick recipes 1) Minimal spinning cube import * as THREE from "three" ; const canvas = document . querySelector ( "#c" ); const renderer = new THREE . WebGLRenderer ({ canvas, antialias : true , alpha : true }); const scene = new THREE . Scene (); const camera = new THREE . PerspectiveCamera ( 45 , 1 , 0.1 , 100 ); camera. position . set ( 0 , 0 , 4 ); const geom = new THREE . BoxGeometry ( 1 , 1 , 1 ); const mat = new THREE . MeshStandardMaterial ({ color : 0x7c3aed }); const mesh = new THREE . Mesh (geom, mat); scene. add (mesh); scene. add ( new THREE . AmbientLight ( 0xffffff , 0.8 )); const dir = new THREE . DirectionalLight ( 0xffffff , 0.8 ); dir. position . set ( 2 , 2 , 2 ); scene. add (dir); function resize ( ) { const w = canvas. clientWidth ; const h = canvas. clientHeight ; renderer. setSize (w, h, false ); renderer. setPixelRatio ( Math . min ( window . devicePixelRatio , 2 )); camera. aspect = w / h; camera. updateProjectionMatrix (); } window . addEventListener ( "resize" , resize); resize (); function animate ( t ) { mesh. rotation . y = t * 0.0006 ; renderer. render (scene, camera); requestAnimationFrame (animate); } requestAnimationFrame (animate); 2) Respect reduced motion If prefers-reduced-motion: reduce , render a still frame (no RAF) or slow updates. What to ask the user Is this decorative (hero) or functional 3D (product viewer)? Target devices: mobile? older iPhones? Asset format availability (glTF, HDRI, textures) and file size constraints Accessibility/reduced motion requirements
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。