├── .gitignore
├── Screenshots
├── 0.jpg
├── 1.jpg
├── 2.jpg
└── 3.jpg
├── Images
└── discovery.jpg
├── LICENSE
├── README.md
└── index.html
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
--------------------------------------------------------------------------------
/Screenshots/0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabio914/passtracing/HEAD/Screenshots/0.jpg
--------------------------------------------------------------------------------
/Screenshots/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabio914/passtracing/HEAD/Screenshots/1.jpg
--------------------------------------------------------------------------------
/Screenshots/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabio914/passtracing/HEAD/Screenshots/2.jpg
--------------------------------------------------------------------------------
/Screenshots/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabio914/passtracing/HEAD/Screenshots/3.jpg
--------------------------------------------------------------------------------
/Images/discovery.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fabio914/passtracing/HEAD/Images/discovery.jpg
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Fabio
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 all
13 | 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 THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Passtracing
2 |
3 | **Drawing/tracing projector in Augmented Reality (Passthrough)**
4 |
5 | This is a simple [WebXR](https://immersiveweb.dev) app built with [three.js](https://threejs.org) and [three-mesh-ui](https://felixmariotto.github.io/three-mesh-ui/) that lets you use your Meta Quest 2 and Meta Quest Pro to draw/trace on top of virtual images in Augmented Reality.
6 |
7 | Inspired by [Easely](https://github.com/RalphVR/easely-meta-hackathon) and [Contour](https://sidequestvr.com/app/6643/contour-demo).
8 |
9 | ## Instructions
10 |
11 | [Video](https://www.youtube.com/watch?v=tJqXpbIeRK8)
12 |
13 | 1. Navigate to [fabio914.github.io/passtracing](https://fabio914.github.io/passtracing) with your PC.
14 |
15 | 2. Copy an image URL and paste on the text field. For example, a public domain image from [rawpixel](https://www.rawpixel.com/public-domain).
16 |
17 | *Keep in mind that some [CORS policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) might prevent the app from loading images from certain websites. You'll want to use URLs from websites that allow their content to be loaded from any origin* (`Access-Control-Allow-Origin: *`).
18 |
19 | 3. Click on "Load image" to reload the page with this image, or click on "Send link to Meta Quest" to send this to your Meta Quest 2 or Meta Quest Pro.
20 |
21 | 4. After opening the link on your Meta Quest 2 or Meta Quest Pro, click on "Start AR" to start.
22 |
23 | 5. Use the thumbsticks (analog sticks) to control the opacity and size of the image. Hold the trigger button to position the image on top of a sheet of paper.
24 |
25 | 6. Draw/Trace.
26 |
27 | ## Screenshots
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | ## Requirements
38 |
39 | Meta Quest 2 or Meta Quest Pro.
40 |
41 |
42 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |