# iw3-desktop: PC Desktop 3D Streaming Tool [Japanese Description:日本語の説明](desktop_ja.md) ## Overview `iw3-desktop` is a tool that converts your PC desktop screen into 3D in real-time and streams it over Wi-Fi. It can be viewed as side-by-side 3D from the browser on VR devices like Meta Quest. You can watch any image and video displayed on your PC in real-time within a VR space. Note that `iw3-desktop` itself streams video only (without audio or remote input): * **Standalone VR Browser (e.g., Meta Quest Browser)**: To control the PC, you continue to use the PC's keyboard and mouse, and audio is output from the PC (speakers/headphones). The VR device functions solely as a display. * **PCVR (e.g., SteamVR / Local Viewer with VR desktop software)**: Audio is output through the PC's configured audio device. In PCVR environments such as SteamVR, PC audio is normally routed to the VR headset automatically (unless configured to use PC speakers/headphones). Input/control behavior depends on the PCVR environment or VR desktop software being used. Please be aware of 3D sickness, as the depth estimation results for GUI windows and text may not be perfect. This tool is primarily intended for full-screen playback of images and videos. In addition to web streaming, it also supports local viewer window display. This feature utilizes the streaming capabilities of third-party 3D monitors or VR desktop software (such as Virtual Desktop or Bigscreen) that can capture windows or virtual monitors. ## Known Issues * Confirmed to work with Meta Quest and PICO 4, but not with VisionPro. * On Linux, screen capture depends on the display server (see `Screenshot Method` below): * **Wayland**: Use `--screenshot obs` or `--screenshot kwcapture` (KDE Plasma only). * **X11**: Use `--screenshot mss`. ## Security Notice `iw3-desktop` starts an HTTPS server (or HTTP when using `--legacy-stream`) without a password by default. Please be aware that other PCs within the same network may be able to access it. You can set a password for Basic Authentication using the `--password` option. ## GUI Usage If you are using `nunif-windows-package` on Windows, the GUI can be launched by running `iw3-desktop-gui.bat`. If `iw3-desktop-gui.bat` does not exist, please run `update-installer.bat` and then `update.bat`. To launch from the command line, use the following command: ```bash python -m iw3.desktop.gui ``` ![iw3-desktop-gui](https://github.com/user-attachments/assets/18175b2a-a027-42ce-ae5c-a9ee7ae178e5) ## CLI Usage Launch the server with the following command: ```bash python -m iw3.desktop ``` (If you are using `nunif-windows-package` on Windows, launch `nunif-prompt.bat` and enter the above command from the console.) If the server starts successfully, a message like the following will be displayed: ``` Open https://192.168.11.6:1303 Estimated FPS = 30.24, Streaming FPS = 0.00 ``` (The `192.168.11.6` address will vary depending on your network environment. When `--legacy-stream` is specified, an `http://` URL is displayed.) If a Firewall dialog appears, please allow access. Open the displayed URL in your PC browser or VR device browser and check if the stream can be played. If the PC's IP address is not detected correctly within the LAN, you can specify the IP address with the `--bind-addr` option: ```bash python -m iw3.desktop --bind-addr 192.168.1.2 ``` ## How to View on VR Devices ### WebXR (Default: `Web Streaming`) By default, `iw3-desktop` uses the WebXR player (`iw3-player`) over HTTPS. #### About SSL Warnings To meet WebXR's mandatory HTTPS requirement, the server generates a self-signed certificate on startup. During your first visit, your browser will display a security warning (e.g., "Your connection is not private"). To proceed: 1. Click **"Advanced"**. 2. Select **"Proceed to [IP address]"**. **Tip:** Bookmarking this page will allow you to skip this warning in the future. #### Playback Steps 1. Launch the browser on your VR device (or a WebXR-compatible PC browser for PCVR) and open the `https://...` URL. 2. Skip the SSL warning if it appears. 3. Wait for the stream to start, then click **Enter VR** to enter WebXR mode. For WebXR player controls and screen settings, see the [iw3-player documentation](../player/README.md). ### Web Streaming (Legacy) (`--legacy-stream`) If you prefer to use the VR browser's built-in HTML5 `