Component · Interactive components

3D product viewer for a cast iron pot

by Informeek Studio 11 November 2026
Live Drag to turn the pot, then try a glaze and lift the lid

The prompt

Build a 3D product viewer for a fictional cookware maker, Ironmere Cookware, using three.js 0.160 as an ES module. Warm studio page (radial gradient from #f7f3ec to #dcd3c5). Left: a transparent WebGL canvas showing a casserole pot built from code, no model files. Make the body, the black iron rim, the cream interior, the domed lid and a steel knob with LatheGeometry profiles, and the two side handles with TubeGeometry along a curve. The enamel is a MeshPhysicalMaterial with clearcoat 1 and vertex colours that fade from a dark foot to a bright rim. Light it with a hemisphere light, a key light and an environment made with PMREMGenerator from a small generated room with three bright panels, and put a soft radial shadow texture on a plane underneath. Drag to orbit with inertia, pinch or wheel to zoom between limits, arrow keys and plus and minus on the focused canvas, and a slow auto turn after 2.5 seconds idle. Right: label, serif headline "The 26 cm casserole, in five glazes", copy, £215, a radio group of five 44px glaze swatches (Persimmon, Deep cobalt, Sage, Oyster, Graphite) that blend the glaze over 450ms, a "Lift the lid" toggle that raises and tilts the lid, and an "Add to basket" button. Stack on phones with a 228px stage, cap pixel ratio at 2 and show a text fallback without WebGL.

Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by changing the lathe profile and glazes to model your own product.

About this 3d product viewer

Product photos show one angle. A 3d product viewer lets shoppers pick the pot up and turn it over. This one is built entirely in code, with no model file to download. The body, rim, interior, lid and knob are each a single line profile spun round by three.js, and the handles are tubes bent along a curve, which keeps the whole thing a few kilobytes.

The glaze is what sells it. Each colour fades from dark at the foot to bright at the rim, like real enamel, and a clear coat picks up reflections from a tiny studio room generated on the fly. Pick a swatch and the new glaze washes across the pot, press Lift the lid and it rises and tilts so you can see the cream interior. Drag, pinch, scroll or use the keyboard to look around, and when you stop it turns slowly on its own.

Why the prompt works

  • It builds the object from profiles, which any lathe shaped product can copy.
  • It explains the material, clearcoat plus vertex colours for the ombre.
  • It makes its own reflections, so there is no HDR file to fetch.
  • It covers every input, touch, mouse, keys and idle.

Where to use it

Cookware, ceramics, lighting, bottles and other turned products, or any shop page where colour choice decides the sale.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Component · Interactive components

Rope physics yarn curtain in a doorway

Live
Component · Interactive components

Faceted crystal orb with a 3D glass effect

Live
Component · Interactive components

Stretch knit cloth simulation