From 04fa37324f0bcc89a159e3088a3a259fd11563c0 Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Fri, 19 Feb 2016 18:24:32 -0800 Subject: [PATCH] tweak to virtual desktop size, to make text more readable, 240d horz FOV --- interface/src/ui/ApplicationCompositor.h | 6 +++--- .../src/display-plugins/hmd/HmdDisplayPlugin.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/src/ui/ApplicationCompositor.h b/interface/src/ui/ApplicationCompositor.h index db8f42881e..d8761bb9b5 100644 --- a/interface/src/ui/ApplicationCompositor.h +++ b/interface/src/ui/ApplicationCompositor.h @@ -32,9 +32,9 @@ const float MAGNIFY_WIDTH = 220.0f; const float MAGNIFY_HEIGHT = 100.0f; const float MAGNIFY_MULT = 2.0f; -const int VIRTUAL_SCREEN_SIZE_X = 3840; -const int VIRTUAL_SCREEN_SIZE_Y = 1536; -const float DEFAULT_HMD_UI_HORZ_ANGULAR_SIZE = 180.0f; +const int VIRTUAL_SCREEN_SIZE_X = 3960; // ~10% more pixel density than old version, 72dx240d FOV +const int VIRTUAL_SCREEN_SIZE_Y = 1188; // ~10% more pixel density than old version, 72dx240d FOV +const float DEFAULT_HMD_UI_HORZ_ANGULAR_SIZE = 240.0f; const float DEFAULT_HMD_UI_VERT_ANGULAR_SIZE = DEFAULT_HMD_UI_HORZ_ANGULAR_SIZE * (float)VIRTUAL_SCREEN_SIZE_Y / (float)VIRTUAL_SCREEN_SIZE_X; // Handles the drawing of the overlays to the screen diff --git a/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.h b/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.h index 9ec40e02a8..227f377e1b 100644 --- a/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.h +++ b/libraries/display-plugins/src/display-plugins/hmd/HmdDisplayPlugin.h @@ -20,8 +20,8 @@ public: glm::mat4 getCullingProjection(const glm::mat4& baseProjection) const override final { return _cullingProjection; } glm::uvec2 getRecommendedUiSize() const override final { // FIXME - would be good to have these values sync with ApplicationCompositor in a better way. - const int VIRTUAL_SCREEN_SIZE_X = 3840; - const int VIRTUAL_SCREEN_SIZE_Y = 1536; + const int VIRTUAL_SCREEN_SIZE_X = 3960; // ~10% more pixel density than old version, 72dx240d FOV + const int VIRTUAL_SCREEN_SIZE_Y = 1188; // ~10% more pixel density than old version, 72dx240d FOV auto result = uvec2(VIRTUAL_SCREEN_SIZE_X, VIRTUAL_SCREEN_SIZE_Y); return result; }