Skip to main content
100%

My first Three.js app

✓ Published0🌍 Public
11wheel
Last edited Aug 22, 2016
Created on Oct 30, 2015

A green cube spins slowly, rendered against a black background. The example demonstrates a minimal Three.js scene. It uses a `PerspectiveCamera` and a `WebGLRenderer` to draw a box geometry with a `MeshBasicMaterial`. The cube’s rotation is updated in a `requestAnimationFrame` loop, with horizontal and vertical velocities that accumulate random jitter, producing a slightly wobbly, organic motion. A second version shows the cube as a white wireframe.

AI-generated description

Similar vizzes