Change default scale to 0.8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Configurable items:
|
||||
## `scale`
|
||||
Default value: `1`
|
||||
Default value: `0.8`
|
||||
|
||||
Controls the size of the video stream, either a number between 0 and 1 or a pair of numbers between 0 and 1. If two numbers are provided the first one is horizontal scale and the second vertical.
|
||||
Scaling is applied in a foveated fashion: the center has a 1:1 ratio and the rest is scaled so that the total number of pixels matches the desired scale.
|
||||
|
||||
@@ -214,7 +214,7 @@ wivrn_hmd::wivrn_hmd(std::shared_ptr<xrt::drivers::wivrn::wivrn_session> cnx,
|
||||
|
||||
auto eye_width = info.recommended_eye_width; // * config.scale.value_or(1);
|
||||
auto eye_height = info.recommended_eye_height; // * config.scale.value_or(1);
|
||||
auto scale = config.scale.value_or(std::array<double, 2>{1., 1.});
|
||||
auto scale = config.scale.value_or(std::array<double, 2>{0.8, 0.8});
|
||||
int foveated_eye_width = info.recommended_eye_width * scale[0];
|
||||
int foveated_eye_height = info.recommended_eye_height * scale[1];
|
||||
foveated_eye_height += foveated_eye_height % 2;
|
||||
|
||||
Reference in New Issue
Block a user