Skip to main content
100%

Gist 8232daa7d3b24a25b9f7566ff1da4522

✓ Published0🌍 Public
Aabonello
Last edited Dec 14, 2017
Created on Oct 3, 2018

This WebGL visualization uses p5.js to render a dynamic 3D scene composed of primitive shapes, including planes, boxes, spheres, cylinders, cones, ellipsoids, and toruses. The code applies normalMaterial to map normal vectors to RGB colors, with ambient and directional lighting enhancing the depth of each geometry. Through camera positioning and rotation transformations, the shapes appear to float and spin in space. The example demonstrates p5.js’s WEBGL renderer capabilities for creating three-dimensional compositions from basic geometric primitives, highlighting the library’s built-in shape functions and material systems.

AI-generated description

Similar vizzes