From ddcb683094c6f937f64fef0b71fcb6878bd3d678 Mon Sep 17 00:00:00 2001 From: Nils <80390054+nils-mathieu@users.noreply.github.com> Date: Thu, 25 Jan 2024 23:11:57 +0100 Subject: [PATCH] Add shelf text (#39) * add the base into the scene * start placing things * all shelves * update product card appearance * fix camera orientation * fix camer * put items in objects * fix product cards * fix highlights * add text * merge * update label opacity --- src/lib/3dmap/labels.json | 95 ++++++++++++++++++++++++++++++++++++++ src/lib/3dmap/scene.svelte | 14 +++++- 2 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 src/lib/3dmap/labels.json diff --git a/src/lib/3dmap/labels.json b/src/lib/3dmap/labels.json new file mode 100644 index 0000000..6c68eee --- /dev/null +++ b/src/lib/3dmap/labels.json @@ -0,0 +1,95 @@ +[ + { + "text": "Parfum Femmes", + "position": [-65, 15, -28], + "rotation": [-1.57, 0, 1.57], + "fontSize": 6 + }, + { + "text": "Parfum Hommes", + "position": [66, 15, -80], + "rotation": [-1.57, 0, -1.57], + "fontSize": 6 + }, + { + "text": "Too Faced", + "position": [-20, 8, -34] + }, + { + "text": "Huda Beauty", + "position": [-20, 8, -28] + }, + { + "text": "Rare Beauty", + "position": [-20, 8, -28], + "rotation": [-1.57, 0, 1.57], + "fontSize": 2 + }, + { + "text": "Beauty\nHub", + "position": [-22, 12, -45] + }, + { + "text": "Tarte", + "position": [-45, 8, -66], + "rotation": [-1.57, 0, 1.57], + "fontSize": 2 + }, + { + "text": "Dior", + "position": [-25, 8, -64], + "fontSize": 6 + }, + { + "text": "Fenty Beauty", + "position": [-18, 8, -62], + "rotation": [-1.57, 0, 1.57], + "fontSize": 2 + }, + { + "text": "Coffrets\nen promo", + "position": [-21, 8, -80], + "rotation": [-1.57, 0, 1.57], + "fontSize": 3 + }, + { + "text": "Sephora Collection", + "position": [-13, 8, -105], + "fontSize": 4 + }, + { + "text": "Clarins", + "position": [25, 8, -15] + }, + { + "text": "Skincare", + "position": [36, 8, -32] + }, + { + "text": "Beauty\nHub", + "position": [30, 12, -45] + }, + { + "text": "Sephora", + "position": [41, 8, -64], + "fontSize": 5 + }, + { + "text": "Hot on\nsocial media", + "position": [41, 8, -80], + "fontSize": 4 + }, + { + "text": "Séphora", + "position": [15, 30, 30], + "rotation": [0, 3.14, 0], + "fontSize": 8, + "color": "gray" + }, + { + "text": "Entrance", + "position": [15, 0, -110], + "fontSize": 8, + "color": "gray" + } +] diff --git a/src/lib/3dmap/scene.svelte b/src/lib/3dmap/scene.svelte index f2a4a32..bb1392a 100644 --- a/src/lib/3dmap/scene.svelte +++ b/src/lib/3dmap/scene.svelte @@ -1,5 +1,5 @@