You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8a84dc
Browse filesBrowse the repository at this point in the historyBrowse files
5. Put the result in `public/models/` and send it to me. I will load it with `useGLTF` (preloaded), recolour the named
29
-
parts per fragrance, and keep the current procedural bottle as a fallback.
19
+
## The real roll-on model (already in)
20
+
The site now uses the real bottle shape and the real label art:
21
+
22
+
-`public/models/roll-on-hi.glb` (about 27,000 triangles) is the main roll-on, `roll-on-lo.glb` (about 4,500) is used for the small background roll-ons.
23
+
-`public/textures/<fragrance>.webp` are the front of each official product render, wrapped onto the model (the back of the bottle gets the plain shell colour).
24
+
- If the model or textures fail to load, the site falls back to the bottle built in code.
25
+
26
+
How they were made: your `base.fbx` was rebuilt as a clean, light mesh (the original is over 130,000 vertices, far too heavy for a web page), keeping its outline,
27
+
and the shape was scaled to match the real renders (its outline sits within about 2% of them). To redo it with a new sculpt or new renders:
28
+
29
+
pip install numpy scipy opencv-python pillow
30
+
python3 tools/build_roll_on.py <folder containing base.fbx and the TAG*.png renders>
31
+
32
+
`3x-whitening.webp` is built too but not used yet (the site shows seven fragrances).
30
33
31
34
## Left out on purpose
32
35
-**Post-processing (bloom, vignette, depth of field).** Each effect adds a full-screen pass. On an integrated laptop GPU
0 commit comments