Apple Pencil Animation
An elegant, procedural WebGL SVG drawing engine simulating Apple Pencil characteristics.

Project overview
This project brings static SVG graphics to life using custom Three.js geometry extrapolation. A highly optimized physics-based simulation of an Apple Pencil elegantly draws organic curves, morphing its orientation perfectly in 3D space to simulate paper contact, complete with variable linear motion blur and localized shadowing constraints.
Tech stack
Handling complex sub-paths, auto-scaling various SVG resolutions entirely dynamically, and simulating realistic 3D shadowing using WebGL composite filters alongside Catmull-Rom curve parsing formed the bulk of this challenge. The rendering leverages native ACESFilmic mapping to perfectly reconstruct the pencil’s tactile aluminum materials.
Procedural SVG Extrusion to 3D Bezier Paths
Catmull-Rom Curve Length Adaptive Segmentation
Real-time Soft Variable Blur Shadows (SVG Sprites)
Dynamic PMREM Studio Lighting Implementation