Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/docEdub/babylonjs-ar-piano-portal
https://github.com/docEdub/babylonjs-ar-piano-portal
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/docEdub/babylonjs-ar-piano-portal
- Owner: docEdub
- Created: 2022-11-19T04:57:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T15:08:57.000Z (9 months ago)
- Last Synced: 2024-08-02T15:07:50.536Z (5 months ago)
- Language: TypeScript
- Size: 23.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-babylonjs - Babylon.js "magic" piano portal - An augmented-reality WebXR animation of Chopin's "Winter Wind" Étude to hang on your wall! Works on flat-screen, too. ([demo](https://demos.babylonjs.com/piano-portal/)) (Projects)
README
# Babylon.js "magic" piano portal
An augmented-reality WebXR animation of Chopin's "Winter Wind" Étude to hang on your wall! Works on flat-screen, too.
See it live at https://demos.babylonjs.com/piano-portal/.
For the WebXR version, use a Meta Quest 2 or Quest Pro with passthrough turned on and setup your room's walls with the Room Setup configuration tool found in the experimental settings.
[![](images/babylonjs-logo.png)](https://www.babylonjs.com/)
![](images/preview.png)
## Build instructions
Install Node.js and NPM then run the following commands:
```
npm install
npm build
```To run the Webpack dev server locally, run:
```
npm start
```
...and go to https://localhost:8080 in your browser. You'll get a warning about it being unsecure, but the browser should give the option to click through to the website anwyay.## Notes
The "magic" portal uses a stencil buffer and a clip plane. A minimal example can be found at https://playground.babylonjs.com/#A1Z15H#7.
The keyboard model is a modified version from the [Babylon.js Piano tutorial](https://learn.microsoft.com/en-us/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/keyboard-interaction-03). A minimal example can be found at https://playground.babylonjs.com/#Z02BBJ#6.
The MIDI file used in this project was created by Bernd Krueger. It can be found at http://www.piano-midi.de/chopin.htm.
[![](images/CC_BY-SA_3.0_DE.png)](https://creativecommons.org/licenses/by-sa/3.0/de/deed.en)