From 518064f497ea4277aa29e4f26c2ad5245ba95e14 Mon Sep 17 00:00:00 2001 From: AmericanaNinja Date: Tue, 3 Dec 2024 20:17:08 -0600 Subject: [PATCH] Update OpenVR.cpp for Warping Issues Removed Lines 153 and 154 recommendedWidth = static_cast(recommendedWidth / (std::max)(textureBounds[0].uMax - textureBounds[0].uMin, textureBounds[1].uMax - textureBounds[1].uMin)); recommendedHeight = static_cast(recommendedHeight / (std::max)(textureBounds[0].vMax - textureBounds[0].vMin, textureBounds[1].vMax - textureBounds[1].vMin)); --- HaloCEVR/VR/OpenVR.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HaloCEVR/VR/OpenVR.cpp b/HaloCEVR/VR/OpenVR.cpp index 40d3135..4a5ed9c 100644 --- a/HaloCEVR/VR/OpenVR.cpp +++ b/HaloCEVR/VR/OpenVR.cpp @@ -150,8 +150,7 @@ void OpenVR::Init() realWidth = recommendedWidth; realHeight = recommendedHeight; - recommendedWidth = static_cast(recommendedWidth / (std::max)(textureBounds[0].uMax - textureBounds[0].uMin, textureBounds[1].uMax - textureBounds[1].uMin)); - recommendedHeight = static_cast(recommendedHeight / (std::max)(textureBounds[0].vMax - textureBounds[0].vMin, textureBounds[1].vMax - textureBounds[1].vMin)); + Logger::log << "[OpenVR] Stretched Width/Height from " << realWidth << "x" << realHeight << " to " << recommendedWidth << "x" << recommendedHeight << std::endl; Logger::log << "[OpenVR] Desired fov = " << (fov * (180.0f / 3.141593f)) << " Desired aspect ratio = " << aspect << std::endl;