-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 84d610b
Showing
13 changed files
with
21,589 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# AR Photobooth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Google I/O Extended Hanoi 2024 | AR Photobooth</title> | ||
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script> | ||
<script src="../static/js/build/mindar-image-aframe.prod.js"></script> | ||
<script src="../static/js/build/aframe-gif-shader.js"></script> | ||
<link rel="stylesheet" href="../static/css/style.css" /> | ||
<script src="../static/js/screenshot.js"></script> | ||
</head> | ||
<body> | ||
<a-scene | ||
mindar-image="imageTargetSrc: ../static/mindar-target/5/targets.prod.mind; uiScanning:no; maxTrack:5" | ||
renderer="colorManagement: true, physicallyCorrectLights" | ||
color-space="sRGB" | ||
vr-mode-ui="enabled: false" | ||
device-orientation-permission-ui="enabled: false" | ||
> | ||
<a-assets> | ||
<img src="../static/gifs/flutter.gif" id="flutterModel"> | ||
<img src="../static/gifs/firebase.gif" id="firebaseModel"> | ||
<img src="../static/gifs/gdg.gif" id="gdgModel"> | ||
<img src="../static/gifs/io.gif" id="ioModel"> | ||
<img src="../static/gifs/random.gif" id="randomModel"> | ||
</a-assets> | ||
<a-entity mindar-image-target="targetIndex: 0"> | ||
<a-entity | ||
geometry="primitive:plane" | ||
material="shader:gif;src:#flutterModel;" | ||
position="0.15 -0.15 1" | ||
scale="0.1 0.1 0.1" | ||
></a-entity> | ||
</a-entity> | ||
<a-entity mindar-image-target="targetIndex: 1"> | ||
<a-entity | ||
geometry="primitive:plane" | ||
material="shader:gif;src:#firebaseModel;" | ||
position="-0.15 -0.075 1" | ||
scale="0.1 0.1 0.1" | ||
></a-entity> | ||
</a-entity> | ||
<a-entity mindar-image-target="targetIndex: 2"> | ||
<a-entity | ||
geometry="primitive:plane" | ||
material="shader:gif;src:#gdgModel;" | ||
position="0.075 0.2 1" | ||
scale="0.1 0.1 0.1" | ||
></a-entity> | ||
</a-entity> | ||
<a-entity mindar-image-target="targetIndex: 3"> | ||
<a-entity | ||
geometry="primitive:plane" | ||
material="shader:gif;src:#ioModel;" | ||
position="-0.15 -0.15 1" | ||
scale="0.1 0.1 0.1" | ||
></a-entity> | ||
</a-entity> | ||
<a-entity mindar-image-target="targetIndex: 4"> | ||
<a-entity | ||
geometry="primitive:plane" | ||
material="shader:gif;src:#randomModel;" | ||
position="-0.075 0.2 1" | ||
scale="0.1 0.1 0.1" | ||
></a-entity> | ||
</a-entity> | ||
<a-camera position="0 0 0" look-controls="enabled: false"></a-camera> | ||
</a-scene> | ||
<button id="screenshot" onclick="takeScreenshot()"></button> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap"); | ||
|
||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
#screenshot { | ||
border-radius: 50%; | ||
width: 25%; | ||
max-width: 48px; | ||
aspect-ratio: 1; | ||
position: fixed; | ||
z-index: 2; | ||
bottom: 2rem; | ||
cursor: pointer; | ||
right: 50dvw; | ||
left: 50dvw; | ||
border: 5px solid; | ||
transform: translateX(-50%); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.