Fork of Fork of 3D Cube of Spheres
This interactive 3D visualization showcases a human figure constructed from geometric primitives. Built with Three.js, the model performs three distinct animation modes—walking, waving, and dancing—using procedural rotation and position updates via the `animateHuman` function. Users can switch between animations through on-screen buttons while navigating the scene using OrbitControls for camera rotation and zoom. The figure is assembled from spheres, cylinders, and boxes with materials defining skin, hair, and clothing, all rendered in real-time with WebGL, dynamic directional lighting, and shadow casting on a grid-helper ground plane.
AI-generated description3D Human Figure Animation
A responsive 3D human figure with realistic walking, waving, and dancing animations built with Three.js.
Features
- Realistic 3D human model with anatomical details
- Three animation modes: Walking, Waving, and Dancing
- Interactive camera controls (orbit, zoom, pan)
- Dynamic lighting with shadows
- Responsive design that adapts to window size
- Smooth animations using requestAnimationFrame
Controls
- Mouse Drag: Rotate the camera view
- Mouse Wheel: Zoom in/out
- Animation Buttons: Switch between walking, waving, and dancing animations
Technical Details
The human figure is built using geometric primitives (spheres, cylinders, boxes) with:
- Anatomically positioned limbs and body parts
- Muscle definition for chest, abs, arms, and legs
- Realistic skin, hair, and clothing materials
- Shadow casting and receiving for depth perception
Files Structure
index.html: Main HTML structure with UI controlsmain.js: Application entry point and main loophuman.js: Human model creation and materialsanimation.js: Animation logic for all movement modesscene.js: Scene setup with lighting and fogcamera.js: Camera configurationcontrols.js: OrbitControls setuprenderer.js: WebGL renderer configurationconfig.js: Configuration constants for proportions and colors
Usage
Simply open index.html in a modern browser. No additional dependencies required.