From 3157992b04690572e23d0fdd3ee15711bc09cc24 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 23 Jan 2025 14:25:22 +0000 Subject: [PATCH] fix page --- _includes/default_head_tags.html | 17 ++ _posts/0000-12-30-template.md | 206 +++---------------------- _posts/2025-01-03-outline_rendering.md | 1 - _posts/2025-01-18-heic-depth.md | 87 +---------- 4 files changed, 41 insertions(+), 270 deletions(-) diff --git a/_includes/default_head_tags.html b/_includes/default_head_tags.html index 78f4b99..24a32af 100644 --- a/_includes/default_head_tags.html +++ b/_includes/default_head_tags.html @@ -80,6 +80,23 @@ {% endif %} +{% if page.model_viewer %} + + + + + + +{% endif %} + {% if page.load_klipse %} diff --git a/_posts/0000-12-30-template.md b/_posts/0000-12-30-template.md index 604b8a9..b77708d 100644 --- a/_posts/0000-12-30-template.md +++ b/_posts/0000-12-30-template.md @@ -20,25 +20,11 @@ alt: An image of the text "{...}" to suggest the idea of a template. image_class: invertable # For images that look good when inverted in dark modes by default they're dimmed mathjax: true - - +model_viewer: true +load_klipse: true head: | - - - - - - - + --- @@ -209,176 +195,7 @@ footnote[^2]. * * * - -
@@ -388,3 +205,20 @@ function animate() {
Here are some images, (top left) original, (top right) white subtracted and replaced with alpha, (bottom left) same but brightened, (bottom right) ai background removal tool (loses shadow)
+## 3D models + +
+ + + +
If you have JS enabled this is interactive.
+
An interactive point cloud view. Should show a billboard if JS is disabled.
+
+ +
+ + + +
If you have JS enabled this is interactive.
+
An interactive point cloud view. Should show a billboard if JS is disabled.
+
\ No newline at end of file diff --git a/_posts/2025-01-03-outline_rendering.md b/_posts/2025-01-03-outline_rendering.md index 5e4548c..c4e401e 100644 --- a/_posts/2025-01-03-outline_rendering.md +++ b/_posts/2025-01-03-outline_rendering.md @@ -22,7 +22,6 @@ head: | } } - draft: true --- diff --git a/_posts/2025-01-18-heic-depth.md b/_posts/2025-01-18-heic-depth.md index 4c7a997..59e8a05 100644 --- a/_posts/2025-01-18-heic-depth.md +++ b/_posts/2025-01-18-heic-depth.md @@ -9,21 +9,7 @@ social_image: /assets/blog/heic_depth_map/thumbnail.png alt: An image of the text "{...}" to suggest the idea of a template. -head: | - - - - - - +model_viewer: true --- You know how iPhones do this fake depth of field effect where they blur the background? Did you know that the depth information used to do that effect is stored in the file? @@ -104,74 +90,9 @@ Click and drag to spin me around. It didn't really capture my nose very well, I
If you have JS enabled this is interactive.
-
An interactive point cloud view.
+
An interactive point cloud view of the depth data from the rear facing camera of my phone.
- - - ## Update After looking a bit more into this, I found the [Apple docs on capturing depth information](https://developer.apple.com/documentation/avfoundation/capturing-photos-with-depth) which explains that for phones with two or more front cameras, they use the difference in the two images to estimate depth, while the front facing camera on modern phones has [an IR camera](https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype-swift.struct/builtintruedepthcamera) that uses a grid of dots to estimate true depth like the good old kinect sensor. @@ -181,7 +102,7 @@ So I had a go with the front facing camera too:
-
A lovely picture of my face and a depth map of it.
+
A lovely picture of my face and a depth map of it.
The depth information, while lower resolution, is much better. My nose really pops in this one! @@ -191,5 +112,5 @@ The depth information, while lower resolution, is much better. My nose really po
If you have JS enabled this is interactive.
-
An interactive point cloud view.
+
An interactive point cloud view of the depth from the front facing camera of an iPhone.
\ No newline at end of file