vr-phone.conf - the phone HMD's lens and picture
One key value per line, # for comments, in
/etc/carbonian/vr-phone.conf and
~/.config/carbonian/vr-phone.conf (the user's wins key by key).
carbonian-vr-phone apply sends it to the phone's app, which keeps it.
Every setting can also be changed live (carbonian-vr-phone tune).
Read by carbonian-vr-phone up when it starts the
runtime.
- home on
- Open the VR home with up; off leaves it to carbonian-ctl
vr home on.
- gpu auto
- The GPU the runtime renders on: auto (the NVIDIA one when there is
one: NVENC, which encodes the picture, lives there), intel,
nvidia, amd or a Vulkan device index. Needs
vulkaninfo (vulkan-tools) to find it by name.
- bitrate
25M
- The encoder's bitrate to the phone: 25M, 800k or bits a
second.
- host auto
- The phone's address; auto is the neighbour of the USB tethering
interface.
- view stereo
- stereo: two eyes with the lens's distortion (a cardboard holder).
flat: one view over the whole screen, no lenses: the runtime
renders two eyes the size of the whole screen (the home knows no single
view) with the flat field of view and the left one is sent, so twice the
pixels are drawn (carbonian-vr-phone view flat changes it and
restarts the runtime).
- flat_fov
90deg
- The flat view's horizontal field of view; the runtime
(SIMULATED_PHONE_FOV) and the app both follow it (up tells
the app, or apply).
- k1, k2
- The barrel pre-distortion: a ray's tangent from the lens's centre is p (1
+ k1 r² + k2 r) fs. Defaults 0.20 and 0.10.
- fs
- How much of the scene the screen shows (bigger: wider view, smaller
picture). Default 0.75.
- lens
- Each lens centre's distance from the screen's centre, in screens' widths.
Default 0.225 (54 mm on a 155 mm screen).
- voff
- Their height, in screens' heights (up is positive). Default 0.
- shiftx,
shifty
- Both pictures together, for a holder that is not centred on the
screen.
- lensl, lensr, voffl,
voffr
- Each eye's lens centre alone, added to lens and voff.
- rot
- The roll of the pictures, in degrees.
- crop
- The share cut off each eye's edges, so an eye does not see the other's
picture. Default 0.
- maskr,
soft
- A round mask round each eye: its radius in half-heights (0 is off) and the
softness of its edge (default 0.1).
- wrap
- What to draw beyond the picture: 0 black, 1 stretch the edge, 2 mirror, 3
repeat.
- aspect, bright,
gamma
- A vertical stretch, a brightness multiplier and the tone curve. Default
1.
- warp
- 1: the timewarp redraws the picture with the head's newest pose at every
refresh; 0: the picture as it was drawn.