← Back to Skills Marketplace
openlark

Comprehensive Three.js 3D graphics reference

by OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
13
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install threejs-3d
Description
Detailed Three.js 3D graphics reference covering scene setup, cameras, geometries, materials, lights, animations, controls, loaders, math utilities, and debu...
README (SKILL.md)

Three.js 3D

Quick Start

import * as THREE from 'three';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, innerWidth/innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({antialias: true});
renderer.setSize(innerWidth, innerHeight);
document.body.appendChild(renderer.domElement);
scene.add(new THREE.Mesh(
  new THREE.BoxGeometry(1,1,1),
  new THREE.MeshStandardMaterial({color: 0x44aa88})
));
scene.add(new THREE.DirectionalLight(0xffffff, 3));
scene.add(new THREE.AmbientLight(0x404040, 0.5));
camera.position.z = 5;
function animate() { requestAnimationFrame(animate); renderer.render(scene, camera); }
animate();

Import

npm install three
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Key Patterns

Object3D (everything extends this)

obj.position.set(x,y,z); obj.rotation.set(x,y,z); obj.scale.set(x,y,z); // Euler rad
obj.quaternion.set(x,y,z,w);       // No gimbal lock
obj.lookAt(target);                // -Z → target, +Y up
parent.add(child); parent.remove(child); parent.attach(child); // Reparent w/o visual change
obj.getWorldPosition(v); obj.localToWorld(v); obj.worldToLocal(v);

Color

new THREE.Color(0xff0000); new THREE.Color('#ff0000'); new THREE.Color(1,0,0);
color.setHSL(hue, saturation, lightness); // 0–1

Dispose (always!)

geometry.dispose(); material.dispose(); texture.dispose(); renderTarget.dispose();

Reference Files

Read the relevant file based on the task — each is concise and domain-focused:

File Topic
getting-started.md Responsive design, multi-canvas, render-on-demand, fog, disposal
cameras.md PerspectiveCamera, OrthographicCamera, CubeCamera, gotchas
geometries.md All built-in primitives, BufferGeometry, merge, vertex colors
materials.md Material selection guide, properties, transparency fixes, ShaderMaterial
lights.md Light types, three-point lighting, environment maps, skyboxes
objects.md Object3D API, Mesh, InstancedMesh, SkinnedMesh, LOD, scene graph
textures.md Properties, types, color space, KTX2, memory management
loaders.md GLTF/OBJ/FBX, Draco, KTX2, loading manager, gotchas
animation.md AnimationMixer/Action, skeletal, morph targets, crossfading
controls.md OrbitControls, TransformControls, HTML labels, sprites/facades
math.md Vector/Matrix/Quat/Color/Raycaster patterns + gotchas
renderers.md WebGL/WebGPU setup, post-processing, shadows, render targets, GPU picking
nodes.md TSL node materials, compute shaders
helpers.md Debug helpers, scene graph dump, GLSL debugging, lil-gui patterns
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install threejs-3d
  3. After installation, invoke the skill by name or use /threejs-3d
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the threejs-3d skill. - Provides a comprehensive Three.js 3D graphics reference for web apps, games, and visualizations. - Covers key topics: scene setup, cameras, geometries, materials, lights, shadows, post-processing, controls, animation, loaders, textures, node materials, math utilities, and debugging. - Includes a quick start code example and modular, concise reference files for each topic. - Designed for practical usage with relevant code patterns and gotchas highlighted.
Metadata
Slug threejs-3d
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Comprehensive Three.js 3D graphics reference?

Detailed Three.js 3D graphics reference covering scene setup, cameras, geometries, materials, lights, animations, controls, loaders, math utilities, and debu... It is an AI Agent Skill for Claude Code / OpenClaw, with 13 downloads so far.

How do I install Comprehensive Three.js 3D graphics reference?

Run "/install threejs-3d" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Comprehensive Three.js 3D graphics reference free?

Yes, Comprehensive Three.js 3D graphics reference is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Comprehensive Three.js 3D graphics reference support?

Comprehensive Three.js 3D graphics reference is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Comprehensive Three.js 3D graphics reference?

It is built and maintained by OpenLark (@openlark); the current version is v1.0.0.

💬 Comments