antlersoft / android-vnc-viewer

Automatically exported from code.google.com/p/android-vnc-viewer
68 stars 26 forks source link

Add panning by device orientation #341

Closed Drahflow closed 7 years ago

Drahflow commented 7 years ago

... aka VR-Mode.

This PR adds an input mode which pans the current view depending on where the device is looking at.

Effectively, this creates a virtual screen in VR-Space and some grey border around it, so users are not forced to read content near VR glasses edges (where the optical properties tend to be worse).The virtual screen won't rotate with the glasses, but stays upright with respect to the user (this differs from what actual screens would do). Zoom behaves more or less like binoculars would (i.e. moving the head to the same position results in the same image as before, just larger).

How to use this (tested on Moverio BT-300)

  1. Connect to the VNC server of your choice (e.g. x11vnc), as usual
  2. On the bottom right corner of the screen is the menu button (or use the hardware menu button, if you have one)
  3. Select the "Input Mode" icon in the menu (it's the square thingy, fourth from the left)
  4. Choose "Pan by Device Orientation"
  5. Zoom in by the normal "zoom in"-gesture, i.e. put two fingers on the touchpad, and separate them quickly.
  6. Enjoy your AR screen.