-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update usages of vr-mode-ui to the new xr-mode-ui * Omit crossorigin attribute on a-asset-item tags as it has no effect * Fix small mistakes in mixed-reality examples * Update environment-component to 1.3.4 in examples --------- Co-authored-by: Noeri Huisman <[email protected]>
- Loading branch information
Showing
20 changed files
with
27 additions
and
30 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script> | ||
</head> | ||
<body> | ||
<a-scene vr-mode-ui="enabled: false;" | ||
<a-scene xr-mode-ui="enabled: false;" | ||
background="color: #24CAFF;" | ||
renderer="colorManagement: true;"> | ||
<a-assets> | ||
|
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
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<html> | ||
|
||
<head> | ||
<script src="../../../build/aframe.js"></script> | ||
<!-- <script src="../../../dist/aframe-master.js"></script> --> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
<script src="ar-shadow-helper.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<title>AFRame Total WebXR AR Demo</title> | ||
<style> | ||
body { | ||
|
@@ -20,7 +19,7 @@ | |
reflection="directionalLight:#dirlight;" | ||
ar-hit-test="target:#table;" | ||
shadow="type: pcfsoft" | ||
vr-mode-ui="enterAREnabled: true"> | ||
xr-mode-ui="XRMode: xr"> | ||
<a-assets> | ||
<!-- model by Snooze https://sketchfab.com/3d-models/low-poly-table-b940256ec5994e26a9e71289d1211b19 --> | ||
<a-asset-item id="table-glb" src="../../assets/models/table.glb"></a-asset-item> | ||
|
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
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
<meta name="description" content="Anchor (Mixed Reality) • A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script> | ||
<script src="anchor-grabbed-entity.js"></script> | ||
<script src="painting-changer.js"></script> | ||
<script src="painting.js"></script> | ||
|
@@ -22,7 +21,7 @@ | |
<!-- Model by theGentleGiant https://sketchfab.com/3d-models/vintage-painting-dani-3fdd92904c2b44028bef28b33e897d9f --> | ||
<a-asset-item id="frame" | ||
src="https://cdn.aframe.io/examples/mixed-reality/anchor/models/painting/scene.gltf" | ||
response-type="arraybuffer" crossorigin="anonymous"></a-asset-item> | ||
response-type="arraybuffer"></a-asset-item> | ||
<a-asset-item id="messageText" src="message.html"></a-asset-item> | ||
<img id="helloaframe" src="https://cdn.aframe.io/examples/mixed-reality/anchor/images/helloaframe.png" crossorigin="anonymous"/> | ||
<img id="greco" src="https://cdn.aframe.io/examples/mixed-reality/anchor/images/greco.png" crossorigin="anonymous"/> | ||
|
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<meta name="description" content="Hand Menu (Mixed Reality) • A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
<script src="https://unpkg.com/[email protected].0/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="time.js"></script> | ||
<script src="button.js"></script> | ||
<script src="hand-menu.js"></script> | ||
|
@@ -25,7 +25,7 @@ | |
<!-- Model by Socksthecat https://sketchfab.com/3d-models/character-accessory-watch-d2a883db37184592b5ea0ce4cbd2a286 --> | ||
<a-asset-item id="watch" | ||
src="https://cdn.aframe.io/examples/mixed-reality/watch/models/watch.glb" | ||
response-type="arraybuffer" crossorigin="anonymous"></a-asset-item> | ||
response-type="arraybuffer"></a-asset-item> | ||
<a-asset-item id="messageText" src="message.html"></a-asset-item> | ||
<img crossorigin="anonymous" id="infoButton" src="https://cdn.aframe.io/examples/mixed-reality/watch/images/info-button.png" /> | ||
<img crossorigin="anonymous" id="infoButtonHover" src="https://cdn.aframe.io/examples/mixed-reality/watch/images/info-button-hover.png" /> | ||
|
@@ -78,7 +78,7 @@ | |
hide-on-enter-ar | ||
rotation="90 0 0" | ||
position="0 0 0" | ||
geometry="primitive: plane; width: 100; height: 100; segmentsHeight: 2, segmentsWidth: 2;" | ||
geometry="primitive: plane; width: 100; height: 100; segmentsHeight: 2; segmentsWidth: 2;" | ||
material="shader: grid; transparent: true; side: double;"> | ||
</a-entity> | ||
<!-- Only renders in 2D. An empty scene when the page loads not very interesting --> | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script> | ||
</head> | ||
<body> | ||
<a-scene renderer="colorManagement: true;" vr-mode-ui="enterAREnabled: true"> | ||
<a-scene renderer="colorManagement: true;" xr-mode-ui="XRMode: xr"> | ||
<a-assets> | ||
<a-asset-item id="engine" src="models/engine.glb"></a-asset-item> | ||
<a-mixin id="image" geometry="height: 2; width: 2"></a-mixin> | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
<script src="../../js/spatial-ui/spatial-modal.js"></script> | ||
<script src="../../js/spatial-ui/spatial-hero-image.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
<script src="https://unpkg.com/[email protected].0/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="hover.js"></script> | ||
</head> | ||
<body> | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<meta name="description" content="Hand Tracking! • A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
<script src="https://unpkg.com/[email protected].0/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="pinchable.js"></script> | ||
<script src="color-change.js"></script> | ||
<script src="slider.js"></script> | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<script src="js/components/aframe-tooltip-component.js"></script> | ||
<script src="js/components/camera-position.js"></script> | ||
<script src="js/components/link-controls.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
</head> | ||
<body> | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<script src="js/components/aframe-tooltip-component.js"></script> | ||
<script src="js/components/camera-position.js"></script> | ||
<script src="js/components/link-controls.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
</head> | ||
<body> | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<script src="js/components/aframe-tooltip-component.js"></script> | ||
<script src="js/components/camera-position.js"></script> | ||
<script src="js/components/link-controls.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
</head> | ||
<body> | ||
|
@@ -19,7 +19,6 @@ | |
environment | ||
info-message="htmlSrc: #messageText"> | ||
<a-assets> | ||
<a-asset-item id="messageText" src="message.html"></a-asset-item> | ||
<img id="thumbJapan" crossOrigin="anonymous" src="https://cdn.aframe.io/link-traversal/thumbs/japan.png"> | ||
<img id="thumbEgypt" crossOrigin="anonymous" src="https://cdn.aframe.io/link-traversal/thumbs/egypt.png"> | ||
<img id="thumbForest" crossOrigin="anonymous" src="https://cdn.aframe.io/link-traversal/thumbs/forest.png"> | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
<script src="js/components/aframe-tooltip-component.js"></script> | ||
<script src="js/components/camera-position.js"></script> | ||
<script src="js/components/link-controls.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
</head> | ||
<body> | ||
|
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
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Laser input UI</title> | ||
<meta name="description" content="Laser input UI • A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
<script src="https://unpkg.com/[email protected].0/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="../../js/info-message.js"></script> | ||
<script src="highlight.js"></script> | ||
<script src="info-panel.js"></script> | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Compositor Layer Example • A-Frame</title> | ||
<meta name="description" content="Hello, World! • A-Frame"> | ||
<script src="../../../dist/aframe-master.js"></script> | ||
<script src="https://unpkg.com/[email protected].0/dist/aframe-environment-component.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].4/dist/aframe-environment-component.min.js"></script> | ||
<script src="page-turn.js"></script> | ||
<script src="toggle-layer.js"></script> | ||
<script src="button.js"></script> | ||
|
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
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