From 68bb2b2ecfb773af3f300aa0537e010163de7c9e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 16 Aug 2024 21:05:23 +0200 Subject: [PATCH] fix distortion mesh size --- client/scenes/stream_reprojection.cpp | 2 +- server/driver/wivrn_hmd.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/scenes/stream_reprojection.cpp b/client/scenes/stream_reprojection.cpp index 658b11a0..2a075c1b 100644 --- a/client/scenes/stream_reprojection.cpp +++ b/client/scenes/stream_reprojection.cpp @@ -40,7 +40,7 @@ struct stream_reprojection::uniform alignas(8) glm::vec2 xc; }; -const int nb_reprojection_vertices = 64; +const int nb_reprojection_vertices = 128; stream_reprojection::stream_reprojection( vk::raii::Device & device, diff --git a/server/driver/wivrn_hmd.cpp b/server/driver/wivrn_hmd.cpp index 141289a2..87a0ff39 100644 --- a/server/driver/wivrn_hmd.cpp +++ b/server/driver/wivrn_hmd.cpp @@ -242,7 +242,6 @@ wivrn_hmd::wivrn_hmd(std::shared_ptr cnx, // FOV from headset info packet hmd->distortion.fov[0] = xrt_cast(info.fov[0]); hmd->distortion.fov[1] = xrt_cast(info.fov[1]); - u_distortion_mesh_fill_in_compute(this); } void wivrn_hmd::update_inputs() @@ -372,7 +371,6 @@ decltype(wivrn_hmd::foveation_parameters) wivrn_hmd::set_foveated_size(uint32_t compute_distortion = wivrn_hmd_compute_distortion; hmd->distortion.models = XRT_DISTORTION_MODEL_COMPUTE; hmd->distortion.preferred = XRT_DISTORTION_MODEL_COMPUTE; - u_distortion_mesh_fill_in_compute(this); return foveation_parameters; }