How We Built the BFCM 2023 Globe
Shopify's BFCM 2023 live-orders globe was built with Three.js and React-three-fiber, and most of its effects are drawn in single instanced draw calls. Order arcs are cubic Bézier curves evaluated in the vertex shader from per-instance attributes stored in an interleaved buffer. They are billboarded using the cross product of the curve tangent and the camera direction, and dissolve via UV-driven noise. Instancing let the team render tens of thousands of arcs, and up to a million on an M1 laptop, where earlier per-mesh arcs struggled past 1000 on mobile. The same approach covers fireworks, city dots and orbiting airplanes, along with fixes for a camera flip caused by the lookAt up vector, Hermite-spline 'loopy arcs', and working around WebGL's 255-byte attribute stride limit.
Related posts
- Behind the build: 2025's BFCM globe in a pinball machine 🌎🕹️
Shopify Engineering mediumAdeptShopify's 2025 BFCM live globe was embedded in a browser pinball game built with three.js and react-three-fiber, streaming real merchant orders via server-sent events and reacting to sales milestones and first sales. The team switched from Rapier 3D to Rapier 2D physics for mobile performance, faking ramps with sensors that toggle collider sets, and cut the physics step from 2ms to about 0.2ms even with six balls and continuous collision detection. Lighting was baked in Blender with MeshBasicMaterials. The 85 dynamic table lights are rendered via an emissive texture plus a mask texture encoding light IDs in the red channel. A shader plays 128x32 dot-matrix sprite sheets, and AR support took about 100 lines with @react-three/xr.
- Coding the stars - an interactive constellation with Three.js and React Three Fiber
Supabase mediumAdeptSupabase built its Launch Week 8 visual as an animated constellation where each user ticket signup becomes a star particle tracing an "8" shape, using Three.js via React Three Fiber in Next.js. Each particle is a low-sided circle geometry with additive blending, positioned every frame in useFrame using sin/cos of elapsed time, with the cosine sign flipped on alternate loops to form the figure eight. Randomized speed, delay offsets and Math.pow-based path offsets concentrate particles toward the shape's core. A dat.gui debug panel, loaded via dynamic import to avoid SSR window errors, was wired to React state so the team could tune parameters and settle on the final design.
- How We Built Shopify Party
Shopify Engineering mediumAdeptShopify Party is a browser-based multiplayer 3D hangout space built in Unity WebGL with Normcore for networking. Normcore uses client-owned state rather than an authoritative server. Uncontrolled objects such as moving platforms stay in sync because their motion is a deterministic function of the shared room time, not a Unity animation. Character outfits are separate textures combined at runtime in a single shader, which lets employees design clothing without 3D skills. Optimizations for 60FPS on hardware from M1 Pros to Pixelbooks include Simple Lit materials instead of PBR, GPU instancing to cut draw calls, and a render scale capped to a target width.
- How did we build 3D animations in mobile apps?
Wise Engineering mediumAdeptWise renders its brand 3D illustrations interactively in its iOS and Android apps by building three.js/WebGL scenes as standalone local HTML files shown in web views, which it chose over native or Filament for cross-platform reuse and documentation, and which hit 60–120 FPS. An automated pipeline cut the assets from 324 MB to 3.7 MB in three steps: deduplicating textures shared across glTF files (to 98.4 MB), compressing textures (to 5.2 MB) and Draco geometry compression (to 3.7 MB). Draco decompression made scenes slow to load, so the apps pre-load scenes and keep them in memory with rendering paused. Native gyroscope data is passed into the HTML to drive scene rotation.
- The Future of React Native Graphics: WebGPU, Skia, and Beyond
Shopify Engineering easyNoviceReact Native WebGPU, built on Google's Dawn, lets React Native apps run Three.js, React Three Fiber, TSL shaders, ComputeToys compute shaders and TensorFlow.js on Metal (iOS) and Vulkan (Android) with no changes, which collapses the separate OpenGL and Metal backends into one. Lessons from that work fed back into React Native Skia. Moving from a mutable C++ scene graph (SkiaDOM) to an immutable, Fabric-reconciler display list made animation up to 50% faster on iOS and nearly 200% faster on Android, while fixing 98% of reported Android crashes. Skia also gained macOS, tvOS and headless Node.js targets, and the experimental Skia Graphite backend previews automatic threading and two-way 2D/3D texture composition.