← AI Visual & 3D Creator
18 min

3D for the Web, AR & Products

Model viewers, optimization budgets, fallbacks and accessibility, AR requirements, configurators and turntables.

Lesson 5 of 7
0 done
In plain English

People can spin a 3D product on your page or place it in their room with AR. Keep the file small, show a normal image first, and always keep price and details as normal text. Often a simple turntable video is the lighter, safer choice.

AR
Augmented reality: seeing a 3D object in your real space.
Turntable
A video of an object slowly spinning.
Lazy-load
Loading something only when it is needed.
Picture it
Showing 3D on a page
A normal image first
It loads fast and works everywhere
Then the 3D model
Keep the file small
Price and details as normal text
Not inside the 3D
Or a turntable video
Often lighter and safer

3D content that people can spin, zoom and place in their room is a strong selling feature for product pages and brand sites. It is also a tempting way to wreck a site's speed. This lesson teaches you to put 3D on the web responsibly. It covers optimized files, sensible viewers, fallbacks, and the product viewers and AR experiences that clients are starting to ask for.

Choosing a way to show 3D

  • Pre-rendered images or video, such as turntables: the smallest and fastest, and they work everywhere. This is often the right answer for a hero or an ad.
  • A model viewer component: drop in a GLB with orbit controls and optional AR. Great for product pages with little code.
  • A visual 3D web tool: design interactive scenes visually and embed them. Good for custom brand moments. Watch the speed.
  • A 3D code library: full control for configurators, games and data visualizations. It needs the most development effort.
model-viewer.html
<!-- Load the model-viewer web component once (check its docs for the current version/URL) -->
<model-viewer
  src="/models/sneaker.glb"
  ios-src="/models/sneaker.usdz"
  alt="Red running shoe, three-quarter view"
  poster="/models/sneaker-poster.webp"
  camera-controls
  auto-rotate
  ar ar-modes="webxr scene-viewer quick-look"
  shadow-intensity="1"
  loading="lazy"
  style="width:100%;height:420px;background:transparent">
</model-viewer>

Optimizing 3D for the web

  • Geometry: cut it down to the least that looks right at the sizes shown. Remove hidden faces and unused parts.
  • Compression: use mesh compression, such as Draco or meshopt, for the geometry.
  • Textures: size them to the need, often 1024 to 2048 pixels. Use efficient formats such as WebP or KTX2 and Basis. Pack roughness, metallic and AO into one image.
  • Aim for a small download. For mobile pages, a few megabytes at most, and under one or two when you can.
  • Lazy-load below the fold. Show a poster image at once, and load the model on interaction or when it becomes visible.
  • Test on a mid-range phone with a throttled network. If it stutters there, it is not finished.

Fallbacks and accessibility

  • Always give a static poster image and meaningful alt text. The page must work if WebGL is not available.
  • Respect reduced-motion settings. No auto-rotation or camera moves if the user prefers less motion.
  • Keep important information, such as price, specs and add to cart, in normal HTML outside the 3D canvas.
  • Make controls usable with a keyboard. Do not trap scrolling on mobile when the model fills the screen.

Augmented reality for products

AR lets shoppers place a true-scale model in their room, or try an item on. For that to work, the model needs the correct real-world scale, a clean origin at its base, realistic materials and a small file. iOS uses USDZ. Android uses GLB through its viewers. Furniture, lamps, decor and appliances are natural fits. Always check that the AR size matches the real product. A wrong size defeats the point and increases returns.

Product configurators

A configurator lets visitors change colors, materials or options, and see the model update. Technically, it swaps materials or switches parts on a single optimized model. So plan the model with that in mind. Use separate meshes for parts that can change, consistent UVs and named materials. Scope it carefully. A simple color and material switcher is a manageable paid project. A full multi-option configurator tied to pricing and stock is a development project.

Turntables and renders

  • A 360 degree turntable video from your 3D software is often lighter and more reliable than a live 3D viewer.
  • Render stills from several angles for galleries and marketplaces, using consistent lighting.
  • Deliver both: a live viewer for engaged shoppers, and rendered images for ads, social media and email.
Key takeaways
  • ✓Choose the lightest option that meets the goal: images or turntables, a model viewer, a visual tool, or code.
  • ✓Optimize with fewer polygons, mesh compression, right-sized textures and lazy loading. Test on real phones.
  • ✓Provide posters, alt text, reduced-motion handling and HTML for key information.
  • ✓Get the scale, origin and file size right for AR. Scope configurators carefully.
Hands-on exercise

Publish an optimized 3D product viewer

  1. Take the cleaned model from the last lesson and export a GLB. Export a USDZ too if you can.
  2. Compress the geometry and textures. Record the file size before and after.
  3. Embed it with a model viewer, including a poster image, alt text and lazy loading.
  4. Test it on a real phone over a throttled connection and note the load time. Improve it until it is acceptable.
Check yourself
Q1When is a pre-rendered turntable better than a live 3D viewer?show answer

When you need the lightest, most dependable option, such as a hero, an ad or an email. Also when interaction adds little value.

Q2What makes a model work well in AR?show answer

The correct real-world scale, an origin at its base, realistic materials, and a small, optimized file in a supported format.

Q3Why keep price and specs outside the 3D canvas?show answer

Important information must stay reachable, searchable and usable even if the 3D fails, or if the user cannot operate it.

← 3D Foundations & AI Asset CleanupMotion & AI Video →
0 / 7 finished0%