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.
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.