Blog · 16 November 2026 · 8 min read

WebGL for a brand: what tocheck before you say yes

A 3D scene can carry a brand or bury its message: here is what I check before starting a WebGL experience.

White wireframe polyhedron on a black background, crossed by a green beam that splits into several rays
Fig. 01White wireframe polyhedron on a black background, crossed by a green beam that splits into several rays

Someone is pitching you a WebGL experience for your brand: a product that turns under the mouse, a 3D set that moves as you scroll, a home page that feels like a game. The demo looks great on the studio's computer. The question I always ask next is what a visitor will see on a three-year-old phone, on 4G, on the Tube.

I built this site myself, with 3D backdrops in three.js. What I learnt is that the 3D is the easy part. Most of the work is everything that happens when it cannot run. Here is what I check before saying yes to a 3D scene for a brand, and what I would ask a supplier.

01What WebGL is, and what a brand can expect from it

WebGL is a browser API for rendering high-performance 2D and 3D graphics without plug-ins, built closely on OpenGL ES, according to MDN's documentation. In practice, the browser hands the drawing to the device's graphics card. That is what makes a scene that moves live possible, rather than a fixed video.

Hardly anyone writes raw WebGL. You go through a library such as three.js and, on a React site, React Three Fiber, which is the stack I use here.

From a 3D scene, I expect one of three things for a brand: show a product from every angle, set a mood that a photo cannot, or let the visitor handle something. If none of them applies, I see no reason to pay for 3D.

02When 3D serves the message, and when it hides it

A good 3D website is first a website people can read. Visitors come for information: what you sell, who it is for, how to reach you. If the scene sits in front of the text, delays the first render or takes over scrolling, it costs more than it brings.

Scrolling is the most common trap. Many 3D experiences move the camera with the mouse wheel. Nielsen Norman Group calls this scrolljacking: a pattern that changes the speed, and sometimes the direction, of scrolling. In their testing, it causes more pain than benefit, the problems seen on desktop get worse on mobile, and a short scrolljack is tolerated better than a long one.

My rule fits in one sentence: the 3D decorates or illustrates, the text informs. I keep the text in plain HTML, readable and indexable, with the scene behind it, as a backdrop or in a defined block. Before building anything, I show the page as a clickable prototype, with a still image where the 3D will go. If the page does not stand up without the scene, the scene will not save it.

03The performance budget is set before the first scene

You tune a WebGL scene like a mixing desk. In a video on three.js optimisation, the developer behind the Valentin's coding book channel describes each element (polygons, materials, textures, animations) as a slider to trade off between quality and performance. He advises setting priorities before you start, tracking frames per second, memory and draw calls, and avoiding textures above 2K. He also shows that shadows, transparency and post-processing double the draw calls.

What I take from it for a brand project: the budget goes into the specification, not after delivery.

What I put in the specification

  1. The reference device: a mid-range phone a few years old, not the studio's latest computer.
  2. The maximum weight of the scene (models and textures), loaded after the text.
  3. What shows when the 3D cannot run: a still image of the scene, planned from the mock-up stage.
  4. How the scene behaves when reduced motion is switched on.
  5. Who updates the scene in a year's time, and from which source files.

The first render matters too. Google measures Largest Contentful Paint, the render time of the largest image or text block in view, and recommends 2.5 seconds or less at the 75th percentile of page loads. A scene that holds the text back while it loads works directly against that figure. I go into this in more detail in the piece on site speed and Google's loading metrics.

04How I built the 3D backdrops on this site

This site runs on Next.js, with three.js and React Three Fiber for the backdrops. I built it on the same stack as the one described in the article on moving to Next.js and Sanity. Here are the rules I wrote into the code, one for each failure I wanted to avoid.

The image comes first. On the home page, a still image of the scene is rendered by the server and appears straight away, in three sizes depending on the screen. The 3D loads separately, only once the page is on screen and the browser is idle. It then fades in over the image as soon as its first frames are ready. The visitor reads the text while the scene arrives.

No 3D where it cannot run well. Before loading the scene, I test the renderer. If it is software rendering (the processor standing in for a missing graphics card), the page would freeze, so those machines keep the still image. The same goes for visitors who have asked their browser to save data. The test is about the machine, never about who the visitor is.

A watch on the first frames. Once the scene is running, I time the frames, ignoring the very first ones (while the shaders compile). If the median frame takes more than 34 milliseconds, I lower the resolution. Above 120 milliseconds, I switch back to the still image. I also cap the pixel density, lower on touch screens, which are often the most modest devices.

