Lumvik

Insights / Websites

3D on a business website: when it helps, and how to keep it fast

By Jay, Co-founder · · 3 min read

Real-time 3D has become easy to add to a website and hard to justify. A spinning object in the hero looks impressive in a demo and costs a visitor several seconds and a warm phone. We use 3D on this site and in two of our Originals, so here is how we decide, and what we do to keep it fast.

When 3D helps

  • When the product has a shape people need to understand. Furniture, lighting, objects, machines. In Halden, our demonstration store, you can turn each product around and switch finishes, which a photograph can't do.
  • When it replaces photography you would otherwise pay for. Every Halden product image is a render of the same model, so a new finish costs a render, not a shoot.
  • When the experience is the point. Plinth is an exhibition; moving the light is what you came for.

If none of those is true, a well-lit still image usually does the job better.

Still first, 3D second

Every 3D element on this site starts life as a still image rendered from the same scene. The still is what loads first and what most visitors see. The live version replaces it only when the device can run it smoothly:

  • Not on small screens, and not when the visitor has asked for reduced motion or reduced data.
  • Not on devices reporting few processor cores or little memory.
  • Only after the page has loaded and settled, so it never competes with the content.
  • Only if WebGL2 is available. If anything fails, the still image simply stays.

Render only when something changes

A 3D scene that redraws sixty times a second while nothing moves is a battery drain. Our scenes stop rendering when the object is still, pause when the tab is hidden or the element scrolls off-screen, and cap pixel density on very sharp screens. The live home-page hero also watches its own frame times and steps back to the still image if frames get slow.

Textures from code

Image textures are often the heaviest part of a 3D scene. Our plaster, travertine, marble, wood and glaze are generated as procedural textures on a canvas when the page loads, from a few lines of noise functions. The download is code, not megabytes of images.

Accessibility

A canvas is invisible to a screen reader. Anything a visitor needs to know goes into the page as text: product details, the curator's notes in Plinth, alternative text on every still. The 3D adds to the experience; it never carries information on its own.

Thinking about 3D for your products or site? Tell us what you sell and we will tell you whether it is worth it.

Read next

What to cut from your MVP →

WhatsApp