Toolverse
All skills

threejs-loaders

by CloudAI-X

Three.js asset loading - GLTF, textures, images, models, async patterns. Use when loading 3D models, textures, HDR environments, or managing loading progress.

Installation

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

Installation

Quick info

Author
CloudAI-X
Category
Frontend
Views
1

About this skill

Three.js asset loading - GLTF, textures, images, models, async patterns. Use when loading 3D models, textures, HDR environments, or managing loading progress.

How to use

  1. Zaimportuj niezbędne moduły Three.js — GLTFLoader do modeli, TextureLoader do tekstur i LoadingManager do koordynacji ładowania wielu zasobów naraz.

  2. Utwórz instancję LoadingManager, aby śledzić postęp wszystkich ładowanych plików. Przypisz funkcje zwrotne do zdarzeń onStart, onProgress, onLoad i onError — dzięki temu będziesz wiedzieć, kiedy ładowanie się zaczyna, postępuje, kończy lub napotyka błąd.

  3. Przekaż LoadingManager do każdego loadera (GLTFLoader, TextureLoader), aby wszystkie operacje były koordynowane. Callback onLoad wywoła się dopiero, gdy wszystkie zasoby będą w pełni załadowane.

  4. Załaduj modele GLTF za pomocą GLTFLoader — przekaż ścieżkę do pliku .glb lub .gltf, a w callbacku onLoad dodaj scenę modelu do sceny Three.js za pomocą scene.add(gltf.scene).

  5. Załaduj tekstury za pomocą TextureLoader — przypisz załadowaną teksturę do właściwości material.map i ustaw material.needsUpdate na true, aby materiał się odświeżył.

  6. Obsługuj błędy i postęp — w callbacku onProgress aktualizuj pasek postępu na podstawie stosunku loaded do total, a w onError wyświetl komunikat o problemie użytkownikowi.

Related skills

livewire-development

by spatie

Develops reactive Livewire 4 components. Activates when creating, updating, or modifying Livewire components; working with wire:model, wire:click, wire:loading, or any wire: directives; adding real-time updates, loading states, or reactivity; debugging component behavior;

Frontend
2335

browser-use

by browser-use

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.

Frontend
23107

zustand

by lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

Frontend
36126

web-research

by langchain-ai

Use this skill for requests related to web research; it provides a structured approach to conducting comprehensive web research

Frontend
18114

apple-reminders

by openclaw

Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.

Frontend
2085

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