What I had not seen coming: these rules took longer than the scenes themselves. And a lesson I keep meeting on client work applies here too: a site can look fine to the team and be broken for visitors. So I test on a modest machine, in a private window, as a visitor would.

05Motion, scrolling and accessibility

A moving scene can make people feel sick. The W3C says so in WCAG success criterion 2.3.3: motion animation triggered by interaction should be possible to switch off, unless it is indispensable, because some users experience distraction or nausea. Parallax is cited there as something that is often not needed. It is a level AAA criterion, so above the usual legal minimum, but it describes exactly the kind of motion a 3D experience creates.

The technical answer exists. Operating systems offer a "reduce motion" setting, which the browser exposes through the prefers-reduced-motion media query. In CSS, it takes one line. For an animation driven by JavaScript, such as a three.js scene, you have to read the preference and listen for changes yourself, and that is where it often gets forgotten.

On this site, most scenes read that preference and calm down, or stop. The animated intro is skipped. I made one deliberate exception: when visitors click on an object themselves to make it react, the effect stays on, because they asked for it.

Two more points matter to me. A decorative scene is hidden from screen readers, since it carries no information. And the graphics card can lose its context mid-session: MDN's guide to WebGL in production says to handle the webglcontextlost event, which can fire when the GPU runs out of memory. Without that, the visitor is left looking at an empty rectangle.

06The limits, and what I would not do

I do not do pure graphic production: modelling a faithful 3D product, with its materials, is a craft of its own. What I can do is frame the project, write the performance and fallback rules, build the scene into a Next.js site and check the result. For a high-end product model, I would work with a 3D artist.

I would also advise against 3D in three cases: a page meant to convert quickly (a form, a sign-up, a booking), a site the team cannot maintain without the supplier, and an audience that is mostly mobile on weak networks. A good photo and a light CSS animation often do better, for a fraction of the effort.

07The questions to ask before you sign

If someone pitches you a WebGL experience on Monday, these are the questions I would put to the supplier, in this order:

  • Which reference device is the scene tested on, and at how many frames per second?
  • What does a visitor see without WebGL, with data saving on, or with reduced motion?
  • Does the text appear before the scene, and what is the measured LCP?
  • Does scrolling stay normal, or does the scene take it over?
  • What happens if the graphics card loses its context?
  • Who changes the scene in a year's time, and with which files?

If the answers are vague, ask for a mock-up showing the fallback image before the scene. That is what some of your visitors will see. You can view this site in 3D and, if you try it on an old machine, its still version. The projects I have led and how I work are on the services page. If you are weighing up a 3D project, we can talk it through.

Frequently asked questions

How do I enable WebGL?
In most recent browsers, WebGL is switched on by default. If it does not work, the usual checks are that hardware acceleration is enabled in the browser settings and that the graphics drivers are up to date. On the brand side, I assume that some visitors will never have WebGL, and I plan a still image for them.
What does the error "WebGL is not supported by your browser" mean?
The browser could not create a WebGL context, because the feature is switched off, the graphics card or its driver is blocked, or the machine has no graphics acceleration. On a brand website, a visitor should never see this message. The site should detect the problem and show a still version of the scene instead.
Does WebGL use the graphics card?
Yes, that is the whole idea. The browser hands the drawing work to the graphics card, which is what lets a 3D scene move live. When there is no usable graphics card, some browsers fall back to software rendering on the processor. The scene still appears, but it stutters and freezes the page. On this site, I detect that case and do not send the 3D at all.
How do you handle 3D objects on a website?
Almost always through a library built on WebGL, such as three.js, and, on a React site, React Three Fiber. Objects are modelled in 3D software, exported as glTF, then loaded into the scene, where you set the camera, lights and interactions. I would test the scene on a prototype before building it into the site.

Sources

  1. 01MDN Web Docs, WebGL: 2D and 3D graphics for the web
  2. 02Nielsen Norman Group, Sara Paul, Scrolljacking 101
  3. 03Valentin's coding book (YouTube), Three.js Optimization - Best Practices and Techniques
  4. 04web.dev (Google), Largest Contentful Paint (LCP)
  5. 05W3C WAI, Understanding Success Criterion 2.3.3: Animation from Interactions
  6. 06web.dev (Google), prefers-reduced-motion: Sometimes less movement is more
  7. 07MDN Web Docs, WebGL best practices