From b2482233ac7dbdcaf0f75fcc824a5d62e89561bf Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Thu, 22 Feb 2024 17:43:04 +0100 Subject: [PATCH] improves 3d model --- web/src/lib/components/earth.svelte | 24 +- .../empty_states/empty_state_search.svelte | 996 +----------------- web/src/lib/components/scene.svelte | 21 +- web/src/routes/map/+page.svelte | 9 +- web/src/routes/trails/+page.svelte | 6 +- web/static/imgs/empty_state.webp | Bin 0 -> 799992 bytes web/static/models/earth2.glb | Bin 143888 -> 143892 bytes 7 files changed, 38 insertions(+), 1018 deletions(-) create mode 100644 web/static/imgs/empty_state.webp diff --git a/web/src/lib/components/earth.svelte b/web/src/lib/components/earth.svelte index 37736b1d..10c52716 100644 --- a/web/src/lib/components/earth.svelte +++ b/web/src/lib/components/earth.svelte @@ -21,17 +21,17 @@ Command: npx @threlte/gltf@2.0.1 static/models/earth.glb const sunXRotation = tweened($theme == "light" ? 0 : -Math.PI, { duration: 1000, - easing: backInOut + easing: backInOut, }); - const sunLightIntensitiy = tweened($theme == "light" ? 2.5 : 0.1, { + const sunLightIntensitiy = tweened($theme == "light" ? 1.5 : 0, { duration: 500, }); - const moonLightIntensitiy = tweened($theme == "dark" ? 2.5 : 0.1, { + const moonLightIntensitiy = tweened($theme == "dark" ? 3.0 : 0, { duration: 500, }); - $: sunLightIntensitiy.set($theme == "light" ? 2.5 : 0.1); - $: moonLightIntensitiy.set($theme == "dark" ? 2.5 : 0.1); + $: sunLightIntensitiy.set($theme == "light" ? 1.5 : 0); + $: moonLightIntensitiy.set($theme == "dark" ? 3.0 : 0); $: sunXRotation.set($theme == "light" ? 0 : -Math.PI); @@ -113,14 +113,10 @@ Command: npx @threlte/gltf@2.0.1 static/models/earth.glb position={[0, 2, 0]} scale={0.88} > - - - - - - + + +
+ Empty State showing a wanderer going into the distance + +

No results found

+
diff --git a/web/src/lib/components/scene.svelte b/web/src/lib/components/scene.svelte index 120a6bc0..2fc4a218 100644 --- a/web/src/lib/components/scene.svelte +++ b/web/src/lib/components/scene.svelte @@ -1,22 +1,25 @@