Skip to main content
100%

Fork of Fork of 3D Cube of Spheres

✓ Published0🌍 Public
NNita
Last edited Aug 7, 2025
Created on Aug 7, 2025

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 description

3D 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 controls
  • main.js: Application entry point and main loop
  • human.js: Human model creation and materials
  • animation.js: Animation logic for all movement modes
  • scene.js: Scene setup with lighting and fog
  • camera.js: Camera configuration
  • controls.js: OrbitControls setup
  • renderer.js: WebGL renderer configuration
  • config.js: Configuration constants for proportions and colors

Usage

Simply open index.html in a modern browser. No additional dependencies required.

MIT Licensed

Similar vizzes