# Model minuman Sanjung — 16 November 2026

Hasil generate 3D berdasarkan `../coffee-trio.jpg`. Ketiga model **belum replika identik 100%**; setelah persetujuan pengguna, ketiganya dipasang pada section menu utama dengan satu canvas, gambar cadangan, serta pemuatan saat mendekati viewport.

## Proses

1. Built-in imagegen mengisolasi setiap minuman, menghapus tangan/latar dan merekonstruksi bagian tertutup. File `*-reference.png` merupakan hasil generatif, bukan potongan foto yang identik piksel demi piksel.
2. Referensi diunggah ke Meshy: Image to 3D, High Detail, **Meshy 6 Lite**, Pose off, CC BY 4.0. Setelah bentuk selesai, Texture → Image Input → Meshy 6 Lite → Generate PBR Maps on.
3. Model berwarna diunduh sebagai GLB dari UI resmi. Tidak membeli langganan. Setiap minuman memakai 10 kredit bentuk + 10 kredit tekstur; total 60 kredit. Saldo akhir yang terlihat 85 karena akun juga menerima reward selama proses.
4. `*.glb` tanpa suffix adalah unduhan asli. `*-web.glb` memakai tekstur WebP kualitas 95 dan kompresi geometri Draco melalui glTF Transform 4.5.1; jumlah segitiga tidak dikurangi. Kompresi tidak memperbaiki ketepatan visual.

## Aset dan lisensi

