# Bean material provenance

The model is authored in this repository. It is an original geometric reconstruction, not a photogrammetry scan. The skin texture was generated with the built-in image-generation tool on 11 October 2026 and processed by `scripts/bean-material.mjs` into local material maps. The original generated bitmap is preserved in `references/bean-surface-generated.png`.

Reference research: [Coffee bean macro](https://commons.wikimedia.org/wiki/File:Coffee_bean_macro.jpg) by Ashley Van Haeften, CC BY 2.0, and [Coffee Beans macro 1](https://commons.wikimedia.org/wiki/File:Coffee_Beans_macro_1.jpg) by Daniel Schwen, CC BY 3.0. These pages describe genuine macro photographs. Wikimedia blocked direct downloads with HTTP 429, so their photographs are not redistributed or used as texture pixels. No claim of a scanned or photographed final model is made.

## Final generation prompt

Saved material assets: `public/textures/bean-albedo.webp` (1024px), `public/textures/bean-normal.png` (512px, lossless), and `public/textures/bean-roughness.webp` (1024px). The canonical fallback is `public/bean-realistic.webp`, rendered from this material on the actual 3D mesh. Maps are kept neutral so GSAP's roast state can drive the live pigmentation. The built-in image tool generated the source bitmap; deterministic code derives the physical material channels.

Use case: photorealistic-natural. Asset type: a seamless PBR albedo surface texture for a realistically modeled single Arabica coffee bean in a Three.js product story. Generate one square 1024x1024 texture atlas filled edge to edge with the actual microscopic skin surface of a medium-roasted Arabica bean, as if photographed with a focus-stacked macro lens, then flattened into a seamless material map. Fine irregular interconnected longitudinal wrinkles, tiny cellular pits and pores, subtle irregular shallow cracks, delicate thin flaking silver skin fragments, dry leathery coffee seed skin, softly mottled chestnut and tobacco browns. Real coffee bean skin, not a smooth polished chocolate object, not wood, not cracked earth or lava. Very fine, realistic microrelief with broad subtle color variations. No individual bean silhouette, no central deep crease (the mesh already provides this), no other objects, no background, no borders, no text, no watermark. Entire image must be a uniform orthographic flat texture sample. Diffuse cross-polarized light, zero hard shadows or directional shading, no studio highlights or specular reflection, no vignetting, no blur. All corners and edges must tile. Dense organic nonrepeating-looking small details, restrained dark flecks and silver skin, photographic natural material quality. Medium brown neutral diffuse albedo. It will be wrapped on a 3D bean with changing roast colors; preserve identifiable photographic surface detail rather than abstract noise.
