sonictruth/vr-dos

sonictruth/vr-dos

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

This is a 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.

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

0: [Key.Enter], // Trigger

1: [Key.Shift], // Squeeze

3: [Key.Ctrl], // Joy fire

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/

Other News

Menu
Need Help? Chat with us