Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ThreeJS Starter

Public visualization

Viewing a saved revision (read-only)

067c9233045248a0bc8a08b4e32e60ba

ThreeJS Starter

0 stars13🌍 Public
CCurran Kelleher
Last edited May 9, 2025
Created on Oct 26, 2024
Forked from HTML Starter

A Three.js scene displays a single blue cube rotating automatically in 3D space. The cube uses a `MeshPhongMaterial` that responds to both ambient and directional lighting, showcasing interactive orbit controls for drag-to-rotate and scroll-to-zoom. The animation runs via `requestAnimationFrame` with WebGL rendering on a canvas element. The code imports Three.js and its `OrbitControls` addon through import maps, with a responsive resize handler updating camera aspect and renderer size.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.