@iwer/devui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img height="60px" width="60px" src="https://meta-quest.github.io/immersive-web-emulation-runtime/iwer-text.svg" />
|
|
3
|
+
<h1 align="center">@iwer/devui</h1>
|
|
4
|
+
</p>
|
|
5
|
+
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://www.npmjs.com/package/@iwer/devui"><img src="https://badgen.net/npm/v/@iwer/devui/?icon=npm&color=orange" alt="npm version" /></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@iwer/devui"><img src="https://badgen.net/npm/dt/@iwer/devui" alt="npm download" /></a>
|
|
9
|
+
<a href="https://www.typescriptlang.org/"><img src="https://badgen.net/badge/icon/typescript/?icon=typescript&label=lang" alt="language" /></a>
|
|
10
|
+
<a href="https://raw.githubusercontent.com/meta-quest/immersive-web-emulation-runtime/main/LICENSE"><img src="https://badgen.net/github/license/meta-quest/immersive-web-emulation-runtime/" alt="license" /></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
`@iwer/devui` is a developer user interface designed to integrate with the Immersive Web Emulation Runtime (IWER). It provides full control of an emulated WebXR device via an intuitive overlay UI on top of your development environment. This tool is ideal for developers building and testing WebXR applications, offering advanced features for comprehensive device emulation directly within your project's source code.
|
|
14
|
+
|
|
15
|
+
## Key Features
|
|
16
|
+
|
|
17
|
+
- **Comprehensive Transform Controls:** Modify the position and orientation of the emulated headset and controllers with precision.
|
|
18
|
+
- **Full Gamepad Controls Support:** Exposes complete control over the emulated XR controllers, perfectly recreating the behavior and input of physical controllers for thorough testing.
|
|
19
|
+
- **Experimental Play Mode:** Allows developers to efficiently test their immersive experiences using traditional FPS-like mouse and keyboard controls. This mode locks the pointer to the canvas and offers fully mappable keyboard shortcuts to emulate controller actions, streamlining the testing process without the need for physical devices.
|
|
20
|
+
|
|
21
|
+
## Current Status
|
|
22
|
+
|
|
23
|
+
`@iwer/devui` is currently in `0.x` status and is under active development. This is an early build, meaning that while it already excels in many areas and offers better usability than the current IWE, it is not yet complete. Key features and functionalities are being actively developed, and significant changes may occur before the official v1.0 release.
|
|
24
|
+
|
|
25
|
+
### Areas Under Development
|
|
26
|
+
|
|
27
|
+
- **Emulated Hand Tracking Support:** Enable hand tracking emulation to test applications that rely on this feature.
|
|
28
|
+
- **AR Module Support:** Work is ongoing to integrate augmented reality features such as hit-testing, meshing, and plane detection.
|
|
29
|
+
|
|
30
|
+
## Relationship with IWE
|
|
31
|
+
|
|
32
|
+
`@iwer/devui` is a package that developers can add directly to their projects, providing a powerful WebXR emulation tool within the source code. In contrast, [**IWE (Immersive Web Emulator)**](https://chromewebstore.google.com/detail/immersive-web-emulator/cgffilbpcibhmcfbgggfhfolhkfbhmik) is an extension that injects similar emulation capabilities without requiring access to the project’s source code.
|
|
33
|
+
|
|
34
|
+
In the long term, starting with the IWE 2.0 release, the `@iwer/devui` experience will be integrated into IWE, enhancing its functionality. However, `@iwer/devui` will continue to be available as a standalone package, allowing developers to choose the integration method that best suits their workflow.
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
To install `@iwer/devui`, use the following npm command:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install @iwer/devui
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
`@iwer/devui` depends on an active `IWER` runtime within your experience. To get started, you first need to initialize the `IWER` runtime. If you haven't already, check out the [IWER Getting Started Guide](https://meta-quest.github.io/immersive-web-emulation-runtime/getting-started.html). Here is a quick example:
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
import { XRDevice, metaQuest3 } from 'iwer';
|
|
50
|
+
|
|
51
|
+
// Initialize the XR device with a preset configuration (e.g., Meta Quest 3)
|
|
52
|
+
const xrDevice = new XRDevice(metaQuest3);
|
|
53
|
+
|
|
54
|
+
// Install the IWER runtime to enable WebXR emulation
|
|
55
|
+
xrDevice.installRuntime();
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
You can choose to emulate other preset devices or use a custom device configuration with `iwer`. `@iwer/devui` will automatically read the configuration from `iwer` and generate the appropriate control UI based on the selected device.
|
|
59
|
+
|
|
60
|
+
To integrate `@iwer/devui` into your project, add the following code:
|
|
61
|
+
|
|
62
|
+
```javascript
|
|
63
|
+
import { DevUI } from '@iwer/devui';
|
|
64
|
+
|
|
65
|
+
// Initialize the DevUI with the configured XR device
|
|
66
|
+
const devui = new DevUI(xrDevice);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
This setup will allow you to use `@iwer/devui`'s comprehensive emulation controls directly within your WebXR project.
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
`@iwer/devui` is licensed under the MIT License. For more details, see the [LICENSE](https://github.com/meta-quest/immersive-web-emulation-runtime/blob/main/LICENSE) file in this repository.
|
|
74
|
+
|
|
75
|
+
## Contributing
|
|
76
|
+
|
|
77
|
+
Your contributions are welcome! Please feel free to submit issues and pull requests. Before contributing, make sure to review our [Contributing Guidelines](https://github.com/meta-quest/immersive-web-emulation-runtime/blob/main/CONTRIBUTING.md) and [Code of Conduct](https://github.com/meta-quest/immersive-web-emulation-runtime/blob/main/CODE_OF_CONDUCT.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iwer/devui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Dev UI for IWER",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"three": "^0.166.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"iwer": "1.0.
|
|
36
|
+
"iwer": "^1.0.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@rollup/plugin-babel": "^6.0.4",
|