- `mont-blanc.glb`: unduhan `Meshy_AI_Orange_Cream_Cold_Bre_1116075535_texture.glb`.
- `berry-presso.glb`: unduhan `Meshy_AI_Hibiscus_Espresso_Fiz_1116080001_texture.glb`.
- `black-sun.glb`: unduhan `Meshy_AI_Citrus_Amber_Refreshe_1116080339_texture.glb`.
- Pembuat model: akun **nocash.coder**, dibuat dengan Meshy 6 Lite. Lisensi yang dipilih: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Sumber: [workspace Meshy pemilik akun](https://www.meshy.ai/workspace?sidebar=model).
- Foto sumber: [Sanjung Hill Coffee & Bistro](https://www.instagram.com/sanjunghills/reel/DfrJU_AgOCU/). Pemetaan nama mengikuti konteks proyek: atas Mont Blanc, kiri bawah Berry Presso, kanan bawah Black Sun; belum diverifikasi langsung dengan pemilik produk.
- Environment preview: Studio Small 03, Greg Zaal / Poly Haven, CC0, memakai aset yang sudah ada.

## Pemeriksaan visual dan batasan

Mont Blanc mempertahankan gelas beralur lengkung dan topping zest, tetapi krim lebih rata, detail es kurang terbaca, serta kaca masih tampak padat. Generator menyatukan kaca dan cairan menjadi permukaan bertekstur: material GLB memakai `alphaMode: OPAQUE`, bukan dinding kaca transparan dengan cairan/es terpisah. Sisi belakang disintesis dari satu pandangan. Dimensi fisik tidak diukur.

Untuk kecocokan lebih tinggi diperlukan pemodelan ulang material/komponen kaca, cairan, es dan garnish secara terpisah, serta foto produk dari beberapa sisi dan ukuran gelas. Tidak ada jaminan identik 100% dari tiga model ini.

Buka [preview interaktif](preview.html) melalui `http://sanjung.test/assets/generated-3d/preview.html`. Gambar referensi tampil jika model gagal dimuat.

## Verifikasi

Ketiga GLB asli dan versi web diperiksa header, panjang file, mesh, serta tiga tekstur tertanam. Jumlah segitiga asli dan versi web sama: Mont Blanc 124.882, Berry Presso 145.836, Black Sun 267.812. Ukuran versi web masing-masing 1.947.336, 2.460.180, dan 2.271.172 byte.

Preview berhasil memuat tiga model; kontrol keyboard, tautan unduhan dan tidak adanya overflow diuji pada viewport 1214 px dan 390 px melalui `tests/generated-models.browser.js`. Bagian depan dan belakang diperiksa secara visual. Jalur fallback terlihat saat file model belum tersedia. Belum diuji pada ponsel fisik atau dibandingkan dengan pengukuran produk asli.

[Screenshot preview](preview.png).

## Hero dari foto pengguna

Hero utama memakai `hero-cup-web.glb`, dibuat dari foto cup karamel berlogo S merah yang dilampirkan pengguna. `hero-reference-original.png` adalah salinan input asli; foto ini digunakan langsung untuk bentuk dan tekstur di Meshy 6 Lite, High Detail, Pose off, Generate PBR Maps on. Pembuat: akun **nocash.coder**, lisensi yang dipilih CC BY 4.0. Proses memakai 10 kredit bentuk dan 10 kredit tekstur, saldo 85 menjadi 65 tanpa pembelian.

`hero-cup.glb` adalah unduhan asli `Meshy_AI_Iced_Caramel_Latte_1116081851_texture.glb`, berukuran 9.844.912 byte. `hero-cup-web.glb` memakai tekstur WebP kualitas 98 dan kompresi Draco, berukuran 2.668.864 byte. Keduanya memiliki 126.876 segitiga; tidak dilakukan simplifikasi mesh agar detail logo terjaga.

`hero-reference.png` merupakan gambar cadangan transparan hasil built-in imagegen. Logo merah terlihat jelas pada model, tetapi hasilnya belum identik dengan foto: tutup dan material plastik transparan masih berbeda, serta sisi belakang merupakan rekonstruksi generatif. Hero hanya mengayun ringan secara otomatis; pengunjung tetap dapat memutar manual.

Halaman utama diperiksa pada viewport desktop 1214 px dan mobile 390 px. Pengujian `motion.browser.js`, `reduced-motion.browser.js`, `menu-fallback.browser.js`, dan `model-context.browser.js` lolos: pergantian menu, balapan pemuatan, keyboard, reduced motion, kegagalan unduhan, serta pemulihan WebGL. Komposisi hero dan menu diperiksa secara visual. Belum diuji pada ponsel fisik.

### Prompt gambar cadangan hero

Built-in imagegen, `transparent_background: true`, input foto asli pengguna:

Use case: background-extraction. Edit target: the attached product photo. Remove ONLY the pure white background and make it truly transparent. Preserve the entire takeaway iced caramel coffee cup and lid, their exact silhouette, proportions, liquid color, ice, whipped cream, caramel drizzle, condensation, photographic lighting and details. MOST IMPORTANT: preserve the red interlocking S-shaped logo on the front exactly as shown, with the same shape, proportions, red color, sharp edges, placement and scale. Do not redesign, approximate, redraw, add letters to, replace or embellish this logo. Keep the whole cup fully visible in its original front view. No new objects, no shadows or backdrop, no added text. This is a faithful product cutout for a fallback website image, not a creative redesign.

## Prompt imagegen

Semua memakai built-in imagegen, `transparent_background: true`. Mont Blanc memakai foto asli sebagai input. Berry Presso dan Black Sun memakai foto asli ditambah referensi Mont Blanc untuk konsistensi framing.

### Mont Blanc

Use case: background-extraction / precise-object-edit. Create an isolated product reference for image-to-3D reconstruction, using ONLY the TOP drink in the reference photograph (Mont Blanc). Remove all hands, arms, background, text and the other two drinks. Preserve the exact short clear tumbler shape, thick glass base, intricate curved U-shaped ribbed/fluted glass pattern, brown iced coffee, small natural white cream layer on top and small orange zest garnish. Reconstruct only the portion of the glass hidden by fingers. Keep original proportions and slightly elevated front three-quarter viewing angle. Single complete upright glass centered, entire base and rim visible, 15% transparent margin. Photorealistic studio product cutout, true transparent background, clean natural neutral highlights. No straw, no handle, no whipped cream mountain, no saucer, no added branding, no splash, no cast shadow, no other objects. This is a faithful extraction of the TOP actual drink, not a new recipe.

### Berry Presso

Use case: background-extraction / precise-object-edit. Image 1 is the original Sanjung product photo. Image 2 is a supporting framing/glass-style reference ONLY. Extract ONLY the BOTTOM LEFT drink from Image 1 (Berry Presso). Isolate its short clear tumbler filled with very dark brown iced coffee, several large ice cubes at the surface, thin irregular white foam swirls, and one small dried dark red flower garnish. Keep the exact glass shape with thick base and curved U-shaped fluted/ribbed pattern. Reconstruct areas obscured by fingers. Remove all hands, arms, background, text and other drinks. Match the framing and slightly elevated front three-quarter angle of Image 2, but preserve the distinct very dark brown liquid and dried red garnish of bottom-left drink. Entire upright glass visible, centered with 15% transparent margin. Photorealistic product cutout on true transparent background. No fresh berries, no pink syrup, no milk layers, no straw, no whipped cream, no saucer, no branding, no splash, no cast shadow. Actual product extraction, not new recipe.

### Black Sun

Use case: background-extraction / precise-object-edit. Image 1 is the original Sanjung product photo. Image 2 is a supporting framing/glass-style reference ONLY. Extract ONLY the BOTTOM RIGHT drink from Image 1 (Black Sun): short clear tumbler with transparent amber orange-brown iced coffee, large clear ice cubes and ONE half-round fresh orange slice floating at the top. Preserve actual glass proportions, thick base and curved U-shaped fluted/ribbed pattern. Reconstruct areas obscured by fingers. Remove all hands, arms, text, background and other drinks. Match framing and slightly elevated front three-quarter angle of Image 2, but preserve the clear amber drink and half orange slice from bottom-right original drink. Entire upright glass visible and centered, 15% transparent margin. Photorealistic product cutout with true transparent background and natural neutral studio highlights. No milk, no cream, no berries, no straw, no handle, no saucer, no branding, no splash, no cast shadow. Faithful product extraction, not a new recipe.
