Architecture · 12 min read
How to build a 3D product configurator: architecture, tradeoffs, and cost
A working 3D configurator is five subsystems: an asset pipeline that produces a mesh for every option, a rule engine that knows which combinations are legal and what they cost, a resolution layer that maps each configuration to a real SKU, a WebGL frontend on a mobile performance budget, and a commerce integration that writes orders your warehouse can read. This is the architecture walkthrough we wish had existed before our first build: what each layer does, where it breaks, and what it costs to run.
What does the full architecture actually consist of?
A working configurator is five subsystems, and only one of them is visible. The asset pipeline produces a mesh and material set for every product and every option that changes how it looks. The rule engine stores which combinations are legal and what each one costs. The resolution layer turns a finished configuration into a SKU, a variant, or a vendor-orderable build with a real availability signal. The viewer frontend renders the scene and captures the shopper's choices. And the commerce integration writes the result into the cart and the order in a way your warehouse and your accounting both understand. Treat each as a separately versioned artifact, because they fail independently and they ship on different schedules.
The mistake most first builds make is staffing for the viewer and discovering the other four layers in production. The 3D scene is the smallest part by complexity. Solid open-source renderers exist, embedding is a solved problem, and even AR Quick Look is a file export away. What does not come off the shelf is your option logic, your pricing rules, and the mapping from a rendered combination to something you can actually manufacture or pull from stock. On our builds the viewer is usually under a fifth of the total effort; the rest is data engineering wearing a 3D costume.
It helps to trace one page load end to end, because the plumbing makes every later decision easier. The page renders a lightweight shell with the options UI. The viewer fetches a manifest, a small JSON document listing the option dimensions, their legal values, and the asset URL for each mesh. The base model downloads first so something is on screen fast, and option meshes lazy-load on demand. Every selection event runs the rule engine, which prunes now-illegal values, recomputes the price, and hands back the next asset to load. At add to cart the configuration serializes into a canonical key, resolves to a SKU, and hits the cart with the price verified server-side. Five subsystems, five failure modes, one user experience.
How do you build the mesh and asset pipeline?
There are three production routes for geometry, and a real catalog uses all three. Photogrammetry and 3D scanning (Metashape, RealityCapture, Polycam, or a turntable rig) produce fast, realistic captures of organic shapes like upholstered frames, but the raw output needs retopology and cleanup before it performs in a browser. CAD conversion reuses manufacturer STEP or IGES files; for casegoods and hardware this is the cheapest route when clean files exist, which is less often than vendors claim. Manual modeling in Blender is the fallback for everything else and still sets the quality bar for hero products. Budget per product, not per catalog: a scanned ottoman and a hand-modeled sectional have wildly different unit costs.
The output spec matters more than the capture tool. Everything ships as glTF packed into GLB containers, with Draco or Meshopt geometry compression and KTX2 compressed textures so a mid-range phone can decode them on the GPU. Set explicit budgets before modeling starts: a triangle ceiling per product, a texture budget per material, and pivot and scale conventions so a leg mesh always lands exactly where the manifest says it will. That discipline is what makes assets interchangeable later, when the same legs mount on four different frames without anyone opening a modeling tool.
Then automate the pipeline or drown in it. A repeatable flow looks like this: the source asset drops into a bucket, a headless Blender or Simplygon job decimates and bakes it, a packer emits the GLB plus KTX2 textures, and a manifest generator updates the product's asset JSON with content-hashed URLs. Naming is load-bearing here. Paths like 'frame', 'fabric/velvet-oxford', and 'legs/walnut-tapered' mean the rule engine can construct an asset reference straight from a configuration key without a hand-maintained lookup per product. When a new fabric arrives, the only human work should be capture and texture QA; the rest is a script run.
Plan for asset multiplication honestly. A sofa in 12 fabrics and 3 leg options is a base mesh plus 12 material sets plus 3 leg meshes, and modular pieces multiply again. For a mid-size upholstered catalog that is hundreds of managed assets per collection, and every new fabric cycle repeats the work. That recurring workload, not the initial modeling sprint, is what the operating budget has to absorb, and it is the cost driver we walked through in the configurator ROI breakdown.
How should the option and rule engine be designed?
Design the option space as data, not code. Each option is a dimension (fabric, finish, size, arm style, leg) holding a set of values, and each product is the product of its dimensions. Rules are constraints declared over tuples of values: 'leg: chrome sled base is invalid with arm style: rolled' is a row in a constraint table, not a branch inside a component. Keep the whole thing in a declarative JSON document, versioned like code but editable by ops, because the people who learn that the sled base was discontinued work in merchandising, not in your repository.
Evaluation is constraint propagation on every selection event. The shopper picks a value, the engine intersects it with every constraint touching that dimension, prunes the now-illegal values everywhere else, and hands the UI a fresh legal option space plus the assets to render. The alternative, validate-on-submit, produces the worst UX in the category: shoppers assemble impossible furniture and get scolded at the end. Eager pruning makes invalid states unrepresentable in the UI, and it also makes the engine a pure function you can exhaustively test.
Pricing deserves its own warning label. Additive deltas, a base price plus a per-option delta, handle most catalogs, but they silently break when options interact. A king size in a premium fabric can cost more than the size delta plus the fabric delta when fabric is priced per yard. The honest options are a price matrix for interacting dimensions or a versioned price function with golden test vectors. Either way, the number rendered in the browser is a display value. The price that lands on the order must be recomputed by your backend or a Shopify Function, or eventually a shopper will hand-edit the console and buy a configured sofa at a price you never set.
How does a configuration resolve to a purchasable SKU?
The resolution layer is a deterministic function from configuration to SKU. Serialize the selection into a canonical key (options sorted, values normalized, something like 'fabric:velvet-oxford|legs:walnut|size:84'), then look that key up in a table generated when the product was onboarded. If the option space is small enough to express as native Shopify variants, do exactly that and let Shopify own SKU, price, and inventory. Past the variant limit, and furniture reaches it fast because option math is multiplicative, each leaf becomes a synthetic SKU: the order carries the shopper's selections as line item properties, the price comes from your price function through a cart transform or a backend call, and fulfillment reads the synthetic code.
Concretely, on Shopify the data lives in four places. Product metafields hold the option definitions and the rule payload. Metaobjects hold shared, reusable option sets, like a fabric library with swatch textures and tier pricing, referenced by every product that offers it. Line item properties carry the human-readable selection onto the order and the packing slip. And the availability signal comes from wherever the truth lives: variant inventory for stocked configurations, or your vendor feed for made-to-order pieces with a lead time. The inventory sync layer that keeps ordinary products honest is the same plumbing that keeps a configurator honest; we covered the vendor side of it in syncing Shopify inventory with vendors.
One subtlety worth designing in from day one: availability for a configured product is a component-level question. A sectional configuration is buildable only when every module inside it is orderable, so the resolution layer should return not just a SKU but a build plan, the list of components with their individual statuses. That is what lets the UI say 'the left arm unit in this fabric is a nine-week lead time' instead of a binary in-or-out flag that is wrong about half the catalog.
What does the viewer and frontend layer need to handle?
Pick a renderer to match your team's appetite. three.js gives you total control and a mature ecosystem, Babylon.js is comparable with more batteries included, and Google's model-viewer web component is the fastest path when the scene is one product with swapped materials and an AR button. Whatever you choose, draw a hard boundary: the viewer owns the scene graph, the page owns the options UI and cart interactions, and the only thing crossing the boundary is the configuration JSON. That boundary is what lets you swap renderers later, or reuse the same rule engine across a theme build and a headless storefront, which is exactly how we structure our Shopify furniture configurator builds.
[object Object]
The CDN strategy is simple but has to be deliberate. Every generated asset gets a content-hashed filename and an effectively immutable cache policy, while the manifest gets a short TTL or a versioned URL so a fabric update propagates in minutes instead of cache-purge tickets. Serve through a real edge CDN (CloudFront, Cloudflare, Fastly, or Shopify's own CDN for theme assets), preload the assets for the most likely next selections, and never let the initial page weight include every option mesh. The difference between a configurator that feels instant and one that feels like a loading screen is mostly this file discipline, not the renderer.
How do you test that every combination actually works?
The rule engine makes testing tractable because it is a pure function over the manifest. Enumerate the option space, classify every leaf as valid or invalid, and snapshot the expected SKU and price for a golden subset. That suite runs in CI on every manifest or rule change, so a merchandiser marking a fabric discontinued cannot silently orphan a shelf of rendered configurations. When the option space is too large to enumerate exhaustively, and millions of leaves do happen, enumerate the constraint pairs instead and test every boundary case: each constraint applied to each value it touches.
Run four coverage audits as scripts, not as a QA checklist someone has to remember. Every option value in the manifest has a mesh and textures that actually load. Every mesh in the bucket is referenced by some manifest, or it is dead weight costing CDN money. Every legal leaf resolves to a SKU with a price and an availability source. Every synthetic SKU pattern round-trips through the order pipeline, so what the shopper selected is what the warehouse reads. These audits catch the boring drift, a renamed texture, a stale metaobject reference, that manual testing reliably misses.
Then cover the last mile with end-to-end tests on a handful of golden configurations: drive the viewer in a headless browser through selection, add to cart, and checkout, asserting the line item properties and the server-verified price. In production, run a canary configuration through the same path on a schedule. The failure that hurts is not a broken scene; it is a valid-looking order priced wrong or promising an unbuildable combination, which is the configurator version of the overselling failure described in why stores oversell.
What does it cost to run after launch, and when is building the wrong call?
Post-launch work is mostly asset and data operations, not code. A new fabric means capture, texture work, a manifest update, a rule touch-up, and a test run. A vendor changing a finish means a constraint update. A price change means a new version of the price function. The assets and the data model outlive the viewer, which is worth remembering when a vendor pitches a hosted solution where the option logic lives inside their canvas: if the rules are not yours, replatforming means rebuilding them. It is the same argument that makes structured catalog data pay off for agentic commerce: machines read your rule layer, not your pixels.
The honest cost shape is that asset production dominates year one and rule and data maintenance dominates every year after. Apps invert that trade: subscription and convenience up front, friction when option depth, computed pricing, or vendor-aware availability exceed what the app models. Our Threekit comparison covers the enterprise end of that spectrum, and the configurator services page describes how we scope custom builds. For the Shopify-specific version of this whole walkthrough, the companion piece is 3D product configurator for Shopify.
Three honest cases where the answer is do not build. If the option space is shallow, 'pick one of four colors', a swatch picker and good photography win on cost and speed. If the option data is not digitized yet, fabric availability in a rep's inbox and pricing in a spreadsheet macro, the project is a data project first, so scope it as such rather than discovering it mid-build. And if the catalog is fixed SKUs, you want a 3D viewer rather than a configurator at a fraction of the cost.
Questions this answers
How much does it cost to build a 3D product configurator?
A custom build is typically a one to three month development project plus asset production, which is usually the larger cost: tens to a few hundred dollars per modeled product depending on the production route and complexity. App-tier tools like Zakeke or Angle 3D run tens to hundreds a month plus the same asset costs, while enterprise platforms like Threekit price on implementation and annual contract. Asset and rule maintenance is a recurring cost on every path.
What 3D file format should a web product configurator use?
glTF packed as GLB is the standard for web delivery. Compress geometry with Draco or Meshopt and textures with KTX2 or Basis so phones decode them on the GPU, and export a USDZ alongside each GLB if you want iOS AR Quick Look. Keep the heavy source formats (FBX, STEP, native Blender files) inside the pipeline, never in the browser.
Should configured products be real Shopify variants?
When the option space fits inside Shopify's variant limits, yes: variants give you native SKU, price, and inventory for free. Past that point, configurations resolve to synthetic SKUs carried as line item properties on the order, with price recomputed by a backend or Shopify Function and availability sourced from your own stock or vendor feed data.
How do you keep a 3D configurator fast on mobile?
Set a payload budget (base model in the low single-digit megabytes), lazy-load option meshes, compress textures to KTX2, swap materials instead of geometry for finish changes, serve everything through a CDN with content-hashed immutable URLs, and test on a mid-range phone rather than a desktop GPU.
Do you need photogrammetry or 3D scanning for every product?
No. Scanning suits organic upholstered shapes but needs retopology; CAD conversion is the cheapest route when clean manufacturer files exist; manual modeling is the fallback and the quality ceiling for hero products. Most catalogs mix all three routes product by product.
When is a configurator app a better answer than a custom build?
When the option space is shallow, every configuration still maps to a real variant, and pricing is per-variant rather than computed. Apps stop fitting when you need deep option rules, computed prices, or availability that respects vendor lead times, which is exactly when owning the data layer matters more than owning the viewer.
Want the architecture without the eighteen-month science project?
We build configurators on top of the option-logic and inventory layer that makes every rendered combination a real, fulfillable SKU. See how we scope configurator builds, run the agent check for a scored read on your catalog's data layer, or book a call to talk through your option space.