Toolverse
All skills

threejs-fundamentals

by CloudAI-X

Three.js scene setup, cameras, renderer, Object3D hierarchy, coordinate systems. Use when setting up 3D scenes, creating cameras, configuring renderers, managing object hierarchies, or working with transforms.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
CloudAI-X
Category
Frontend

About this skill

Three.js scene setup, cameras, renderer, Object3D hierarchy, coordinate systems. Use when setting up 3D scenes, creating cameras, configuring renderers, managing object hierarchies, or working with transforms.

How to use

  1. Zaimportuj Three.js do swojego projektu: import * as THREE from "three";

  2. Utwórz trzy główne komponenty: scenę (new THREE.Scene()), kamerę perspektywiczną (new THREE.PerspectiveCamera()) oraz renderer WebGL (new THREE.WebGLRenderer()). Ustaw rozmiar renderera na wymiary okna i dodaj go do DOM-u.

  3. Dodaj obiekty do sceny, tworząc geometrię, materiał i mesh. Na przykład stwórz sześcian za pomocą BoxGeometry, przypisz mu MeshStandardMaterial i dodaj do sceny metodą scene.add().

  4. Oświetl scenę, dodając światła takie jak AmbientLight (światło otoczenia) i DirectionalLight (światło kierunkowe). Ustaw pozycję światła kierunkowego, aby uzyskać realistyczne cienie.

  5. Utwórz pętlę animacji za pomocą requestAnimationFrame(). W każdej klatce modyfikuj rotację obiektu i renderuj scenę metodą renderer.render(scene, camera).

  6. Obsłuż zmianę rozmiaru okna przeglądarki: nasłuchuj zdarzenia resize, zaktualizuj aspect ratio kamery i rozmiar renderera, aby scena pozostała responsywna.

Related skills

domain-name-brainstormer

by ComposioHQ

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

Frontend
21116

landing-page-guide-v2

by bear2u

Create distinctive, high-converting landing pages that combine proven conversion elements with exceptional design quality. Build beautiful, memorable landing pages using Next.js 14+ and ShadCN UI that avoid generic AI aesthetics while following the 11 essential elements

Frontend
3486

senior-fullstack

by davila7

Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL. Includes project scaffolding, code quality analysis, architecture patterns, and complete tech stack guidance. Use when building new projects,

Frontend
2896

browser-automation

by browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include \

Frontend
21175

better-icons

by better-auth

Use when working with icons in any project. Provides CLI for searching 200+ icon libraries (Iconify) and retrieving SVGs. Commands: `better-icons search u003cqueryu003e` to find icons, `better-icons get u003cidu003e` to get SVG. Also available as MCP server for AI agents.

Frontend
2037

shadcn-ui

by josechifflet

shadcn/ui component patterns for Next.js 16 applications. This skill should be used when adding UI components, customizing component styles, composing primitives, or integrating forms with react-hook-form. Covers installation, customization, composition patterns, and

Frontend
157206