Extracts from some of my recent projects
Programming vehicle behaviours in three.js. After watching Daniel Shiffman’s (AKA The Coding Train) series on vehicles / boids, I reimplemented these behaviours in three.js. Check it out.
Making 2D sprite maps work in 3D spaces in react-three/fiber. After experimenting with a lot of trigonometry, I managed to use the angle from the camera to the three.js mesh to select a frame in a sprite map. Sprite map from here.
Experimenting with Ray Marching. A ray marching effect created using webgl. Check it out