Magento 2 3D product viewer: how to add 3D and AR to product pages
The options for a 3D product viewer on Magento 2 and Adobe Commerce, what to prepare in your catalog, how it works with configurable products, Hyvä, Luma and the full page cache, and the setup step by step.
Magento stores often sell exactly the products that are hard to judge from photos: furniture, cabinets, appliances, lighting, outdoor equipment. They come in many sizes and finishes, and the shopper's first question is whether the product fits. A Magento 2 3D product viewer lets the shopper turn the product, change its options and see its real size before ordering.
This article compares the ways to add 3D to Magento 2 and Adobe Commerce, what to prepare in your catalog, and how the setup works.
Three ways to add 3D to Magento
1. A plain 3D viewer. You upload a GLB file per product and a viewer component shows it on the product page. It is simple, but every model has to be made elsewhere, every option needs its own file, and the viewer does not know the product's size or the cart.
2. A hosted configurator embedded in Magento. A script from an outside service shows the configurator. This is quick to start, but your catalog lives in two places, and the configurator has to be told about every product and price change.
3. A Magento extension that runs on your own server. The module reads products, attributes and configurable options directly from Magento, stores the 3D scenes in your database and adds the viewer to your product pages. No catalog data leaves your store, and the cart is Magento's own.
For most Magento stores the third option is the most robust, because Magento already holds the truth about products, prices and stock.
What a good Magento 3D viewer should do
- Read configurable products. Choosing a color or size on the product page should open the scene of that option, and the configured product should go to the Magento cart.
- Use real dimensions. Width, depth and height attributes give the model its true size. Without them, 3D is a pretty picture, not a buying aid.
- Work with Hyvä and Luma. Many stores run Hyvä now, others still run Luma or a Luma-based theme. The viewer should work on both without a compatibility module.
- Respect the full page cache. Product pages are cached by Magento or Varnish. The viewer must load on top of a cached page without breaking it.
- Offer AR on phones. On iPhone and Android, shoppers should see the product in their room at its real size, without an app.
- Make 3D models without a 3D artist. Building a model by hand for every SKU does not scale. Models made from product photos, plus simple shapes for cabinets and boxes, cover most catalogs.
Prepare your catalog
Size attributes
Give every product its outside size: width (left to right), depth (front to back) and height (floor to top), handles and legs included. Decide on one unit, centimeters or inches, before you fill them in. If your catalog already has size attributes, a good extension lets you map them instead of creating new ones.
Product photos
For models made from photos, use a photo of the whole product, straight from the front, alone on a plain light background, at least about 1000 pixels on its longest edge. Read photo to 3D model for product pages for what works and what does not.
Start small
Pick ten best sellers in one category. Check their sizes, make their models and look at them on a phone before you roll out more.
Setting it up with Spatial Configurator
The Magento 3D product configurator is a Composer package for Magento Open Source and Adobe Commerce 2.4.7 to 2.4.9, sold by Techimprovement. The short version:
- Buy the licenses (the extension needs Techimprovement AI Content too) and create a Composer access key for your domain.
- Add the repository and run
composer require techimprovement/module-spatial-configurator, thensetup:upgrade,setup:di:compile,setup:static-content:deployandcache:flush. - Turn it on under Stores > Configuration > Techimprovement > 3D Spatial Configurator, choose your dimension unit and map your size attributes.
- Open a SKU in Catalog > 3D Spatial Configurator > Scene Editor, create its 3D model from the product photo and save the scene.
- Open the product page: the Try it in 3D banner shows under the gallery.
The Magento install guide has every command and setting, including bulk CSV import and mass actions to create scenes for many products at once.
Hyvä, Luma and performance
The same package works on Luma, Luma-based and Hyvä storefronts. The launcher sits in the product media container under the gallery and loads one small ES module script; the 3D studio itself loads only when the shopper opens it. That keeps the product page fast and your Core Web Vitals intact. Our Core Web Vitals guide for 3D explains why loading 3D on demand matters.
Full page cache and Varnish are supported. Flush the cache after setup and after each update. If you serve models from a CDN, add CORS headers and a Content Security Policy entry for its host.
Beyond a single product
A 3D viewer answers "what does it look like?". Furniture shoppers also ask "will it fit, and what goes with it?". The extension adds:
- Furnished rooms and room planning in the studio, with doors, windows, rugs and wall art, so the product is shown at its real size in context.
- A door fit check from the 3D configurator, so the shopper knows the piece gets through their doors before ordering.
- Buy the look: room objects linked to your SKUs go to the cart together with the product.
- View in your room with AR on phones (see the view in your room feature), explained in how AR helps shoppers buy furniture online.
Checklist
- Size attributes filled and the unit chosen.
- Front photos on plain backgrounds for your first products.
- Extension installed, compiled and the cache flushed.
- Scenes saved and live for ten best sellers.
- Tested on a phone: open the studio, change an option, add to cart, try AR.
Next steps
See what the Magento extension includes, or compare it with the hosted plans for Shopify and WooCommerce on the pricing page. For an overview of every platform, read how to add a 3D product configurator to your store.