Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Who wants his products configured on Web and viewed in AR?

Thomas Kumlehn PixelPartner

💭
Who wants his products configured on Web and viewed in AR?
View GitHub Profile
@PixelPartner
PixelPartner / vaccination-stats.js
Last active Dec 30, 2020 — forked from marco79cgn/vaccination-stats.js
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
View vaccination-stats.js
const cacheMinutes = 60 // 60 min
const today = new Date();
let result
let widget = new ListWidget()
widget.setPadding(8, 8, 8, 8)
widget.url = "https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Impfquoten-Tab.html"
await getNumbers()
await createWidget()
Script.setWidget(widget)
@PixelPartner
PixelPartner / ARQL_world_domination_by_openness.md
Last active Apr 25, 2020
My thoughts about the Apple Roadmap for AR Quicklook
View ARQL_world_domination_by_openness.md

What is revolutional with AR Quicklook on iOS 13.4 ?

With iOS 13.4 Apple lifted the veil of some internals of its RealityKit universe.

Formerly their AR-Editor Reality Composer was exporting scenes only in a proprietary .reality file format. And just a few users and designers used it to manually create and update scenes. And developers had no access to documentation and not a clue how to create those scenes with their own Code base.

With iOS 13.4 and the new release of Reality Composer with USDZ export the situation changed drastically.

USDZ files are just uncompressed zip archives containing one or more USD files (the binary form = .usdc) and folders with textures and sounds needed by the scene (aka USDStage).

@PixelPartner
PixelPartner / RC2usdz_issues.md
Last active Apr 11, 2020
Found problems in the export of Reality scene(s) to USDZ
View RC2usdz_issues.md

Issues with the Preliminary RealityComposer Scene Export as USDZ

I have encountered the following 5 issues in scenes exported with the following versions / creator strings:

  • "com.apple.RCFoundation Version 1.4 (134.6.1)" (found on the web)
  • "com.apple.RCFoundation Version 1.4 (133.20)" (RC export on my macBook)

Issue 1: sceneGroundPlane

reported as FB7660346

@PixelPartner
PixelPartner / USDZ_AR_QuickLook_with_elm-ui.elm
Created Oct 17, 2018
Define your own elm-ui Element that works with Safari AR Quicklook feature on iOS 12+
View USDZ_AR_QuickLook_with_elm-ui.elm
{-
Define your own elm-ui Element that works with Safari AR Quicklook feature on iOS 12+
The problem with the standard Element nodes is that Safari wants the <a> node to only have
a single child and that needs to be an <img>
-}
usdz : List (Attribute Msg) -> { usdzUrl : String, imgUrl : String } -> Element Msg
usdz attrs rec =
link
( htmlAttribute (Html.Attributes.attribute "rel" "ar")