Skip to content

Commit

Permalink
first commit for WebAR!
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeDreamt committed May 2, 2024
1 parent e90bc41 commit a7409fa
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

Binary file added assets/asset.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>
</head>

<body style="margin: 0; overflow: hidden;">
<a-scene
embedded
loading-screen="enabled: false;"
arjs="sourceType: webcam; debugUIEnabled: false;"
>
<a-image
src="assets/asset.jpeg"
look-at="[gps-camera]"
scale="1 1 1"
gps-entity-place="latitude: 38.900922; longitude: -90.920059;"
></a-image>
<a-image
src="assets/asset.jpeg"
look-at="[gps-camera]"
scale="1 1 1"
gps-entity-place="latitude: 38.900642; longitude: -90.921322;"
></a-image>

<a-camera gps-camera rotation-reader></a-camera>
</a-scene>
</body>
</html>

0 comments on commit a7409fa

Please sign in to comment.