diff --git a/_posts/2023-10-20-first-marathon.md b/_posts/2023-10-20-first-marathon.md index 79866ce..debaa59 100644 --- a/_posts/2023-10-20-first-marathon.md +++ b/_posts/2023-10-20-first-marathon.md @@ -9,4 +9,6 @@ image_class: invertable alt: A scatter graph of run time vs run distance for all my runs on strava. There are lots of points between 5-15km, a couple around 21km and one single point way out at 42km. --- -I ran the Amsterdam marathon! My first official race and the longest distance I've run in one go! \ No newline at end of file +I ran the Amsterdam marathon! My first official race and the longest distance I've run in one go! + +Me, running, with a face that says 'this is too far long to run', but both my feet are actually off the ground. (If that proves anything.) \ No newline at end of file diff --git a/_projects/lasercut_stool.md b/_projects/lasercut_stool.md new file mode 100644 index 0000000..628f36b --- /dev/null +++ b/_projects/lasercut_stool.md @@ -0,0 +1,31 @@ +--- +title: Lasercut Stool +layout: post +excerpt: A lasercut hexagonal wooden stool. +permalink: /projects/lasercut_stool + +img: + src: + alt: A CAD model + class: invertable + +social_image: /assets/projects/ +model: /assets/blog/weekend_builds_1/pot.glb + +head: | + + + +--- + + +

Loading model...

+
\ No newline at end of file diff --git a/_projects/toothbrush_shelf.md b/_projects/toothbrush_shelf.md index c5c2c6d..c997646 100644 --- a/_projects/toothbrush_shelf.md +++ b/_projects/toothbrush_shelf.md @@ -10,5 +10,22 @@ img: class: invertable social_image: /assets/projects/toothbrush_shelf/thumbnail.png ---- +model: /assets/blog/toothbrush_shelf/model/toothbrush_shelf.glb +head: | + + + +--- + + +

Loading model...

+
\ No newline at end of file diff --git a/assets/blog/running/marathon.jpeg b/assets/blog/running/marathon.jpeg new file mode 100644 index 0000000..a575805 Binary files /dev/null and b/assets/blog/running/marathon.jpeg differ diff --git a/assets/js/outline-model-viewer/index.js b/assets/js/outline-model-viewer/index.js index 3a1e0f2..f0108f0 100644 --- a/assets/js/outline-model-viewer/index.js +++ b/assets/js/outline-model-viewer/index.js @@ -35,9 +35,12 @@ const serialiseCamera = (camera, controls) => { const setupDebug = (container, customOutline, camera, controls) => { const gui = new GUI({ + title: "Settings", container: container, - width: "100%", + injectStyles: false, + closeFolders: true, }); + gui.close(); const uniforms = customOutline.fsQuad.material.uniforms; const params = { @@ -53,11 +56,11 @@ const setupDebug = (container, customOutline, camera, controls) => { gui .add(params.mode, "Mode", { - "Outlines": 0, - "Original scene": 2, + "Outlines + Shaded (default)": 0, + "Shaded": 2, "Depth buffer": 3, - "SurfaceID debug buffer": 4, - "Outlines only": 5, + "SurfaceID buffer": 4, + "Outlines": 5, }) .onChange(function (value) { uniforms.debugVisualize.value = value; @@ -81,7 +84,7 @@ class OutlineModelViewer extends HTMLElement { constructor() { super(); - this.shadow = this.attachShadow({ mode: "closed" }); + this.shadow = this.attachShadow({ mode: "open" }); this.render(); const model_path = this.getAttribute("model") || "/assets/projects/bike_lights/models/bigger.glb"; @@ -219,13 +222,12 @@ class OutlineModelViewer extends HTMLElement { } window.addEventListener("resize", onWindowResize, false); - if(this.hasAttribute("debug")) { - setupDebug( - this.shadow.querySelector("div#container"), - customOutline, - camera, - controls); - } + + setupDebug( + this.shadow.querySelector("div#container"), + customOutline, + camera, + controls); } @@ -234,11 +236,8 @@ class OutlineModelViewer extends HTMLElement {
- + - `; } }