Home

Awesome

WebXR Depth Testbed Babylon.js

Deploy static content to Pages

日本語

About

A demo project showing how to use WebXR Depth Sensing Module in Babylon.js. In this project, depth image from depth-sensing estimation result are drawn realtime. The depth image is drawn in HTML canvas element using WebXR DOM Overlay feature.

https://user-images.githubusercontent.com/11372210/195320156-16d4f9e8-3f2c-4135-85bb-410960b17e7f.mp4

Environment

itemEnv
OSWindows 10 Home
Node.js16.x
Babylon.js5.27.0
Vite3.1.0
Debug MachinePixel 4a 5G(Android12)
ChromeChrome for Android 106

Install & Usage

First of all, you have to create SSL/TLS certificate and you can use openssl command. When you are asked CommonName in the shell, answer https://<IP Adress>:3000

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem

Then, you can install and start dev server with commands below.

# install
yarn install

# launch dev server
yarn dev

Contact

You cas ask me anything on my twitter.