From 63517ca1e818f5f05671b847df6675d0e261f109 Mon Sep 17 00:00:00 2001 From: Alfakhori <muhammad.alfakhori@hft-stuttgart.de> Date: Wed, 3 May 2023 08:30:46 +0000 Subject: [PATCH] Update public/page2.html --- public/page2.html | 69 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 13 deletions(-) diff --git a/public/page2.html b/public/page2.html index ff2f7e2..5b32849 100644 --- a/public/page2.html +++ b/public/page2.html @@ -1,15 +1,58 @@ -<!DOCTYPE html> +<!doctype html> +<!-- +/* + * Copyright 2017 Google Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> <html> -<head> -<title>AR.js website code</title> -<script src="https://aframe.io/releases/1.4.2/aframe.min.js"></script> -<script type='text/javascript' src='https://raw.githack.com/AR-js-org/AR.js/master/three.js/build/ar-threex-location-only.js'></script> -<script type='text/javascript' src='https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js'></script> -</head> -<body> -<a-scene vr-mode-ui='enabled: false' arjs='sourceType: webcam; videoTexture: true; debugUIEnabled: false' renderer='antialias: true; alpha: true'> - <a-camera gps-new-camera='gpsMinDistance: 5'></a-camera> - <a-entity material='color: red' geometry='primitive: box' gps-new-entity-place="latitude: 48.7809182093566; longitude: 9.173715785973716" scale="10 10 10"></a-entity> -</a-scene> -</body> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Building an augmented reality application with the WebXR Device API</title> + <link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css"> + <script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script> + + <!-- three.js --> + <script src="https://unpkg.com/three@0.126.0/build/three.js"></script> + <script src="https://unpkg.com/three@0.126.0/examples/js/loaders/GLTFLoader.js"></script> + + <link rel="stylesheet" type="text/css" href="../shared/app.css" /> + <script src="../shared/utils.js"></script> + </head> + <body> + <div id="enter-ar-info" class="mdc-card demo-card"> + <h2>Augmented Reality with the WebXR Device API</h2> + <p> + This is an experiment using augmented reality features with the WebXR Device API. + Upon entering AR, you will be surrounded by a world of cubes. + Learn more about these features from the <a href="https://codelabs.developers.google.com/codelabs/ar-with-webxr">Building an augmented reality application with the WebXR Device API</a> Code Lab. + </p> + + <!-- Starting an immersive WebXR session requires user interaction. Start the WebXR experience with a simple button. --> + <a id="enter-ar" class="mdc-button mdc-button--raised mdc-button--accent"> + Start augmented reality + </a> + </div> + + <div id="unsupported-info" class="mdc-card demo-card"> + <h2>Unsupported Browser</h2> + <p> + Your browser does not support AR features with WebXR. Learn more about these features from the + <a href="https://codelabs.developers.google.com/codelabs/ar-with-webxr">Building an augmented reality application with the WebXR Device API</a> Code Lab. + </p> + </div> + <script src="app.js"></script> + <div id="stabilization"></div> + </body> </html> -- GitLab