How did we build 3D animations in mobile apps?
Wise 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.
Related posts
- Micro Frontends: Deep Dive into Rendering Engine (Part 2)
Zalando Engineering mediumAdeptZalando's Interface Framework replaces Mosaic HTML fragments with Renderers: declarative TypeScript modules that state their data needs as GraphQL queries and render a single Entity type as a React component. A Node.js Rendering Engine maps Entities to Renderers through rendering rules, recursively and asynchronously resolves the entity tree, and streams server-rendered HTML that is later progressively hydrated on the client. A custom React reconciler lets the same Renderers emit JSON layouts for the iOS and Android apps. The engine also handles batched, cached data fetching (DataLoader, Perron circuit breakers), persisted queries, code splitting, Web Vitals collection and Mosaic backward compatibility.
- 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.
- A step into the spatial web: The HTML model element in Apple Vision Pro
WebKit mediumAdeptvisionOS 26 enables the HTML `model` element by default in Safari on Apple Vision Pro, rendering USDZ 3D assets stereoscopically inline within web pages. The API exposes a `ready` Promise for load completion and a `stagemode="orbit"` attribute for built-in pinch-and-drag rotation. It also offers an `entityTransform` property that takes a `DOMMatrix` for custom translate/rotate/scale, plus `boundingBoxCenter`/`boundingBoxExtents` for fitting content. Lighting is controlled via an `environmentmap` attribute pointing to equirectangular HDR/EXR images with an `environmentMapReady` Promise, and animations use a media-like API (`play()`, `pause()`, `currentTime`, `playbackRate`, `autoplay`, `loop`).
- Micro Frontends: from Fragments to Renderers (Part 1)
Zalando Engineering easyNoviceZalando replaced its Mosaic micro-frontend architecture, built on team-owned page Fragments, with Interface Framework, a unified platform where pages are trees of typed Entities (Product, Collection, Outfit) mapped via declarative rendering rules to React Renderers that declare data needs in GraphQL. A Node.js/browser Rendering Engine resolves and renders the Entity tree chosen by the recommendation system, with built-in monitoring, batched A/B testing, deployment previews against production, and performance gates such as Lighthouse CI, bundle size limits and Web Vitals reporting. Moving teams into a monorepo with a shared stack lowered the entry barrier and improved UX consistency, at the cost of blurred ownership. A hybrid mode serving Fragments and Renderers together eased migration, and about 90% of traffic now runs on IF.
- How We Built the BFCM 2023 Globe
Shopify Engineering mediumAdeptShopify'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.