threejs-fundamentals
Build browser 3D scenes with Three.js
A Three.js scene can render incorrectly when its camera, renderer, and canvas size are out of sync. Use r186 examples to configure those pieces, animate objects, and release resources.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "threejs-fundamentals" from https://skillstore.io/skills/cloudai-x-threejs-fundamentals.md and its manifest at https://skillstore.io/api/skills/cloudai-x-threejs-fundamentals/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "threejs-fundamentals". Why does my scene stretch after I resize the window?
Resultado esperado:
The renderer changed size, but the perspective camera still uses the old aspect ratio. Set the new aspect ratio, refresh the projection matrix, and resize the renderer to match the canvas.
Usando "threejs-fundamentals". What should I release when I close a 3D view?
Resultado esperado:
Stop the animation loop and disconnect the timer. Remove the meshes and release geometries, materials, and textures only when no other mesh uses them. Dispose of the renderer when you no longer need it.
Usando "threejs-fundamentals". How do I avoid drawing before WebGPURenderer is ready?
Resultado esperado:
Await renderer initialization before configuring or rendering the scene. After initialization, check which backend is active and register the animation loop.
Auditoria de segurança
SeguroThe shell and reconnaissance alerts match documentation, browser graphics code, or JavaScript console messages. The URL alerts point to optional import maps for version-pinned Three.js modules on jsDelivr. No evidence of prompt injection, host command execution, or unauthorized data transfer was found.
Fatores de risco
⚙️ Comandos externos (50)
🌐 Acesso à rede (6)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/cloudai-x-threejs-fundamentals/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/cloudai-x-threejs-fundamentals?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/cloudai-x-threejs-fundamentals?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudai-x-threejs-fundamentals/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/cloudai-x-threejs-fundamentals.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
cloudai-x. (2026). threejs-fundamentals security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudai-x-threejs-fundamentals/audits/1Citação BibTeX
@techreport{cloudai-x-cloudai-x-threejs-fundamentals-2026,
author = {cloudai-x},
title = {threejs-fundamentals security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/cloudai-x-threejs-fundamentals/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "threejs-fundamentals security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "cloudai-x"
date-released: "2026-11-21"
url: "https://skillstore.io/skills/cloudai-x-threejs-fundamentals/audits/1"
identifiers:
- type: other
value: "skillstore:cloudai-x-threejs-fundamentals:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Create a first animated scene
Set up a lit cube with a perspective camera and keep it correctly framed when the window resizes.
Clean up an embedded 3D view
Stop the animation loop and release renderer resources when removing a 3D view without disposing of assets still shared by other meshes.
Compare WebGPU and its fallback
Initialize a WebGPU scene with a node material and check how it runs on the WebGL 2 fallback.
Teste estes prompts
Build a minimal Three.js r186 scene with a lit cube, a perspective camera, and WebGLRenderer. Rotate the cube using elapsed frame time and update the camera and renderer when the window resizes.
Adapt my orthographic camera to a resizable canvas. Keep the visible world height fixed, recalculate the horizontal bounds from the canvas aspect ratio, and update the projection matrix.
Review my Three.js scene cleanup. Show how to stop the loop, disconnect the timer, and dispose of GPU resources only after their last use.
Adapt my Three.js r186 scene to WebGPURenderer with a node material. Show where to await renderer initialization and how to verify the WebGL 2 fallback.
Boas práticas
- Update the camera projection whenever its aspect ratio or orthographic bounds change.
- Cap the renderer pixel ratio where high-density displays make rendering too expensive.
- Use a locked dependency version and bundle it locally for deployments that should not rely on a public CDN.
Evitar
- Render with WebGPURenderer before initialization finishes.
- Use fractional values for ArrayCamera viewport dimensions under WebGLRenderer instead of drawing-buffer pixels.
- Dispose of shared materials or textures while another mesh still uses them.