├── .github
├── labels.json
└── workflows
│ └── set-default-labels.yml
├── README.md
└── webvr
├── README.md
├── aframe-demo
├── .gitignore
├── LICENSE
├── README.md
├── index.html
├── metal003.png
└── package.json
├── basic-display-info
└── index.html
├── field-of-view-test
└── index.html
├── raw-webgl-controller-example
├── cubetexture.png
├── glUtils.js
├── index.html
├── metal003.png
├── sylvester.js
├── webgl-demo.js
└── webgl.css
├── raw-webgl-example
├── cubetexture.png
├── glUtils.js
├── index.html
├── metal003.png
├── sylvester.js
├── webgl-demo.js
└── webgl.css
├── stage-parameters-test
└── index.html
└── vr-controller-basic-info
└── index.html
/.github/labels.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "name": "good first issue",
4 | "color": "028c46",
5 | "description": "A good issue for newcomers to get started with."
6 | },
7 | {
8 | "name": "help wanted",
9 | "color": "028c46",
10 | "description": "If you know something about this, we would love your help!"
11 | },
12 | {
13 | "name": "needs info",
14 | "color": "028c46",
15 | "description": "This needs more information to review or act on."
16 | },
17 | {
18 | "name": "needs triage",
19 | "color": "028c46",
20 | "description": "Triage needed by staff and/or partners. Automatically applied when an issue is opened."
21 | },
22 | {
23 | "name": "expert help needed",
24 | "color": "028c46",
25 | "description": "This needs more information from a subject matter expert (SME)."
26 | },
27 | {
28 | "name": "idle",
29 | "color": "028c46",
30 | "description": "Issues and pull requests with no activity for three months."
31 | },
32 | {
33 | "name": "on hold",
34 | "color": "028c46",
35 | "description": "Waiting on something else before this can be moved forward."
36 | },
37 | {
38 | "name": "for later",
39 | "color": "028c46",
40 | "description": "Not planned at this time."
41 | },
42 | {
43 | "name": "needs content update",
44 | "color": "028c46",
45 | "description": "Needs update to the content to support this change."
46 | },
47 | {
48 | "name": "chore",
49 | "color": "028c46",
50 | "description": "A routine task."
51 | },
52 | {
53 | "name": "enhancement",
54 | "color": "028c46",
55 | "description": "Improves an existing feature."
56 | },
57 | {
58 | "name": "bug",
59 | "color": "c05964",
60 | "description": "Indicates an unexpected problem or unintended behavior."
61 | },
62 | {
63 | "name": "wontfix",
64 | "color": "c05964",
65 | "description": "Deemed to be outside the scope of the project or would require significant time and resources to fix."
66 | },
67 | {
68 | "name": "effort: small",
69 | "color": "866dc1",
70 | "description": "Task is a small effort."
71 | },
72 | {
73 | "name": "effort: medium",
74 | "color": "866dc1",
75 | "description": "Task is a medium effort."
76 | },
77 | {
78 | "name": "effort: large",
79 | "color": "866dc1",
80 | "description": "Task is large effort."
81 | },
82 | {
83 | "name": "p0",
84 | "color": "6e8bc1",
85 | "description": "Urgent. We will address this as soon as possible."
86 | },
87 | {
88 | "name": "p1",
89 | "color": "6e8bc1",
90 | "description": "We will address this soon and will provide capacity from our team for it in the next few releases."
91 | },
92 | {
93 | "name": "p2",
94 | "color": "6e8bc1",
95 | "description": "We want to address this but may have other higher priority items."
96 | },
97 | {
98 | "name": "p3",
99 | "color": "6e8bc1",
100 | "description": "We don't have visibility when this will be addressed."
101 | }
102 | ]
103 |
--------------------------------------------------------------------------------
/.github/workflows/set-default-labels.yml:
--------------------------------------------------------------------------------
1 | name: set-default-labels
2 | on: [workflow_dispatch]
3 |
4 | jobs:
5 | set-default-labels:
6 | uses: mdn/workflows/.github/workflows/set-default-labels.yml@main
7 | with:
8 | target-repo: "mdn/webvr-tests"
9 | should-delete-labels: true
10 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # webvr-tests
2 |
3 | > **NOTE** The API in this repository has been deprecated. We will archive this repository on March, 2024.
4 |
5 | A set of simple tests for testing WebVR functionality. See https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API for the latest on the documentation.
6 |
--------------------------------------------------------------------------------
/webvr/README.md:
--------------------------------------------------------------------------------
1 | # webvr-tests
2 | Simple tests for testing WebVR functionality. See [https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API](https://developer.mozilla.org/en-US/docs/Web/API/WebVR_API) for the latest on the documentation.
3 |
4 | The tests are as follows:
5 |
6 | * [basic-display-info](https://mdn.github.io/webvr-tests/basic-display-info/) — Demo that detects all VRDisplays connected to the computer and displays all their basic capabilities.
7 | * [field-of-view-test](https://mdn.github.io/webvr-tests/field-of-view-test/) — Demo that detects the first VRDisplay connected to the computer and displays its field of view information.
8 | * [stage-parameters-test](https://mdn.github.io/webvr-tests/stage-parameters-test/) — Demo that detects the first VRDisplay connected to the computer and displays its stage parameterss.
9 | * [raw-webgl-example](https://mdn.github.io/webvr-tests/raw-webgl-example/) — A quick 'n' dirty example that shows the basics of how to use the WebVR API.
10 | * [vr-controller-basic-info](https://mdn.github.io/webvr-tests/vr-controller-basic-info/) — Demo that detects and outputs information about VRDisplays and associated controllers connected to your computer.
11 | * [raw-webgl-controller-example](https://mdn.github.io/webvr-tests/raw-webgl-controller-example/) — A quick 'n' dirty example that shows the basics of how to use the WebVR API along with the Gamepad API to control objects in 3D space.
12 | * [aframe-demo](https://mdn.github.io/webvr-tests/aframe-demo/) — A simple WebVR demo that uses [Mozilla's A-Frame](https://aframe.io/) framework to create a scene.
13 |
--------------------------------------------------------------------------------
/webvr/aframe-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | *.sw[mnop]
3 |
4 | # Logs
5 | logs
6 | *.log
7 | npm-debug.log*
8 |
9 | # Runtime data
10 | pids
11 | *.pid
12 | *.seed
13 | *.pid.lock
14 |
15 | # Directory for instrumented libs generated by jscoverage/JSCover
16 | lib-cov
17 |
18 | # Coverage directory used by tools like istanbul
19 | coverage
20 |
21 | # nyc test coverage
22 | .nyc_output
23 |
24 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25 | .grunt
26 |
27 | # node-waf configuration
28 | .lock-wscript
29 |
30 | # Compiled binary addons (http://nodejs.org/api/addons.html)
31 | build/Release
32 |
33 | # Dependency directories
34 | node_modules
35 | jspm_packages
36 |
37 | # Optional npm cache directory
38 | .npm
39 |
40 | # Optional REPL history
41 | .node_repl_history
42 |
--------------------------------------------------------------------------------
/webvr/aframe-demo/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright © 2015 A-Frame.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/webvr/aframe-demo/README.md:
--------------------------------------------------------------------------------
1 | # A-Frame Boilerplate
2 |
3 | Boilerplate for creating WebVR scenes with [A-Frame](https://aframe.io).
4 |
5 | Alternatively, check out the [A-Frame Starter on
6 | glitch.com](https://glitch.com/~aframe) for a more interactive way on getting
7 | started.
8 |
9 | ## Getting Started
10 |
11 | There are two easy options for obtaining this A-Frame scene. It's then up to you to make it your own!
12 |
13 | ### Option 1: Download the ZIP kit 📦
14 |
15 | [](https://github.com/aframevr/aframe-boilerplate/archive/master.zip)
16 |
17 | After you have __[downloaded and extracted this `.zip` file](https://github.com/aframevr/aframe-boilerplate/archive/master.zip)__ containing the contents of this repo, open the resulting directory, and you'll be have your scene ready in these few steps:
18 |
19 | npm install && npm start
20 | open http://localhost:3000/
21 |
22 |
19 |
20 |
23 |
24 |
27 |
28 |
19 |
20 |
23 |
24 |
27 |
28 |