Made of Cubes

My previous homepage, rendered entirely from animated 3D cubes in Three.js — text, images and video included.

TS · Three.js · WebGL

An Absurd Idea, Committed To

Project video

I can't remember how I got the absurd idea to build a homepage 100% in 3D. But it does look cool when cubes fly around. Funfact 1: All cubes used on the homepage are a clone of the shown loading symbol. Funfact 2: It needs a dedicated GPU to run smoothly and the application can't set it itself. The homepage is no longer active so I recorded this short video.

Custom Font

Custom 3D Font

I had the grandiose idea to create all the text from 3D cubes too. So why not finish the wooden path and build your own low-poly font!

Thousands of Tweens, All Precomputed

Contact page

Cubes flying into place look great — until thousands of animations (tweens) for position, rotation, scaling and color melt the frame rate. Therefore, every animation on the page without exception is fully precomputed before it plays.

A Contact Page You Can Ray-Cast

Contact page during animation

The cubes are now flown to their positions and rotated. To make Interactions possible ray casts of the mouse are used to color words. Non-existent cubes for longer texts are generated automatically.

Swap the Image While the Cube Is Edge-On

Portfolio

Lastly, my portfolio must also be displayed — as images on the same cubes. When changing pages, the images are exchanged exactly when the objects are orthogonal to the camera. Unfortunately, these were not 90 degree angles because the camera is perspective. I also included videos in this 3D space on the cubes. It was a nightmare because additional 2D cameras are needed. Especially when zooming.