From 21820bc2f2b59efe078879adb203811a388c2336 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Fri, 7 Jun 2024 13:53:10 -0700 Subject: [PATCH 1/3] wip transfer from glitch --- index.html | 146 +++++++++++++++++++++++++++++++++++++++++- src/viewer-styles.css | 28 ++++++++ 2 files changed, 173 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 094e5fef1..53091caa3 100644 --- a/index.html +++ b/index.html @@ -73,6 +73,48 @@ + + + +
+ + \ No newline at end of file diff --git a/src/viewer-styles.css b/src/viewer-styles.css index 44e35b9ad..9a351bcf1 100644 --- a/src/viewer-styles.css +++ b/src/viewer-styles.css @@ -1,6 +1,34 @@ @import url("notyf.min.css"); @import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500'); +.play-button { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 18vh; + height: 18vh; + background-color: #000000; + border-radius: 50%; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.play-button::before { + content: ""; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-40%, -50%); + border-style: solid; + border-width: 5vh 0 5vh 8vh; + border-color: transparent transparent transparent #aaaaaa; +} + +.play-button:hover { + background-color: #333333; +} + html { font-family: 'Lato', sans-serif; } From b97882ee3b7093b346f776516f0e658e8fc4ac21 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Fri, 7 Jun 2024 14:09:21 -0700 Subject: [PATCH 2/3] fix overlay styles --- src/viewer-styles.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/viewer-styles.css b/src/viewer-styles.css index 9a351bcf1..db24d4b4c 100644 --- a/src/viewer-styles.css +++ b/src/viewer-styles.css @@ -12,6 +12,7 @@ border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease; + z-index: 999999; } .play-button::before { @@ -29,6 +30,19 @@ background-color: #333333; } +#ar-overlay { + position: absolute; + left: 6px; + top: 6px; + padding: 6px; + /* + text-shadow: 0 0 5px white; + */ + max-width: 350px; + background-color: rgba(255, 255, 255, 0.7); + z-index: 999 +} + html { font-family: 'Lato', sans-serif; } From 31b9ed3d73e4c0a8f71e81c6756ce14bba92cb84 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Fri, 7 Jun 2024 14:09:38 -0700 Subject: [PATCH 3/3] wip ar debugging --- index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 53091caa3..c9ef006f6 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + @@ -23,7 +23,7 @@ }) --> - 3DStreet @@ -132,7 +132,8 @@ renderer="colorManagement: true; physicallyCorrectLights: true; anisotropy: 16; logarithmicDepthBuffer: true;" inspector="url: ./dist/3dstreet-editor.js" timed-inspector="1" loading-screen="enabled: false" notify metadata scene-title reflection device-orientation-permission-ui="enabled: false" - webxr="requiredFeatures:hit-test,local-floor;referenceSpaceType:local-floor;" xr-mode-ui="XRMode: ar"> + webxr="requiredFeatures:hit-test,local-floor;referenceSpaceType:local-floor;" + xr-mode-ui="enterARButton: #play-button; XRMode: ar;">