Skip to content

avaer/vr-dos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

💾 Virtual Reality DOS 💾

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 95.9%
  • CSS 2.2%
  • HTML 1.9%