• Stars
    star
    453
  • Rank 96,573 (Top 2 %)
  • Language
    TypeScript
  • Created over 4 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ’Ύ Virtual Reality DOS

Virtual Reality DOS PoC

http://sonictruth.github.io/vr-dos/

This is an experimental "PC running DOS" emulator inside a VR environment.

The VR environment was built using Three.js and the emulator is rendered inside the world using CanvasTexture.

To achive proper fps (main thread needs a lot of cpu for VR rendering) I modified js-dos to be able to compile it as a Web Worker.

Keys

On PC you can use your keyboard to control the emulator and mouse to look around.

On mobile you can use the top right virtual keys.

In VR this are the default mappings (tested with Oculus Quest):

0: [Key.Enter], // Trigger

1: [Key.Shift], // Squeeze

3: [Key.Ctrl], // Joystick press

4: [Key.Space, Key.Shift, Key.Ctrl], // A

5: [Key.Ctrl, Key.Q, Key.Escape] // B

TODO

  • Add sound support
  • Add mouse support
  • Add Joystick support
  • Optimize canvas drawing using OffscreenCanvas
  • Optimize rendering loops, gamepad handling

Credits

3D Model https://sketchfab.com/railek

js-dos https://js-dos.com/