Rebase almost everything to Master

This commit is contained in:
Vindicus999
2025-09-25 09:16:54 -04:00
parent 492ed88ae2
commit cf3c364b42
129 changed files with 13067 additions and 4431 deletions
+1
View File
@@ -124,6 +124,7 @@ android {
'-DCMAKE_ANDROID_NDK_VERSION=' + ndkVersion,
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
'-DWIVRN_USE_SYSTEM_BOOST=OFF',
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
'-DWIVRN_BUILD_CLIENT=ON',
'-DWIVRN_BUILD_SERVER=OFF',
+21 -14
View File
@@ -13,7 +13,7 @@ if (WIVRN_USE_LIBKTX)
FetchContent_MakeAvailable(libktx)
endif()
if (NOT BOOST_FOUND)
if (NOT WIVRN_USE_SYSTEM_BOOST)
FetchContent_MakeAvailable(boost)
endif()
@@ -51,7 +51,7 @@ if(ANDROID)
else()
add_executable(wivrn)
if (OpenXR_FOUND)
if (WIVRN_USE_SYSTEM_OPENXR)
target_link_libraries(wivrn OpenXR::openxr_loader OpenXR::headers)
else()
FetchContent_MakeAvailable(openxr_loader)
@@ -91,7 +91,22 @@ file(GLOB_RECURSE VULKAN_SHADERS CONFIGURE_DEPENDS "*.glsl")
target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS})
wivrn_compile_glsl(wivrn SHADERS ${VULKAN_SHADERS})
target_link_libraries(wivrn Vulkan::Vulkan spdlog::spdlog glm::glm fastgltf FreetypeHarfbuzz stb Boost::url Boost::locale)
target_link_libraries(wivrn
Boost::locale
Boost::url
EnTT::EnTT
fastgltf
FreetypeHarfbuzz
glm::glm
imspinner
simdjson
spdlog::spdlog
stb
uni-algo
Vulkan::Vulkan
wivrn-common
wivrn-external
)
if (WIVRN_USE_LIBKTX)
target_link_libraries(wivrn ktx_read)
@@ -107,10 +122,6 @@ if(NOT ANDROID)
install(TARGETS wivrn)
endif()
target_link_libraries(wivrn simdjson uni-algo wivrn-common wivrn-external)
##############################################################################
# Dear ImGui
#
@@ -140,10 +151,6 @@ target_link_libraries(wivrn-imgui FreetypeHarfbuzz)
target_link_libraries(wivrn wivrn-imgui)
##############################################################################
# EnTT
#
target_link_libraries(wivrn EnTT::EnTT)
##############################################################################
# Vulkan Validation Layer
@@ -230,7 +237,7 @@ add_custom_command(OUTPUT ${ASSETS_DIR}/wivrn.png
DEPENDS ${IMG_SRC_DIR}/wivrn.svg ${WIVRN_CSS_ABS})
add_custom_target(assets ALL DEPENDS
${ASSETS_DIR}/wivrn.png)
${ASSETS_DIR}/wivrn.png)
add_dependencies(wivrn assets)
@@ -251,8 +258,8 @@ if(ANDROID)
add_custom_target(assets-android ALL DEPENDS
${ASSETS_DIR}/wivrn.ktx2
${ASSETS_DIR}/WoodFloor051_1K-JPG_Color.ktx2
${ASSETS_DIR}/vr_splash.png)
${ASSETS_DIR}/vr_splash.png
)
add_dependencies(assets-android assets)
add_dependencies(wivrn assets-android)
endif()
+131 -159
View File
@@ -18,7 +18,7 @@
*/
#include "application.h"
#include "asset.h"
#include "hardware.h"
#include "openxr/openxr.h"
#include "scene.h"
@@ -26,18 +26,23 @@
#include "spdlog/spdlog.h"
#include "utils/contains.h"
#include "utils/files.h"
#include "utils/i18n.h"
#include "vk/check.h"
#include "wifi_lock.h"
#include "wivrn_packets.h"
#include "xr/actionset.h"
#include "xr/check.h"
#include "xr/htc_exts.h"
#include "xr/htc_face_tracker.h"
#include "xr/meta_body_tracking_fidelity.h"
#include "xr/xr.h"
#include "xr/to_string.h"
#include <algorithm>
#include <boost/locale.hpp>
#include <boost/url/parse.hpp>
#include <chrono>
#include <ctype.h>
#include <exception>
#include <magic_enum.hpp>
#include <string>
#include <thread>
#include <vector>
@@ -67,7 +72,6 @@ struct interaction_profile
std::string profile_name;
std::vector<std::string> required_extensions;
XrVersion min_version = XR_MAKE_VERSION(1, 0, 0);
XrVersion max_version = XR_MAKE_VERSION(2, 0, 0); // exclusive
std::vector<std::string> input_sources;
bool available;
};
@@ -134,8 +138,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/facebook/touch_controller_pro",
.required_extensions = {"XR_FB_touch_controller_pro"},
.max_version = XR_MAKE_VERSION(1, 1, 0),
.required_extensions = {XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/left/output/haptic_trigger_fb",
@@ -247,8 +250,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/meta/touch_controller_plus",
.required_extensions = {"XR_META_touch_controller_plus"},
.max_version = XR_MAKE_VERSION(1, 1, 0),
.required_extensions = {XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/right/output/haptic",
@@ -348,7 +350,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/bytedance/pico_neo3_controller",
.required_extensions = {"XR_BD_controller_interaction"},
.required_extensions = {XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/right/output/haptic",
@@ -391,7 +393,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/bytedance/pico4_controller",
.required_extensions = {"XR_BD_controller_interaction"},
.required_extensions = {XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/right/output/haptic",
@@ -434,7 +436,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/bytedance/pico4s_controller",
.required_extensions = {"XR_BD_controller_interaction"},
.required_extensions = {XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/right/output/haptic",
@@ -477,7 +479,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/htc/vive_focus3_controller",
.required_extensions = {"XR_HTC_vive_focus3_controller_interaction"},
.required_extensions = {XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/right/output/haptic",
@@ -519,7 +521,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/ext/hand_interaction_ext",
.required_extensions = {"XR_EXT_hand_interaction"},
.required_extensions = {XR_EXT_HAND_INTERACTION_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/input/aim/pose",
"/user/hand/left/input/grip/pose",
@@ -548,11 +550,14 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/htc/vive_xr_tracker",
.required_extensions = {"XR_HTC_vive_xr_tracker_interaction", "XR_HTC_path_enumeration"},
.required_extensions = {
XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME,
XR_HTC_PATH_ENUMERATION_EXTENSION_NAME,
},
},
interaction_profile{
.profile_name = "/interaction_profiles/ext/eye_gaze_interaction",
.required_extensions = {"XR_EXT_eye_gaze_interaction"},
.required_extensions = {XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME},
.input_sources = {
"/user/eyes_ext/input/gaze_ext/pose",
},
@@ -649,6 +654,7 @@ VkBool32 application::vulkan_debug_report_callback(
}
#ifndef NDEBUG
bool my_error = true;
if (level >= spdlog::level::warn)
{
bool validation_layer_found = false;
@@ -659,10 +665,13 @@ VkBool32 application::vulkan_debug_report_callback(
if (validation_layer_found && i.library != "libVkLayer_khronos_validation.so")
spdlog::log(level, "{:#016x}: {} + {:#x}", i.pc, i.library, i.pc - i.library_base);
if (i.library == "libopenxr_loader.so")
my_error = false;
}
}
if (level >= spdlog::level::err)
if (level >= spdlog::level::err and my_error)
abort();
#endif
@@ -717,15 +726,13 @@ void application::initialize_vulkan()
spdlog::info("Using Vulkan validation layer");
layers.push_back("VK_LAYER_KHRONOS_validation");
}
bool debug_report_found = false;
bool debug_utils_found = false;
#endif
std::vector<const char *> instance_extensions{};
std::unordered_set<std::string_view> optional_device_extensions{};
#ifndef NDEBUG
bool debug_report_found = false;
bool debug_utils_found = false;
#endif
spdlog::info("Available Vulkan instance extensions:");
std::vector<std::pair<std::string, int>> extensions;
for (vk::ExtensionProperties & i: vk_context.enumerateInstanceExtensionProperties(nullptr))
@@ -734,28 +741,27 @@ void application::initialize_vulkan()
#ifndef NDEBUG
if (!strcmp(i.extensionName, VK_EXT_DEBUG_REPORT_EXTENSION_NAME))
{
debug_report_found = true;
instance_extensions.push_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME);
}
if (!strcmp(i.extensionName, VK_EXT_DEBUG_UTILS_EXTENSION_NAME))
if (!strcmp(i.extensionName, VK_EXT_DEBUG_UTILS_EXTENSION_NAME) and
guess_model() != model::oculus_quest) // Quest 1 lies, the extension won't load
{
debug_utils_found = true;
instance_extensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME);
}
#endif
}
std::ranges::sort(extensions);
for (const auto & [extension_name, spec_version]: extensions)
spdlog::info(" {} (version {})", extension_name, spec_version);
#ifndef NDEBUG
if (debug_utils_found && debug_report_found)
{
// debug_extensions_found = true;
// spdlog::info("Using debug extensions");
instance_extensions.push_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME);
// instance_extensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME);
}
#endif
vk_device_extensions.push_back(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME);
optional_device_extensions.emplace(VK_IMG_FILTER_CUBIC_EXTENSION_NAME);
optional_device_extensions.emplace(VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME);
optional_device_extensions.emplace(VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME);
#ifdef __ANDROID__
vk_device_extensions.push_back(VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME);
@@ -874,6 +880,7 @@ void application::initialize_vulkan()
.ppEnabledExtensionNames = vk_device_extensions.data(),
.pEnabledFeatures = &device_features,
},
vk::PhysicalDeviceFragmentShadingRateFeaturesKHR{},
#ifdef __ANDROID__
vk::PhysicalDeviceSamplerYcbcrConversionFeaturesKHR{
.samplerYcbcrConversion = VK_TRUE,
@@ -881,6 +888,22 @@ void application::initialize_vulkan()
#endif
};
if (utils::contains(vk_device_extensions, VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME) and
utils::contains(vk_device_extensions, VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME))
{
auto [feat, fragment_feat] = vk_physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
auto & create_feat = device_create_info.get<vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
create_feat.primitiveFragmentShadingRate = fragment_feat.primitiveFragmentShadingRate;
create_feat.attachmentFragmentShadingRate = fragment_feat.attachmentFragmentShadingRate;
spdlog::info("Fragment shading rate features: primitive={} attachment={}",
create_feat.primitiveFragmentShadingRate,
create_feat.attachmentFragmentShadingRate);
}
else
{
device_create_info.unlink<vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
}
vk_device = xr_system_id.create_device(vk_physical_device, device_create_info.get());
*vk_queue.lock() = vk_device.getQueue(vk_queue_family_index, 0);
@@ -902,10 +925,16 @@ void application::initialize_vulkan()
pipeline_cache = vk::raii::PipelineCache(vk_device, pipeline_cache_info);
allocator.emplace(VmaAllocatorCreateInfo{
.physicalDevice = *vk_physical_device,
.device = *vk_device,
.instance = *vk_instance,
});
.physicalDevice = *vk_physical_device,
.device = *vk_device,
.instance = *vk_instance,
},
#ifndef NDEBUG
debug_utils_found
#else
false
#endif
);
}
void application::log_views()
@@ -952,8 +981,6 @@ void application::initialize_actions()
{
spdlog::debug("Initializing actions");
auto * htc_body = std::get_if<xr::htc_body_tracker>(&body_tracker);
// Build an action set with all possible input sources
std::vector<XrActionSet> action_sets;
xr_actionset = xr::actionset(xr_instance, "all_actions", "All actions");
@@ -967,7 +994,8 @@ void application::initialize_actions()
std::vector<std::string> sources;
for (auto & profile: interaction_profiles)
{
profile.available = utils::contains_all(xr_extensions, profile.required_extensions) and profile.min_version <= api_version and profile.max_version > api_version;
profile.available = std::ranges::all_of(profile.required_extensions, [&](auto & ext) { return xr_instance.has_extension(ext); }) and
profile.min_version <= api_version;
if (profile.profile_name.ends_with("khr/simple_controller"))
{
@@ -1008,15 +1036,15 @@ void application::initialize_actions()
}
if (add_palms)
{
if ((api_version >= XR_MAKE_VERSION(1, 1, 0) or utils::contains(xr_extensions, XR_KHR_MAINTENANCE1_EXTENSION_NAME)) //
and utils::contains(profile.input_sources, "/user/hand/left/input/grip/pose") //
if ((api_version >= XR_MAKE_VERSION(1, 1, 0) or xr_instance.has_extension(XR_KHR_MAINTENANCE1_EXTENSION_NAME)) //
and utils::contains(profile.input_sources, "/user/hand/left/input/grip/pose") //
and not utils::contains(profile.input_sources, "/user/hand/left/input/grip_surface/pose"))
{
spdlog::info("Adding grip_surface/pose for interaction profile {}", profile.profile_name);
profile.input_sources.push_back("/user/hand/left/input/grip_surface/pose");
profile.input_sources.push_back("/user/hand/right/input/grip_surface/pose");
}
else if (utils::contains(xr_extensions, XR_EXT_PALM_POSE_EXTENSION_NAME) //
else if (xr_instance.has_extension(XR_EXT_PALM_POSE_EXTENSION_NAME) //
and utils::contains(profile.input_sources, "/user/hand/left/input/grip/pose") //
and not utils::contains(profile.input_sources, "/user/hand/left/input/palm_ext/pose"))
{
@@ -1027,14 +1055,15 @@ void application::initialize_actions()
}
// Dynamically add VIVE XR Trackers to the profile if available
if (htc_body && utils::contains(profile.required_extensions, XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME))
if (utils::contains(profile.required_extensions, XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME) and
xr_instance.has_extension(XR_HTC_PATH_ENUMERATION_EXTENSION_NAME))
{
for (const auto & user_path: htc_body->get_paths())
XrPath tracker_profile = xr_instance.string_to_path("/interaction_profiles/htc/vive_xr_tracker");
for (const auto & user_path: xr_instance.enumerate_paths_for_interaction_profile(tracker_profile))
{
for (const auto & input_path: htc_body->get_paths(user_path))
{
profile.input_sources.push_back(path_to_string(user_path) + path_to_string(input_path));
}
generic_trackers.emplace_back(user_path, nullptr);
for (const auto & input_path: xr_instance.enumerate_paths_for_interaction_profile(tracker_profile, user_path))
profile.input_sources.push_back(xr_instance.path_to_string(user_path) + xr_instance.path_to_string(input_path));
}
}
@@ -1082,8 +1111,14 @@ void application::initialize_actions()
spaces[size_t(xr::spaces::poke_right)] = xr_session.create_action_space(a);
else if (name == "/user/eyes_ext/input/gaze_ext/pose")
spaces[size_t(xr::spaces::eye_gaze)] = xr_session.create_action_space(a);
else if (name.contains("/input/entity_htc/pose") && htc_body)
htc_body->add(xr_session.create_action_space(a));
else if (name.contains("/input/entity_htc/pose"))
{
for (auto & [path, action]: generic_trackers)
{
if (name.starts_with(xr_instance.path_to_string(path)))
action = xr_session.create_action_space(a);
}
}
}
// Build an action set for each scene
@@ -1120,7 +1155,7 @@ void application::initialize_actions()
xr_bindings.push_back(XrActionSuggestedBinding{
.action = a,
.binding = string_to_path(k.input_source)});
.binding = xr_instance.string_to_path(k.input_source)});
}
}
}
@@ -1137,7 +1172,7 @@ void application::initialize_actions()
for (const auto & name: profile.input_sources)
{
xr_bindings.push_back({actions_by_name[name], string_to_path(name)});
xr_bindings.push_back({actions_by_name[name], xr_instance.string_to_path(name)});
}
try
@@ -1157,7 +1192,7 @@ void application::initialize()
{
// LogLayersAndExtensions
assert(!xr_instance);
xr_extensions.clear();
std::vector<std::string> xr_extensions;
// Required extensions
xr_extensions.push_back(XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME);
@@ -1230,21 +1265,16 @@ void application::initialize()
spdlog::info(" Orientation tracking: {}", (bool)properties.trackingProperties.orientationTracking);
spdlog::info(" Position tracking: {}", (bool)properties.trackingProperties.positionTracking);
if (utils::contains(xr_extensions, XR_EXT_HAND_TRACKING_EXTENSION_NAME))
{
XrSystemHandTrackingPropertiesEXT hand_tracking_properties = xr_system_id.hand_tracking_properties();
spdlog::info(" Hand tracking support: {}", (bool)hand_tracking_properties.supportsHandTracking);
hand_tracking_supported = hand_tracking_properties.supportsHandTracking;
}
spdlog::info(" Hand tracking support: {}", xr_system_id.hand_tracking_supported());
if (utils::contains(xr_extensions, XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME))
if (xr_instance.has_extension(XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME))
{
XrSystemEyeGazeInteractionPropertiesEXT eye_gaze_properties = xr_system_id.eye_gaze_interaction_properties();
spdlog::info(" Eye gaze support: {}", (bool)eye_gaze_properties.supportsEyeGazeInteraction);
eye_gaze_supported = eye_gaze_properties.supportsEyeGazeInteraction;
}
if (utils::contains(xr_extensions, XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME))
if (xr_instance.has_extension(XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME))
{
spdlog::info(" OpenXR post-processing extension support: true");
openxr_post_processing_supported = true;
@@ -1252,93 +1282,45 @@ void application::initialize()
switch (xr_system_id.passthrough_supported())
{
case xr::system::passthrough_type::no_passthrough:
case xr::passthrough_type::none:
spdlog::info(" Passthrough: not supported");
break;
case xr::system::passthrough_type::bw:
case xr::passthrough_type::bw:
spdlog::info(" Passthrough: black and white");
break;
case xr::system::passthrough_type::color:
case xr::passthrough_type::color:
spdlog::info(" Passthrough: color");
break;
}
spdlog::info(" Face tracker: {}", magic_enum::enum_name(xr_system_id.face_tracker_supported()));
spdlog::info(" Body tracker: {}", magic_enum::enum_name(xr_system_id.body_tracker_supported()));
// Log view configurations and blend modes
log_views();
initialize_vulkan();
xr_session = xr::session(xr_instance, xr_system_id, vk_instance, vk_physical_device, vk_device, vk_queue_family_index);
{
auto spaces = xr_session.get_reference_spaces();
spdlog::info("{} reference spaces", spaces.size());
for (XrReferenceSpaceType i: spaces)
spdlog::info(" {}", xr::to_string(i));
}
xr_session = xr::session(xr_instance, xr_system_id, vk_instance, vk_physical_device, vk_device, vk_queue, vk_queue_family_index);
spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW);
spaces[size_t(xr::spaces::world)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE);
config.emplace(xr_system_id);
if (hand_tracking_supported)
// HTC face tracker fails if created later
// we can destroy it right away, it actually stores static handles
if (xr_system_id.face_tracker_supported() == xr::face_tracker_type::htc)
{
left_hand = xr_session.create_hand_tracker(XR_HAND_LEFT_EXT);
right_hand = xr_session.create_hand_tracker(XR_HAND_RIGHT_EXT);
auto props = xr_system_id.htc_face_tracking_properties();
xr::htc_face_tracker(xr_instance, xr_session, props.supportEyeFacialTracking, props.supportLipFacialTracking);
}
if (utils::contains(xr_extensions, XR_FB_FACE_TRACKING2_EXTENSION_NAME))
{
XrSystemFaceTrackingProperties2FB fb_face2_properties = xr_system_id.fb_face_tracking2_properties();
spdlog::info(" FB face tracking support: {}", (bool)fb_face2_properties.supportsVisualFaceTracking);
if (fb_face2_properties.supportsVisualFaceTracking)
face_tracker.emplace<xr::fb_face_tracker2>(xr_instance, xr_session);
}
if (std::holds_alternative<std::monostate>(face_tracker) && utils::contains(xr_extensions, XR_HTC_FACIAL_TRACKING_EXTENSION_NAME))
{
XrSystemFacialTrackingPropertiesHTC htc_face_properties = xr_system_id.htc_face_tracking_properties();
spdlog::info(" HTC eye tracking support: {}", (bool)htc_face_properties.supportEyeFacialTracking);
spdlog::info(" HTC lip tracking support: {}", (bool)htc_face_properties.supportLipFacialTracking);
if (htc_face_properties.supportEyeFacialTracking || htc_face_properties.supportLipFacialTracking)
face_tracker.emplace<xr::htc_face_tracker>(xr_instance, xr_session, htc_face_properties.supportEyeFacialTracking, htc_face_properties.supportLipFacialTracking);
}
if (std::holds_alternative<std::monostate>(face_tracker) && eye_gaze_supported)
{
switch (guess_model())
{
case model::pico_4_pro:
case model::pico_4_enterprise:
spdlog::info(" PICO face tracking support: true");
face_tracker.emplace<xr::pico_face_tracker>(xr_instance, xr_session);
break;
default:
break;
}
}
if (utils::contains_all(xr_extensions, std::array{XR_FB_BODY_TRACKING_EXTENSION_NAME, XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME, XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME}))
{
XrSystemBodyTrackingPropertiesFB fb_body_properties = xr_system_id.fb_body_tracking_properties();
spdlog::info(" FB body tracking support: {}", (bool)fb_body_properties.supportsBodyTracking);
if (fb_body_properties.supportsBodyTracking)
body_tracker.emplace<xr::fb_body_tracker>(xr_instance, xr_session);
}
if (std::holds_alternative<std::monostate>(body_tracker) && utils::contains_all(xr_extensions, std::array{XR_HTC_PATH_ENUMERATION_EXTENSION_NAME, XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME}))
{
spdlog::info(" HTC body tracking support: true");
body_tracker.emplace<xr::htc_body_tracker>(xr_instance, xr_session);
}
if (std::holds_alternative<std::monostate>(body_tracker) && utils::contains(xr_extensions, XR_BD_BODY_TRACKING_EXTENSION_NAME))
{
XrSystemBodyTrackingPropertiesBD bd_body_properties = xr_system_id.bd_body_tracking_properties();
spdlog::info(" PICO body tracking support: {}", (bool)bd_body_properties.supportsBodyTracking);
if (bd_body_properties.supportsBodyTracking)
body_tracker.emplace<xr::pico_body_tracker>(xr_instance, xr_session);
auto spaces = xr_session.get_reference_spaces();
spdlog::info("{} reference spaces", spaces.size());
for (XrReferenceSpaceType i: spaces)
spdlog::info(" {}", xr::to_string(i));
}
vk::CommandPoolCreateInfo cmdpool_create_info;
@@ -1348,50 +1330,47 @@ void application::initialize()
vk_cmdpool = vk::raii::CommandPool{vk_device, cmdpool_create_info};
initialize_actions();
load_locale();
}
void application::load_locale()
{
gen.add_messages_domain("wivrn");
std::locale loc = gen("");
messages_info.encoding = "UTF-8";
if (config->locale.empty())
{
#ifdef __ANDROID__
jni::klass java_util_Locale("java/util/Locale");
auto default_locale = java_util_Locale.call<jni::object<"java/util/Locale">>("getDefault");
jni::klass java_util_Locale("java/util/Locale");
auto default_locale = java_util_Locale.call<jni::object<"java/util/Locale">>("getDefault");
// if (auto language = default_locale.call<jni::string>("toString"))
if (auto language = default_locale.call<jni::string>("getLanguage"))
messages_info.language = language;
if (auto country = default_locale.call<jni::string>("getCountry"))
messages_info.country = country;
messages_info.encoding = "UTF-8";
// if (auto language = default_locale.call<jni::string>("toString"))
if (auto language = default_locale.call<jni::string>("getLanguage"))
messages_info.language = language;
if (auto country = default_locale.call<jni::string>("getCountry"))
messages_info.country = country;
#else
auto & facet = std::use_facet<boost::locale::info>(loc);
messages_info.language = facet.language();
messages_info.country = facet.country();
messages_info.encoding = "UTF-8";
auto & facet = std::use_facet<boost::locale::info>(loc);
messages_info.language = facet.language();
messages_info.country = facet.country();
#endif
}
else
{
auto pos = config->locale.find("_");
messages_info.language = config->locale.substr(0, pos);
if (pos != std::string::npos)
messages_info.country = config->locale.substr(pos + 1);
}
spdlog::info("Current locale: language {}, country {}, encoding {}", messages_info.language, messages_info.country, messages_info.encoding);
messages_info.paths.push_back("locale");
messages_info.domains.push_back(boost::locale::gnu_gettext::messages_info::domain("wivrn"));
messages_info.callback = [](const std::string & file_name, const std::string & encoding) {
std::vector<char> buffer;
try
{
asset file(file_name);
buffer.resize(file.size());
memcpy(buffer.data(), file.data(), file.size());
}
catch (...)
{
}
return buffer;
};
messages_info.callback = open_locale_file;
loc = std::locale(loc, boost::locale::gnu_gettext::create_messages_facet<char>(messages_info));
std::locale::global(loc);
@@ -1875,13 +1854,6 @@ void application::poll_events()
exit_requested = true;
}
break;
case XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED: {
if (auto * htc_body = std::get_if<xr::htc_body_tracker>(&body_tracker))
{
htc_body->update_active();
}
}
break;
case XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING:
break;
case XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED: {
+13 -81
View File
@@ -28,13 +28,11 @@
#include "utils/thread_safe.h"
#include "vk/vk_allocator.h"
#include "wifi_lock.h"
#include "xr/fb_body_tracker.h"
#include "xr/fb_face_tracker2.h"
#include "xr/hand_tracker.h"
#include "xr/htc_body_tracker.h"
#include "xr/htc_face_tracker.h"
#include "xr/pico_body_tracker.h"
#include "xr/pico_face_tracker.h"
#include "xr/actionset.h"
#include "xr/instance.h"
#include "xr/session.h"
#include "xr/swapchain.h"
#include "xr/system.h"
#include <atomic>
#include <boost/locale/generator.hpp>
#include <boost/locale/gnu_gettext.hpp>
@@ -125,12 +123,7 @@ class application : public singleton<application>
xr::actionset xr_actionset;
std::vector<std::tuple<XrAction, XrActionType, std::string>> actions;
bool hand_tracking_supported = false;
xr::hand_tracker left_hand;
xr::hand_tracker right_hand;
std::variant<std::monostate, xr::fb_face_tracker2, xr::htc_face_tracker, xr::pico_face_tracker> face_tracker;
std::variant<std::monostate, xr::fb_body_tracker, xr::htc_body_tracker, xr::pico_body_tracker> body_tracker;
std::vector<std::pair<XrPath, xr::space>> generic_trackers;
bool eye_gaze_supported = false;
@@ -140,7 +133,6 @@ class application : public singleton<application>
bool session_focused = false;
bool session_visible = false;
bool debug_extensions_found = false;
std::vector<std::string> xr_extensions;
std::vector<const char *> vk_device_extensions;
std::atomic<bool> exit_requested = false;
std::filesystem::path config_path;
@@ -270,16 +262,6 @@ public:
return std::make_pair(position, orientation);
}
static XrPath string_to_path(const std::string & s)
{
return instance().xr_instance.string_to_path(s);
}
static std::string path_to_string(XrPath p)
{
return instance().xr_instance.path_to_string(p);
}
void run();
static void push_scene(std::shared_ptr<scene>);
@@ -350,16 +332,6 @@ public:
// #endif
}
static XrTime now()
{
return instance().xr_instance.now();
}
static uint32_t queue_family_index()
{
return instance().vk_queue_family_index;
}
static thread_safe<vk::raii::Queue> & get_queue()
{
return instance().vk_queue;
@@ -375,26 +347,21 @@ public:
return intent;
}
static vk::raii::PhysicalDevice & get_physical_device()
{
return instance().vk_physical_device;
}
static const vk::PhysicalDeviceProperties & get_physical_device_properties()
{
return instance().physical_device_properties;
}
static vk::raii::Device & get_device()
{
return instance().vk_device;
}
static vk::raii::Instance & get_vulkan_instance()
{
return instance().vk_instance;
}
static xr::system & get_system()
{
return instance().xr_system_id;
}
static vk::raii::PipelineCache & get_pipeline_cache()
{
return instance().pipeline_cache;
@@ -415,21 +382,6 @@ public:
return instance().last_scene_cpu_time;
}
static bool get_hand_tracking_supported()
{
return instance().hand_tracking_supported;
}
static bool get_face_tracking_supported()
{
return !std::holds_alternative<std::monostate>(instance().face_tracker);
}
static bool get_body_tracking_supported()
{
return !std::holds_alternative<std::monostate>(instance().body_tracker);
}
static bool get_eye_gaze_supported()
{
return instance().eye_gaze_supported;
@@ -440,29 +392,9 @@ public:
return instance().openxr_post_processing_supported;
}
static xr::hand_tracker & get_left_hand()
static auto & get_generic_trackers()
{
return instance().left_hand;
}
static xr::hand_tracker & get_right_hand()
{
return instance().right_hand;
}
static auto & get_face_tracker()
{
return instance().face_tracker;
}
static auto & get_body_tracker()
{
return instance().body_tracker;
}
static const std::vector<std::string> & get_xr_extensions()
{
return instance().xr_extensions;
return instance().generic_trackers;
}
static const std::vector<const char *> & get_vk_device_extensions()
+18 -82
View File
@@ -82,6 +82,8 @@ bool configuration::check_feature(feature f) const
{
std::lock_guard lock(mutex);
auto & system = application::get_system();
auto it = features.find(f);
if (it == features.end())
return false;
@@ -94,7 +96,7 @@ bool configuration::check_feature(feature f) const
case feature::microphone:
break;
case feature::hand_tracking:
if (not application::get_hand_tracking_supported())
if (not system.hand_tracking_supported())
return false;
break;
case feature::eye_gaze:
@@ -102,50 +104,12 @@ bool configuration::check_feature(feature f) const
return false;
break;
case feature::face_tracking:
switch (guess_model())
{
case model::htc_vive_focus_3:
case model::htc_vive_focus_vision:
case model::htc_vive_xr_elite:
if (not std::holds_alternative<xr::htc_face_tracker>(application::get_face_tracker()))
return false;
break;
case model::pico_4_pro:
case model::pico_4_enterprise:
if (not std::holds_alternative<xr::pico_face_tracker>(application::get_face_tracker()))
return false;
break;
default:
if (not std::holds_alternative<xr::fb_face_tracker2>(application::get_face_tracker()))
return false;
break;
}
if (system.face_tracker_supported() == xr::face_tracker_type::none)
return false;
break;
case feature::body_tracking:
switch (guess_model())
{
case model::meta_quest_3:
case model::meta_quest_3s:
if (not std::holds_alternative<xr::fb_body_tracker>(application::get_body_tracker()))
return false;
break;
case model::htc_vive_focus_3:
case model::htc_vive_xr_elite:
case model::htc_vive_focus_vision:
if (not std::holds_alternative<xr::htc_body_tracker>(application::get_body_tracker()))
return false;
break;
case model::pico_neo_3:
case model::pico_4:
case model::pico_4s:
case model::pico_4_pro:
case model::pico_4_enterprise:
if (not std::holds_alternative<xr::pico_body_tracker>(application::get_body_tracker()))
return false;
break;
default:
break;
}
if (system.body_tracker_supported() == xr::body_tracker_type::none)
return false;
break;
}
}
@@ -181,8 +145,8 @@ void configuration::set_feature(feature f, bool state)
configuration::configuration(xr::system & system)
{
passthrough_enabled = system.passthrough_supported() == xr::system::passthrough_type::color;
features[feature::hand_tracking] = application::get_hand_tracking_supported();
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
features[feature::hand_tracking] = system.hand_tracking_supported();
try
{
simdjson::dom::parser parser;
@@ -214,8 +178,8 @@ configuration::configuration(xr::system & system)
if (auto val = root["resolution_scale"]; val.is_double())
resolution_scale = val.get_double();
if (auto val = root["sgsr"]; val.is_object())
parse_sgsr_options(val.get_object());
if (auto val = root["enable_stream_gui"]; val.is_bool())
enable_stream_gui = val.get_bool();
if (auto val = root["openxr_post_processing"]; val.is_object())
parse_openxr_post_processing_options(val.get_object());
@@ -240,7 +204,7 @@ configuration::configuration(xr::system & system)
features[i] = val.get_bool();
}
if (system.passthrough_supported() == xr::system::passthrough_type::no_passthrough)
if (system.passthrough_supported() == xr::passthrough_type::none)
passthrough_enabled = false;
if (auto val = root["override_foveation_enable"]; val.is_bool())
@@ -254,6 +218,9 @@ configuration::configuration(xr::system & system)
if (auto val = root["first_run"]; val.is_bool())
first_run = val.get_bool();
if (auto val = root["locale"]; val.is_string())
locale = val.get_string().value();
}
catch (std::exception & e)
{
@@ -264,31 +231,11 @@ configuration::configuration(xr::system & system)
preferred_refresh_rate.reset();
minimum_refresh_rate.reset();
resolution_scale = 1.4;
sgsr = {};
openxr_post_processing = {};
passthrough_enabled = system.passthrough_supported() == xr::system::passthrough_type::color;
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
}
}
void configuration::parse_sgsr_options(simdjson::simdjson_result<simdjson::dom::object> sgsr_root)
{
sgsr = {};
if (auto val = sgsr_root["enabled"]; val.is_bool())
sgsr.enabled = val.get_bool();
if (auto val = sgsr_root["upscaling_factor"]; val.is_double())
sgsr.upscaling_factor = val.get_double();
if (auto val = sgsr_root["use_edge_direction"]; val.is_bool())
sgsr.use_edge_direction = val.get_bool();
if (auto val = sgsr_root["edge_threshold"]; val.is_double())
sgsr.edge_threshold = val.get_double();
if (auto val = sgsr_root["edge_sharpness"]; val.is_double())
sgsr.edge_sharpness = val.get_double();
}
void configuration::parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> openxr_post_processing_root)
{
openxr_post_processing = {};
@@ -304,17 +251,6 @@ static std::ostream & operator<<(std::ostream & stream, feature f)
return stream << "\"" << magic_enum::enum_name(f) << "\"";
}
static std::ostream & write_sgsr(std::ofstream & stream, const configuration::sgsr_settings & sgsr)
{
stream << "{\"enabled\":" << std::boolalpha << sgsr.enabled;
stream << ",\"upscaling_factor\":" << sgsr.upscaling_factor;
stream << ",\"use_edge_direction\":" << std::boolalpha << sgsr.use_edge_direction;
stream << ",\"edge_threshold\":" << sgsr.edge_threshold;
stream << ",\"edge_sharpness\":" << sgsr.edge_sharpness;
stream << "}";
return stream;
}
static std::ostream & write_openxr_post_processing(std::ofstream & stream, const configuration::openxr_post_processing_settings & openxr_post_processing)
{
stream << "{\"super_sampling\":" << openxr_post_processing.super_sampling;
@@ -357,14 +293,13 @@ void configuration::save()
if (minimum_refresh_rate)
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
json << ",\"resolution_scale\":" << resolution_scale;
json << ",\"sgsr\":";
write_sgsr(json, sgsr);
json << ",\"openxr_post_processing\":";
write_openxr_post_processing(json, openxr_post_processing);
json << ",\"passthrough_enabled\":" << std::boolalpha << passthrough_enabled;
json << ",\"mic_unprocessed_audio\":" << std::boolalpha << mic_unprocessed_audio;
json << ",\"fb_lower_body\":" << std::boolalpha << fb_lower_body;
json << ",\"fb_hip\":" << std::boolalpha << fb_hip;
json << ",\"enable_stream_gui\":" << std::boolalpha << enable_stream_gui;
for (auto & [key, value]: features)
json << "," << key << ":" << std::boolalpha << value;
json << ",\"virtual_keyboard_layout\":" << json_string(virtual_keyboard_layout);
@@ -372,5 +307,6 @@ void configuration::save()
json << ",\"override_foveation_pitch\":" << override_foveation_pitch;
json << ",\"override_foveation_distance\":" << override_foveation_distance;
json << ",\"first_run\":" << std::boolalpha << first_run;
json << ",\"locale\":" << json_string(locale);
json << "}";
}
+3 -11
View File
@@ -56,16 +56,7 @@ public:
bool fb_lower_body = false;
bool fb_hip = true;
// Snapdragon Game Super Resolution
struct sgsr_settings
{
bool enabled = false;
float upscaling_factor = 1.5;
bool use_edge_direction = true;
float edge_threshold = 4.0;
float edge_sharpness = 2.0;
};
sgsr_settings sgsr{};
bool enable_stream_gui = true;
// XR_FB_composition_layer_settings extension flags
struct openxr_post_processing_settings
@@ -83,6 +74,8 @@ public:
bool first_run = true;
std::string locale;
bool check_feature(feature f) const;
void set_feature(feature f, bool state);
@@ -90,7 +83,6 @@ private:
mutable std::mutex mutex;
std::map<feature, bool> features;
void parse_sgsr_options(simdjson::simdjson_result<simdjson::dom::object> root);
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
public:
+8 -8
View File
@@ -18,9 +18,9 @@
*/
#include "shard_accumulator.h"
#include "application.h"
#include "scenes/stream.h"
#include "scenes/stream.h" // IWYU pragma: keep
#include "spdlog/spdlog.h"
#include "xr/instance.h"
namespace wivrn
{
@@ -63,10 +63,10 @@ static bool is_complete(const shard_set & shards)
return true;
}
std::optional<uint16_t> shard_set::insert(data_shard && shard)
std::optional<uint16_t> shard_set::insert(data_shard && shard, xr::instance & instance)
{
if (empty())
feedback.received_first_packet = application::now();
feedback.received_first_packet = instance.now();
auto idx = shard.shard_idx;
if (idx >= data.size())
@@ -121,12 +121,12 @@ void shard_accumulator::push_shard(video_stream_data_shard && shard)
}
else if (frame_diff == 0)
{
auto shard_idx = current.insert(std::move(shard));
auto shard_idx = current.insert(std::move(shard), instance);
try_submit_frame(shard_idx);
}
else if (frame_diff == 1)
{
next.insert(std::move(shard));
next.insert(std::move(shard), instance);
if (is_complete(next))
{
debug_why_not_sent(current);
@@ -191,7 +191,7 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx)
if (not frame_complete)
return;
current.feedback.received_last_packet = application::now();
current.feedback.received_last_packet = instance.now();
current.feedback.sent_to_decoder = current.feedback.received_last_packet;
data_shard::timing_info_t timing_info = data_shards.back()->timing_info.value_or(data_shard::timing_info_t{});
current.feedback.encode_begin = timing_info.encode_begin;
@@ -216,7 +216,7 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx)
void shard_accumulator::send_feedback(wivrn::from_headset::feedback & feedback)
{
if (not feedback.received_last_packet)
feedback.received_first_packet = application::now();
feedback.received_first_packet = instance.now();
auto scene = weak_scene.lock();
if (scene)
scene->send_feedback(feedback);
+26 -20
View File
@@ -19,27 +19,30 @@
#pragma once
#include <memory>
#include <vulkan/vulkan.hpp>
#ifdef __ANDROID__
#include "decoder/android/android_decoder.h"
using decoder_impl = ::wivrn::android::decoder;
#else
#include "decoder/ffmpeg/ffmpeg_decoder.h"
using decoder_impl = ::wivrn::ffmpeg::decoder;
#endif
#include "decoder.h"
#include "wivrn_packets.h"
#include <memory>
#include <optional>
#include <vector>
#include <vulkan/vulkan_raii.hpp>
namespace xr
{
class instance;
}
namespace scenes
{
class stream;
}
namespace wivrn
{
class shard_accumulator
{
std::shared_ptr<decoder_impl> decoder;
std::shared_ptr<decoder> decoder_;
public:
using data_shard = wivrn::to_headset::video_stream_data_shard;
@@ -50,7 +53,7 @@ public:
void reset(uint64_t frame_index);
bool empty() const;
std::optional<uint16_t> insert(data_shard &&);
std::optional<uint16_t> insert(data_shard &&, xr::instance & instance);
wivrn::from_headset::feedback feedback{};
@@ -70,19 +73,22 @@ private:
shard_set current;
shard_set next;
std::weak_ptr<scenes::stream> weak_scene;
xr::instance & instance;
public:
explicit shard_accumulator(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
xr::instance & instance,
const wivrn::to_headset::video_stream_description::item & description,
float fps,
std::weak_ptr<scenes::stream> scene,
uint8_t stream_index) :
decoder(std::make_shared<decoder_impl>(device, physical_device, description, fps, stream_index, scene, this)),
decoder_(decoder::make(device, physical_device, description, fps, stream_index, scene, this)),
current(stream_index),
next(stream_index),
weak_scene(scene)
weak_scene(scene),
instance(instance)
{
next.reset(1);
}
@@ -91,20 +97,20 @@ public:
auto & desc() const
{
return decoder->desc();
return decoder_->description;
}
vk::Sampler sampler()
{
return decoder->sampler();
return decoder_->sampler();
}
vk::Extent2D image_size()
const vk::Extent2D extent()
{
return decoder->image_size();
return decoder_->extent();
}
using blit_handle = decoder_impl::blit_handle;
using blit_handle = decoder::blit_handle;
private:
void try_submit_frame(std::optional<uint16_t> shard_idx);
+2 -3
View File
@@ -18,7 +18,6 @@
#pragma once
#include "application.h"
#include "utils/alignment.h"
#include "vk/allocation.h"
#include <fastgltf/tools.hpp>
@@ -115,10 +114,10 @@ public:
}
}
buffer_allocation copy_to_gpu()
buffer_allocation copy_to_gpu(vk::raii::Device & device)
{
buffer_allocation gpu_buffer{
application::get_device(),
device,
vk::BufferCreateInfo{
.size = bytes.size(),
.usage = usage},
+11 -4
View File
@@ -345,9 +345,9 @@ imgui_context::imgui_context(
ImGui_ImplVulkan_InitInfo init_info = {
.Instance = *application::get_vulkan_instance(),
.PhysicalDevice = *application::get_physical_device(),
.Device = *application::get_device(),
.QueueFamily = application::queue_family_index(),
.PhysicalDevice = *physical_device,
.Device = *device,
.QueueFamily = queue_family_index,
.Queue = *queue.get_unsafe(),
.RenderPass = *renderpass,
.MinImageCount = 2,
@@ -718,7 +718,7 @@ void imgui_context::new_frame(XrTime display_time)
ImPlot::SetCurrentContext(plot_context);
if (last_display_time)
io.DeltaTime = std::min((display_time - last_display_time) * 1e-9f, 0.0166f);
io.DeltaTime = std::clamp((display_time - last_display_time) * 1e-9f, 0.001f, 0.0166f);
last_display_time = display_time;
// Uses the window list from last frame
@@ -1099,6 +1099,13 @@ ImTextureID imgui_context::load_texture(const std::string & filename)
void imgui_context::free_texture(ImTextureID texture)
{
// Make sure we are done using the texture
std::vector<vk::Fence> fences;
for (auto & f: command_buffers)
fences.push_back(*f.fence);
if (auto result = device.waitForFences(fences, true, 1'000'000'000); result != vk::Result::eSuccess)
spdlog::error("vkWaitForfences: {}", vk::to_string(result));
textures.erase(texture);
}
+1 -1
View File
@@ -785,7 +785,7 @@ entt::registry scene_loader::operator()(const std::filesystem::path & gltf_path)
// Copy the staging buffer to the GPU
spdlog::debug("Uploading scene data ({} bytes) to GPU memory", staging_buffer.size());
auto buffer = std::make_shared<buffer_allocation>(staging_buffer.copy_to_gpu());
auto buffer = std::make_shared<buffer_allocation>(staging_buffer.copy_to_gpu(device));
for (auto & i: materials)
i->buffer = buffer;
+9 -31
View File
@@ -28,6 +28,7 @@
#include "vk/allocation.h"
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "vk/specialization_constants.h"
#include <boost/pfr/core.hpp>
#include <entt/entity/entity.hpp>
#include <entt/entt.hpp>
@@ -532,34 +533,11 @@ vk::raii::Pipeline scene_renderer::create_pipeline(const pipeline_info & info)
auto vertex_shader = load_shader(device, info.shader_name + ".vert");
auto fragment_shader = load_shader(device, info.shader_name + ".frag");
std::array specialization_constants_desc{
vk::SpecializationMapEntry{
.constantID = 0,
.offset = offsetof(pipeline_info, nb_texcoords),
.size = sizeof(int32_t),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = offsetof(pipeline_info, dithering),
.size = sizeof(VkBool32),
},
vk::SpecializationMapEntry{
.constantID = 2,
.offset = offsetof(pipeline_info, alpha_cutout),
.size = sizeof(VkBool32),
},
vk::SpecializationMapEntry{
.constantID = 3,
.offset = offsetof(pipeline_info, skinning),
.size = sizeof(VkBool32),
}};
vk::SpecializationInfo specialization{
.mapEntryCount = specialization_constants_desc.size(),
.pMapEntries = specialization_constants_desc.data(),
.dataSize = sizeof(pipeline_info),
.pData = &info,
};
auto specialization = make_specialization_constants(
int32_t(info.nb_texcoords),
VkBool32(info.dithering),
VkBool32(info.alpha_cutout),
VkBool32(info.skinning));
return vk::raii::Pipeline{
device,
@@ -570,14 +548,14 @@ vk::raii::Pipeline scene_renderer::create_pipeline(const pipeline_info & info)
.stage = vk::ShaderStageFlagBits::eVertex,
.module = *vertex_shader,
.pName = "main",
.pSpecializationInfo = &specialization,
.pSpecializationInfo = specialization,
},
vk::PipelineShaderStageCreateInfo{
.stage = vk::ShaderStageFlagBits::eFragment,
.module = *fragment_shader,
.pName = "main",
.pSpecializationInfo = &specialization,
.pSpecializationInfo = specialization,
},
},
@@ -794,7 +772,7 @@ void scene_renderer::update_material_descriptor_set(renderer::material & materia
device.updateDescriptorSets(write_ds, {});
}
static void print_scene_hierarchy(const entt::registry & scene, entt::entity root = entt::null, int level = 0)
[[maybe_unused]] static void print_scene_hierarchy(const entt::registry & scene, entt::entity root = entt::null, int level = 0)
{
if (level == 0)
spdlog::info("Node hierarchy:");
+32 -36
View File
@@ -139,46 +139,42 @@ text_rasterizer::text_rasterizer(vk::raii::Device & device, vk::raii::PhysicalDe
image_allocation text_rasterizer::create_image(vk::Extent2D size)
{
image_allocation alloc{device,
vk::ImageCreateInfo{
.imageType = vk::ImageType::e2D,
.format = text::format,
.extent = {
.width = size.width,
.height = size.height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 1,
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eTransferDst,
.sharingMode = vk::SharingMode::eExclusive,
.initialLayout = vk::ImageLayout::eUndefined,
},
VmaAllocationCreateInfo{
.flags = 0,
.usage = VMA_MEMORY_USAGE_AUTO,
}};
application::set_debug_reports_name<vk::Image>(alloc, "text_rasterizer image");
return alloc;
return {device,
vk::ImageCreateInfo{
.imageType = vk::ImageType::e2D,
.format = text::format,
.extent = {
.width = size.width,
.height = size.height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 1,
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eTransferDst,
.sharingMode = vk::SharingMode::eExclusive,
.initialLayout = vk::ImageLayout::eUndefined,
},
VmaAllocationCreateInfo{
.flags = 0,
.usage = VMA_MEMORY_USAGE_AUTO,
},
"text_rasterizer image"};
}
buffer_allocation text_rasterizer::create_buffer(size_t size)
{
buffer_allocation alloc{device,
vk::BufferCreateInfo{
.size = size,
.usage = vk::BufferUsageFlagBits::eTransferSrc,
},
VmaAllocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT,
.usage = VMA_MEMORY_USAGE_AUTO,
}};
application::set_debug_reports_name<vk::Buffer>(alloc, "text_rasterizer buffer");
return alloc;
return {device,
vk::BufferCreateInfo{
.size = size,
.usage = vk::BufferUsageFlagBits::eTransferSrc,
},
VmaAllocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT,
.usage = VMA_MEMORY_USAGE_AUTO,
},
"text_rasterizer buffer"};
}
text_rasterizer::~text_rasterizer()
+1 -3
View File
@@ -51,8 +51,6 @@ scene::scene(key, const meta & current_meta, std::span<const vk::Format> support
queue_family_index(application::instance().vk_queue_family_index),
current_meta(current_meta)
{
passthrough_supported = system.passthrough_supported();
swapchain_format = vk::Format::eUndefined;
spdlog::info("Supported swapchain formats:");
@@ -443,7 +441,7 @@ std::pair<entt::entity, components::node &> scene::load_gltf(const std::filesyst
node.layer_mask = layer_mask;
assert(renderer);
scene_loader loader(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
scene_loader loader(device, physical_device, queue, queue_family_index, renderer->get_default_material());
loader.add_prefab(world, loader(path), entity);
-1
View File
@@ -103,7 +103,6 @@ public:
protected:
vk::Format swapchain_format;
vk::Format depth_format;
xr::system::passthrough_type passthrough_supported;
bool composition_layer_depth_test_supported;
bool composition_layer_color_scale_bias_supported;
+135 -119
View File
@@ -383,9 +383,18 @@ void scenes::lobby::connect(const configuration::server_data & data)
data.manual);
}
std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(const std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & joints)
std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints)
{
const auto & palm = joints[XR_HAND_JOINT_PALM_EXT].first;
if (recentering_context and std::get<0>(*recentering_context) != space)
return std::nullopt;
if (not joints)
{
recentering_context.reset();
return std::nullopt;
}
const auto & palm = (*joints)[XR_HAND_JOINT_PALM_EXT].first;
const auto & o = palm.pose.orientation;
const auto & p = palm.pose.position;
glm::quat q{o.w, o.x, o.y, o.z};
@@ -393,102 +402,130 @@ std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(const std::array<
if (glm::dot(q * glm::vec3(0, 1, 0), glm::vec3(0, -1, 0)) > constants::lobby::recenter_cosangle_min)
{
recentering_context.emplace(space, glm::vec3{}, 0);
return v + glm::vec3(0, constants::lobby::recenter_distance_up, 0) + q * glm::vec3(0, 0, -constants::lobby::recenter_distance_front);
}
recentering_context.reset();
return std::nullopt;
}
std::optional<glm::vec3> scenes::lobby::check_recenter_action(XrTime predicted_display_time, glm::vec3 head_position)
{
std::optional<std::pair<glm::vec3, glm::quat>> aim;
glm::vec3 offset_position;
glm::quat offset_orientation;
xr::spaces controller;
glm::vec3 recenter_position;
float recenter_distance;
if (application::read_action_bool(recenter_left_action).value_or(std::pair{0, false}).second)
if (recentering_context)
{
aim = application::locate_controller(application::space(xr::spaces::aim_left), application::space(xr::spaces::world), predicted_display_time);
std::tie(offset_position, offset_orientation) = input->offset[xr::spaces::aim_left];
}
if (application::read_action_bool(recenter_right_action).value_or(std::pair{0, false}).second)
{
aim = application::locate_controller(application::space(xr::spaces::aim_right), application::space(xr::spaces::world), predicted_display_time);
std::tie(offset_position, offset_orientation) = input->offset[xr::spaces::aim_right];
}
if (aim)
{
// Handle controller offset
aim->first = aim->first + glm::mat3_cast(aim->second * offset_orientation) * offset_position;
aim->second = aim->second * offset_orientation;
if (not gui_recenter_position or not gui_recenter_distance)
controller = std::get<0>(*recentering_context);
bool state;
switch (controller)
{
// First frame where the recenter action is active
imgui_context::controller_state state{
.active = true,
.aim_position = aim->first,
.aim_orientation = aim->second,
};
case xr::spaces::aim_left:
state = application::read_action_bool(recenter_left_action).value_or(std::pair{0, false}).second;
break;
imgui_ctx->compute_pointer_position(state);
case xr::spaces::aim_right:
state = application::read_action_bool(recenter_right_action).value_or(std::pair{0, false}).second;
break;
if (state.pointer_position) // TODO: check that the pointer is inside an imgui window
{
auto M = glm::mat3_cast(imgui_ctx->layers()[0].orientation);
default:
return std::nullopt;
}
// Pointer position in world
glm::vec3 world_pointer_position = imgui_ctx->rw_from_vp(*state.pointer_position);
if (not state)
{
recentering_context.reset();
return std::nullopt;
}
}
else if (auto state = application::read_action_bool(recenter_left_action); state and state->second)
controller = xr::spaces::aim_left;
else if (auto state = application::read_action_bool(recenter_right_action); state and state->second)
controller = xr::spaces::aim_right;
else
return std::nullopt;
// Pointer position in GUI
gui_recenter_position = glm::transpose(M) * (world_pointer_position - imgui_ctx->layers()[0].position);
gui_recenter_distance = glm::length(state.aim_position - world_pointer_position);
}
else
{
gui_recenter_position = glm::vec3(0, 0, 0);
gui_recenter_distance = constants::lobby::recenter_action_distance;
}
auto aim = application::locate_controller(application::space(controller), application::space(xr::spaces::world), predicted_display_time);
if (not aim)
{
// The controller cannot be located
recentering_context.reset();
return std::nullopt;
}
// Handle controller offset
auto [offset_position, offset_orientation] = input->offset[controller];
aim->first = aim->first + glm::mat3_cast(aim->second * offset_orientation) * offset_position;
aim->second = aim->second * offset_orientation;
if (not recentering_context)
{
// First frame of recentering
imgui_context::controller_state state{
.active = true,
.aim_position = aim->first,
.aim_orientation = aim->second,
};
imgui_ctx->compute_pointer_position(state);
if (state.pointer_position) // TODO: check that the pointer is inside an imgui window
{
auto M = glm::mat3_cast(imgui_ctx->layers()[0].orientation);
// Pointer position in world
glm::vec3 world_pointer_position = imgui_ctx->rw_from_vp(*state.pointer_position);
// Pointer position in GUI
recenter_position = glm::transpose(M) * (world_pointer_position - imgui_ctx->layers()[0].position);
recenter_distance = glm::length(state.aim_position - world_pointer_position);
}
else
{
// Subsequent frames: find the GUI position that gives the correct world pointer position
glm::vec3 controller_direction = -glm::column(glm::mat3_cast(aim->second), 2);
glm::vec3 wanted_world_pointer_position = aim->first + controller_direction * *gui_recenter_distance;
// I'm sure there's an analytical solution but I can't be bothered to write it so
// let's use a gradient descent instead
auto f = [&](glm::vec3 new_gui_position) {
auto q = compute_gui_orientation(head_position, new_gui_position);
auto M = glm::mat3_cast(q); // plane-to-world transform
glm::vec3 world_pointer_position = new_gui_position + M * *gui_recenter_position;
return world_pointer_position - wanted_world_pointer_position;
};
// One step is usually enough, the solution will continuously improve in the next frames
glm::vec3 gui_position = imgui_ctx->layers()[0].position;
float eps = 0.01;
glm::vec3 obj = f(gui_position);
glm::vec3 obj_dx = (f(gui_position + glm::vec3(eps, 0, 0)) - obj) / eps;
glm::vec3 obj_dy = (f(gui_position + glm::vec3(0, eps, 0)) - obj) / eps;
glm::vec3 obj_dz = (f(gui_position + glm::vec3(0, 0, eps)) - obj) / eps;
glm::mat3 jacobian{obj_dx, obj_dy, obj_dz};
gui_position -= glm::inverse(jacobian) * obj;
return gui_position;
// Use the center of the GUI if the controller points outside of the GUI
recenter_position = glm::vec3(0, 0, 0);
recenter_distance = constants::lobby::recenter_action_distance;
}
recentering_context.emplace(controller, recenter_position, recenter_distance);
return std::nullopt;
}
else
{
gui_recenter_position.reset();
}
// Subsequent frames: find the GUI position that gives the correct world pointer position
std::tie(controller, recenter_position, recenter_distance) = *recentering_context;
return std::nullopt;
glm::vec3 controller_direction = -glm::column(glm::mat3_cast(aim->second), 2);
glm::vec3 wanted_world_pointer_position = aim->first + controller_direction * recenter_distance;
// I'm sure there's an analytical solution but I can't be bothered to write it so
// let's use a gradient descent instead
auto f = [&](glm::vec3 new_gui_position) {
auto q = compute_gui_orientation(head_position, new_gui_position);
auto M = glm::mat3_cast(q); // plane-to-world transform
glm::vec3 world_pointer_position = new_gui_position + M * recenter_position;
return world_pointer_position - wanted_world_pointer_position;
};
// One step is usually enough, the solution will continuously improve in the next frames
glm::vec3 gui_position = imgui_ctx->layers()[0].position;
float eps = 0.01;
glm::vec3 obj = f(gui_position);
glm::vec3 obj_dx = (f(gui_position + glm::vec3(eps, 0, 0)) - obj) / eps;
glm::vec3 obj_dy = (f(gui_position + glm::vec3(0, eps, 0)) - obj) / eps;
glm::vec3 obj_dz = (f(gui_position + glm::vec3(0, 0, eps)) - obj) / eps;
glm::mat3 jacobian{obj_dx, obj_dy, obj_dz};
gui_position -= glm::inverse(jacobian) * obj;
return gui_position;
}
}
std::optional<glm::vec3> scenes::lobby::check_recenter_gui(glm::vec3 head_position, glm::quat head_orientation)
@@ -612,26 +649,24 @@ void scenes::lobby::render(const XrFrameState & frame_state)
if (!new_gui_position and head_position)
new_gui_position = check_recenter_action(frame_state.predictedDisplayTime, head_position->first);
if (application::get_hand_tracking_supported())
if (left_hand and right_hand)
{
auto left = application::get_left_hand().locate(world_space, frame_state.predictedDisplayTime);
auto right = application::get_right_hand().locate(world_space, frame_state.predictedDisplayTime);
auto left = left_hand->locate(world_space, frame_state.predictedDisplayTime);
auto right = right_hand->locate(world_space, frame_state.predictedDisplayTime);
hand_model::apply(world, left, right);
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
{
hide_left_controller = true;
if (!new_gui_position)
new_gui_position = check_recenter_gesture(*left);
}
if (right and xr::hand_tracker::check_flags(*right, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
{
hide_right_controller = true;
if (!new_gui_position)
new_gui_position = check_recenter_gesture(*right);
}
if (not new_gui_position)
new_gui_position = check_recenter_gesture(xr::spaces::palm_left, left);
if (not new_gui_position)
new_gui_position = check_recenter_gesture(xr::spaces::palm_right, right);
}
if (head_position && new_gui_position)
@@ -763,7 +798,7 @@ void scenes::lobby::on_focused()
// assert(std::ranges::all_of(views, [height](const XrViewConfigurationView & view) { return view.recommendedImageRectHeight == height; }));
renderer.emplace(device, physical_device, queue, commandpool);
loader.emplace(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
loader.emplace(device, physical_device, queue, queue_family_index, renderer->get_default_material());
lobby_entity = load_gltf("ground.gltf", layer_lobby).first;
@@ -800,12 +835,6 @@ void scenes::lobby::on_focused()
xyz_axes_right_controller = load_gltf("xyz-arrows.glb", layer_controllers).first;
#endif
if (application::get_hand_tracking_supported())
{
hand_model::add_hand(*this, XR_HAND_LEFT_EXT, "left-hand.glb", layer_controllers);
hand_model::add_hand(*this, XR_HAND_RIGHT_EXT, "right-hand.glb", layer_controllers);
}
recenter_left_action = get_action("recenter_left").first;
recenter_right_action = get_action("recenter_right").first;
@@ -827,21 +856,19 @@ void scenes::lobby::on_focused()
.haptic_output = get_action("right_haptic").first,
},
};
if (auto & hand = application::get_left_hand())
if (system.hand_tracking_supported())
{
imgui_inputs.push_back(
{
.hand = &hand,
});
}
if (auto & hand = application::get_right_hand())
{
imgui_inputs.push_back(
{
.hand = &hand,
});
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
hand_model::add_hand(*this, XR_HAND_LEFT_EXT, "left-hand.glb", layer_controllers);
hand_model::add_hand(*this, XR_HAND_RIGHT_EXT, "right-hand.glb", layer_controllers);
imgui_inputs.push_back({.hand = &*left_hand});
imgui_inputs.push_back({.hand = &*right_hand});
}
face_tracker = xr::make_face_tracker(instance, system, session);
// 0.4mm / pixel
std::vector<imgui_context::viewport> vps{
{
@@ -882,21 +909,7 @@ void scenes::lobby::on_focused()
swapchain_imgui = xr::swapchain(session, device, swapchain_format, 3000, 1300);
imgui_ctx.emplace(physical_device, device, queue_family_index, queue, imgui_inputs, swapchain_imgui, vps);
std::string image;
/* Could be used for more patriotics logos
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
auto tm = std::localtime(&t);
switch (tm->tm_mon)
{
default:
image = "wivrn";
break;
}
*/
image = "wivrn";
try
{
@@ -942,6 +955,9 @@ void scenes::lobby::on_unfocused()
world.clear(); // Must be cleared before the renderer so that the descriptor sets are freed before their pools
input.reset();
left_hand.reset();
right_hand.reset();
face_tracker.emplace<std::monostate>();
loader.reset();
renderer.reset();
+14 -4
View File
@@ -29,7 +29,9 @@
#include "wivrn_config.h"
#include "wivrn_discover.h"
#include "wivrn_packets.h"
#include "xr/face_tracker.h"
#include <vulkan/vulkan_raii.hpp>
#include <openxr/openxr.h>
#include <optional>
#include <vector>
@@ -65,6 +67,11 @@ class lobby : public scene_impl<lobby>
std::optional<imgui_context> imgui_ctx;
std::optional<xr::hand_tracker> left_hand;
std::optional<xr::hand_tracker> right_hand;
xr::face_tracker face_tracker;
std::string selected_item;
std::unique_ptr<asset> license;
@@ -94,8 +101,10 @@ class lobby : public scene_impl<lobby>
XrAction recenter_left_action = XR_NULL_HANDLE;
XrAction recenter_right_action = XR_NULL_HANDLE;
std::optional<glm::vec3> gui_recenter_position;
std::optional<float> gui_recenter_distance;
// std::optional<glm::vec3> gui_recenter_position;
// std::optional<float> gui_recenter_distance;
// Which controller is used for recentering, position of the pointed point in the GUI, in GUI axes, and distance between the controller and the pointed point during recentering
std::optional<std::tuple<xr::spaces, glm::vec3, float>> recentering_context;
bool recenter_gui = true;
void move_gui(glm::vec3 head_position, glm::vec3 new_gui_position);
@@ -120,6 +129,7 @@ class lobby : public scene_impl<lobby>
ImTextureID about_picture;
ImTextureID default_icon;
std::unordered_map<std::string, ImTextureID> app_icons;
std::optional<XrTime> timestamp_start_application;
virtual_keyboard keyboard;
@@ -136,7 +146,7 @@ class lobby : public scene_impl<lobby>
void draw_features_status(XrTime predicted_display_time);
void gui_connecting(locked_notifiable<pin_request_data> & request);
void gui_enter_pin(locked_notifiable<pin_request_data> & request);
void gui_connected();
void gui_connected(XrTime predicted_display_time);
void gui_server_list();
void gui_new_server();
void gui_settings();
@@ -152,7 +162,7 @@ class lobby : public scene_impl<lobby>
void connect(const configuration::server_data & data);
std::unique_ptr<wivrn_session> connect_to_session(wivrn_discover::service service, bool manual_connection);
std::optional<glm::vec3> check_recenter_gesture(const std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & joints);
std::optional<glm::vec3> check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints);
std::optional<glm::vec3> check_recenter_action(XrTime predicted_display_time, glm::vec3 head_position);
std::optional<glm::vec3> check_recenter_gui(glm::vec3 head_position, glm::quat head_orientation);
+68 -34
View File
@@ -35,11 +35,13 @@
#include "utils/overloaded.h"
#include "utils/ranges.h"
#include "version.h"
#include "xr/body_tracker.h"
#include <algorithm>
#include <cassert>
#include <chrono>
#include <filesystem>
#include <glm/gtc/quaternion.hpp>
#include <imspinner.h>
#include <ranges>
#include <spdlog/fmt/fmt.h>
#include <string>
@@ -246,6 +248,7 @@ void scenes::lobby::gui_connecting(locked_notifiable<pin_request_data> & pin_req
if (next_scene)
{
current_tab = tab::connected;
timestamp_start_application.reset();
ImGui::CloseCurrentPopup();
return;
}
@@ -376,7 +379,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable<pin_request_data> & pin_requ
imgui_ctx->vibrate_on_hover();
}
void scenes::lobby::gui_connected()
void scenes::lobby::gui_connected(XrTime predicted_display_time)
{
if (not next_scene)
{
@@ -401,14 +404,17 @@ void scenes::lobby::gui_connected()
auto apps = next_scene->get_applications();
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {20, 20});
if (apps->applications.empty())
if (apps->empty())
{
CenterTextHV(_("Start an application on the server to start streaming."));
}
else
{
bool app_starting = timestamp_start_application and (predicted_display_time - *timestamp_start_application < 10'000'000'000);
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 0});
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, disconnect_size.y + 80), 0);
ImGui::BeginDisabled(app_starting);
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, disconnect_size.y + 80), 0, app_starting ? ImGuiWindowFlags_NoScrollWithMouse : 0);
ImGui::Indent(20);
if (server_name.empty())
@@ -427,7 +433,7 @@ void scenes::lobby::gui_connected()
ImGui::Indent((usable_window_width - icon_line_width) / 2);
auto t0 = std::chrono::steady_clock::now();
for (const auto [index, app]: utils::enumerate(apps->applications))
for (const auto [index, app]: utils::enumerate(*apps))
{
ImTextureID texture = [&]() -> ImTextureID {
if (app.image.empty())
@@ -458,8 +464,11 @@ void scenes::lobby::gui_connected()
}();
ImGui::PushStyleColor(ImGuiCol_Button, 0);
if (icon(app.name + "##" + app.id, texture, {256, 256}, 0, {icon_width, 0}))
if (icon(app.name + "##" + app.id, texture, {256, 256}, ImGuiButtonFlags_PressedOnClickRelease, {icon_width, 0}))
{
timestamp_start_application = predicted_display_time;
next_scene->start_application(app.id);
}
imgui_ctx->vibrate_on_hover();
ImGui::PopStyleColor(); // ImGuiCol_Button
@@ -471,7 +480,7 @@ void scenes::lobby::gui_connected()
std::vector<std::pair<std::string, ImTextureID>> to_be_removed;
for (const auto & [app_id, app_icon]: app_icons)
{
if (not std::ranges::contains(apps->applications, app_id, &to_headset::application_list::application::id))
if (not std::ranges::contains(*apps, app_id, &scenes::stream::app::id))
to_be_removed.emplace_back(app_id, app_icon);
}
for (const auto & [app_id, app_icon]: to_be_removed)
@@ -482,12 +491,26 @@ void scenes::lobby::gui_connected()
ScrollWhenDragging();
ImGui::EndChild();
ImGui::EndDisabled();
if (app_starting)
{
ImGui::SetCursorPos(ImGui::GetWindowSize() / 2 - ImVec2{200, 200} - ImGui::GetStyle().FramePadding);
ImSpinner::SpinnerAng("App starting spinner",
200, // Radius
40, // Thickness
ImColor{1.f, 1.f, 1.f, 1.f}, // Colour
ImColor{1.f, 1.f, 1.f, 0.f}, // Background
6, // Velocity
0.75f * 2 * M_PI // Angle
);
}
ImGui::PopStyleVar(); // ImGuiStyleVar_WindowPadding
}
ImGui::PopStyleVar();
ImGui::SetCursorPosX(ImGui::GetWindowSize().x - disconnect_size.x - 50);
ImGui::SetCursorPosY(ImGui::GetWindowSize().y - disconnect_size.y - 50);
ImGui::SetCursorPos(ImGui::GetWindowSize() - disconnect_size - ImVec2{50, 50});
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
@@ -905,7 +928,7 @@ void scenes::lobby::gui_settings()
ImGui::EndDisabled();
}
{
ImGui::BeginDisabled(not application::get_hand_tracking_supported());
ImGui::BeginDisabled(not system.hand_tracking_supported());
bool enabled = config.check_feature(feature::hand_tracking);
if (ImGui::Checkbox(_S("Enable hand tracking"), &enabled))
{
@@ -929,7 +952,7 @@ void scenes::lobby::gui_settings()
ImGui::EndDisabled();
}
{
ImGui::BeginDisabled(not application::get_face_tracking_supported());
ImGui::BeginDisabled(std::holds_alternative<std::monostate>(face_tracker));
bool enabled = config.check_feature(feature::face_tracking);
if (ImGui::Checkbox(_S("Enable face tracking"), &enabled))
{
@@ -941,8 +964,9 @@ void scenes::lobby::gui_settings()
imgui_ctx->vibrate_on_hover();
}
auto body_tracker = system.body_tracker_supported();
{
ImGui::BeginDisabled(not application::get_body_tracking_supported());
ImGui::BeginDisabled(body_tracker == xr::body_tracker_type::none);
bool enabled = config.check_feature(feature::body_tracking);
if (ImGui::Checkbox(_S("Enable body tracking"), &enabled))
{
@@ -957,19 +981,14 @@ void scenes::lobby::gui_settings()
}
else
{
std::visit(utils::overloaded{
[](auto &) {},
[this](xr::fb_body_tracker &) {
imgui_ctx->tooltip(_("Requires 'Hand and body tracking' to be enabled in the Quest movement tracking settings,\notherwise body data will be guessed from controller and headset positions"));
},
},
application::get_body_tracker());
if (body_tracker == xr::body_tracker_type::fb)
imgui_ctx->tooltip(_("Requires 'Hand and body tracking' to be enabled in the Quest movement tracking settings,\notherwise body data will be guessed from controller and headset positions"));
}
}
imgui_ctx->vibrate_on_hover();
}
if (std::holds_alternative<xr::fb_body_tracker>(application::get_body_tracker()))
if (body_tracker == xr::body_tracker_type::fb)
{
ImGui::BeginDisabled(not config.check_feature(feature::body_tracking));
ImGui::Indent();
@@ -995,7 +1014,7 @@ void scenes::lobby::gui_settings()
ImGui::EndDisabled();
}
ImGui::BeginDisabled(passthrough_supported == xr::system::passthrough_type::no_passthrough);
ImGui::BeginDisabled(system.passthrough_supported() == xr::passthrough_type::none);
if (ImGui::Checkbox(_S("Enable video passthrough in lobby"), &config.passthrough_enabled))
{
setup_passthrough();
@@ -1006,6 +1025,13 @@ void scenes::lobby::gui_settings()
imgui_ctx->tooltip(_("This feature is not supported by your headset"));
ImGui::EndDisabled();
{
ImGui::Checkbox(_S("Enable in-stream window"), &config.enable_stream_gui);
imgui_ctx->vibrate_on_hover();
if (ImGui::IsItemHovered())
imgui_ctx->tooltip(_("Enables the configuration window to be shown while the game is streaming.\nIf enabled, the window is activated by pressing both thumbsticks."));
}
ImGui::PopStyleVar(); // ImGuiStyleVar_ItemSpacing
}
@@ -1237,12 +1263,12 @@ void scenes::lobby::gui_first_run()
item{
.f = feature::face_tracking,
.text = _S("Enable face tracking?"),
.supported = application::get_face_tracking_supported(),
.supported = not std::holds_alternative<std::monostate>(face_tracker),
},
item{
.f = feature::body_tracking,
.text = _S("Enable body tracking?"),
.supported = application::get_body_tracking_supported(),
.supported = system.body_tracker_supported() != xr::body_tracker_type::none,
},
};
@@ -1572,11 +1598,22 @@ static auto face_weights()
return res;
}
static const char * get_face_icon(XrTime predicted_display_time)
static const char * get_face_icon(XrTime predicted_display_time, xr::face_tracker & face_tracker)
{
static const auto w = face_weights();
wivrn::from_headset::tracking::fb_face2 expression;
std::get<xr::fb_face_tracker2>(application::get_face_tracker()).get_weights(predicted_display_time, expression);
const char * result = nullptr;
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](xr::htc_face_tracker &) { result = ICON_FA_FACE_SMILE_WINK; },
[&](auto & ft) {
ft.get_weights(predicted_display_time, expression);
},
},
face_tracker);
if (result)
return result;
if (not expression.is_valid)
return ICON_FA_FACE_MEH;
@@ -1619,7 +1656,7 @@ void scenes::lobby::draw_features_status(XrTime predicted_display_time)
.icon_disabled = ICON_FA_MICROPHONE_SLASH,
});
if (application::get_hand_tracking_supported())
if (system.hand_tracking_supported())
{
items.push_back({
.f = feature::hand_tracking,
@@ -1640,21 +1677,18 @@ void scenes::lobby::draw_features_status(XrTime predicted_display_time)
});
}
if (application::get_face_tracking_supported())
if (not std::holds_alternative<std::monostate>(face_tracker))
{
const char * icon_enabled = std::holds_alternative<xr::fb_face_tracker2>(application::get_face_tracker())
? get_face_icon(predicted_display_time)
: ICON_FA_FACE_KISS_WINK_HEART;
items.push_back({
.f = feature::face_tracking,
.tooltip_enabled = _("Face tracking is enabled"),
.tooltip_disabled = _("Face tracking is disabled"),
.icon_enabled = icon_enabled,
.icon_enabled = get_face_icon(predicted_display_time, face_tracker),
.icon_disabled = ICON_FA_FACE_MEH_BLANK,
});
}
if (application::get_body_tracking_supported())
if (system.body_tracker_supported() != xr::body_tracker_type::none)
{
items.push_back({
.f = feature::body_tracking,
@@ -1728,7 +1762,7 @@ void scenes::lobby::draw_features_status(XrTime predicted_display_time)
if (*status.charge > 0.995)
icon_nr = 5;
else
icon_nr = application::now() / 500'000'000 % 5;
icon_nr = instance.now() / 500'000'000 % 5;
}
else
icon_nr = std::round((*status.charge) * 4);
@@ -1845,7 +1879,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> scenes::lobby::draw_gui(XrTi
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
ImGui::Begin("WiVRn", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
gui_connected();
gui_connected(predicted_display_time);
ImGui::End();
ImGui::PopStyleVar(3); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding, ImGuiStyleVar_FramePadding
}
@@ -1957,7 +1991,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> scenes::lobby::draw_gui(XrTi
if (not is_gui_visible(*imgui_ctx, predicted_display_time))
{
if (application::get_hand_tracking_supported())
if (system.hand_tracking_supported())
display_recentering_tip(*imgui_ctx, _("Press the grip button or put your palm up\nto move the main window"));
else
display_recentering_tip(*imgui_ctx, _("Press the grip button to move the main window"));
+95 -389
View File
@@ -17,11 +17,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "constants.h"
#include "utils/overloaded.h"
#include "xr/fb_body_tracker.h"
#include "xr/body_tracker.h"
#include "xr/face_tracker.h"
#include "xr/fb_face_tracker2.h"
#include "xr/htc_body_tracker.h"
#include "xr/pico_body_tracker.h"
#include "xr/space.h"
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp>
@@ -40,8 +38,6 @@
#include "utils/contains.h"
#include "utils/named_thread.h"
#include "utils/ranges.h"
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "wivrn_packets.h"
#include <algorithm>
#include <mutex>
@@ -49,6 +45,11 @@
#include <thread>
#include <vulkan/vulkan_raii.hpp>
#include "wivrn_config.h"
#if WIVRN_FEATURE_RENDERDOC
#include "vk/renderdoc.h"
#endif
using namespace wivrn;
// clang-format off
@@ -151,7 +152,8 @@ static const std::array supported_depth_formats{
};
scenes::stream::stream() :
scene_impl<stream>(supported_color_formats, supported_depth_formats)
scene_impl<stream>(supported_color_formats, supported_depth_formats),
blitters{blitter(device, 0), blitter(device, 1)}
{
}
@@ -189,7 +191,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
self->network_session = std::move(network_session);
self->network_session->send_control([&]() {
from_headset::headset_info_packet info{};
from_headset::headset_info_packet info{
.language = application::get_messages_info().language,
.country = application::get_messages_info().country,
.variant = application::get_messages_info().variant,
};
auto view = self->system.view_configuration_views(self->viewconfig)[0];
view = override_view(view, guess_model());
@@ -251,46 +257,49 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (config.check_feature(feature::face_tracking))
{
info.face_tracking = std::visit(utils::overloaded{
[](std::monostate &) {
return from_headset::face_type::none;
},
[](xr::fb_face_tracker2 &) {
return from_headset::face_type::fb2;
},
[](xr::htc_face_tracker &) {
return from_headset::face_type::htc;
},
[](xr::pico_face_tracker &) {
return from_headset::face_type::fb2;
},
},
application::get_face_tracker());
switch (self->system.face_tracker_supported())
{
case xr::face_tracker_type::none:
info.face_tracking = from_headset::face_type::none;
break;
case xr::face_tracker_type::fb:
case xr::face_tracker_type::pico:
info.face_tracking = from_headset::face_type::fb2;
break;
case xr::face_tracker_type::htc:
info.face_tracking = from_headset::face_type::htc;
break;
}
}
info.num_generic_trackers = 0;
if (config.check_feature(feature::body_tracking))
{
info.num_generic_trackers = std::visit(utils::overloaded{
[&](std::monostate &) {
return size_t(0);
},
[&](auto & b) {
return b.count();
},
},
application::get_body_tracker());
switch (self->system.body_tracker_supported())
{
case xr::body_tracker_type::none:
break;
case xr::body_tracker_type::fb:
info.num_generic_trackers = xr::fb_body_tracker::get_whitelisted_joints(config.fb_lower_body, config.fb_hip).size();
break;
case xr::body_tracker_type::htc:
info.num_generic_trackers = application::get_generic_trackers().size();
break;
case xr::body_tracker_type::pico:
info.num_generic_trackers = xr::pico_body_tracker::joint_whitelist.size();
break;
}
}
info.palm_pose = application::space(xr::spaces::palm_left) or application::space(xr::spaces::palm_right);
info.passthrough = self->system.passthrough_supported() != xr::system::passthrough_type::no_passthrough;
info.passthrough = self->system.passthrough_supported() != xr::passthrough_type::none;
info.system_name = std::string(self->system.properties().systemName);
audio::get_audio_description(info);
if (not(config.check_feature(feature::microphone)))
info.microphone = {};
info.supported_codecs = decoder_impl::supported_codecs();
info.supported_codecs = decoder::supported_codecs();
return info;
}());
@@ -311,15 +320,6 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
}
}
{
const auto & info = application::get_messages_info();
self->network_session->send_control(from_headset::get_application_list{
.language = info.language,
.country = info.country,
.variant = info.variant,
});
}
{
const auto & config = application::get_config();
self->override_foveation_enable = config.override_foveation_enable;
@@ -363,7 +363,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
{
self->haptics_actions.emplace(id, haptics_action{
.action = action.first,
.path = application::string_to_path(path),
.path = self->instance.string_to_path(path),
});
}
}
@@ -394,7 +394,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
void scenes::stream::on_focused()
{
gui_status_last_change = application::now();
gui_status_last_change = instance.now();
auto views = system.view_configuration_views(viewconfig);
// stream_view = override_view(views[0], guess_model());
@@ -402,7 +402,7 @@ void scenes::stream::on_focused()
height = views[0].recommendedImageRectHeight;
renderer.emplace(device, physical_device, queue, commandpool);
loader.emplace(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
loader.emplace(device, physical_device, queue, queue_family_index, renderer->get_default_material());
std::string profile = controller_name();
input.emplace(
@@ -470,8 +470,11 @@ void scenes::stream::on_focused()
swapchain_imgui,
std::vector{vp});
plots_toggle_1 = get_action("plots_toggle_1").first;
plots_toggle_2 = get_action("plots_toggle_2").first;
if (application::get_config().enable_stream_gui)
{
plots_toggle_1 = get_action("plots_toggle_1").first;
plots_toggle_2 = get_action("plots_toggle_2").first;
}
recenter_left = get_action("recenter_left").first;
recenter_right = get_action("recenter_right").first;
foveation_pitch = get_action("foveation_pitch").first;
@@ -494,6 +497,8 @@ void scenes::stream::on_unfocused()
loader.reset();
renderer.reset();
clear_swapchains();
left_hand.reset();
right_hand.reset();
imgui_ctx.reset();
swapchain_imgui = xr::swapchain();
@@ -524,16 +529,16 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
{
if (decoder != decoders[stream].decoder.get())
return;
handle->feedback.received_from_decoder = application::now();
handle->feedback.received_from_decoder = instance.now();
std::swap(handle, decoders[stream].latest_frames[handle->feedback.frame_index % decoders[stream].latest_frames.size()]);
}
if (state_ != state::streaming and std::ranges::all_of(decoders, [](accumulator_images & i) {
return i.alpha() or not i.frames().empty();
return i.alpha() or not i.empty();
}))
{
state_ = state::streaming;
spdlog::info("Stream scene ready at t={}", application::now());
spdlog::info("Stream scene ready at t={}", instance.now());
}
}
@@ -548,15 +553,14 @@ bool scenes::stream::accumulator_images::alpha() const
return decoder->desc().channels == wivrn::to_headset::video_stream_description::channels_t::alpha;
}
std::vector<uint64_t> scenes::stream::accumulator_images::frames() const
bool scenes::stream::accumulator_images::empty() const
{
std::vector<uint64_t> result;
for (const auto & frame: latest_frames)
{
if (frame)
result.push_back(frame->feedback.frame_index);
return false;
}
return result;
return true;
}
std::vector<std::shared_ptr<shard_accumulator::blit_handle>> scenes::stream::common_frame(XrTime display_time)
@@ -766,138 +770,17 @@ void scenes::stream::render(const XrFrameState & frame_state)
}
if (state_ == state::stalled)
application::pop_scene();
assert(swapchain);
for (auto & i: decoders)
{
if (auto sampler = i.decoder->sampler(); sampler and not *i.blit_pipeline)
{
// Create blit pipeline
// Create VkDescriptorSetLayout with an immutable sampler
vk::DescriptorSetLayoutBinding sampler_layout_binding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment,
.pImmutableSamplers = &sampler,
};
network_session->send_control(from_headset::get_application_list{
.language = application::get_messages_info().language,
.country = application::get_messages_info().country,
.variant = application::get_messages_info().variant,
});
vk::DescriptorSetLayoutCreateInfo layout_info{
.bindingCount = 1,
.pBindings = &sampler_layout_binding,
};
i.descriptor_set_layout = vk::raii::DescriptorSetLayout(device, layout_info);
i.descriptor_set = device.allocateDescriptorSets(
vk::DescriptorSetAllocateInfo{
.descriptorPool = *blit_descriptor_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*i.descriptor_set_layout,
})[0]
.release();
const auto & description = i.decoder->desc();
vk::Extent2D image_size = i.decoder->image_size();
std::array useful_size{
float(description.width) / image_size.width,
float(description.height) / image_size.height,
};
spdlog::info("useful size: {}x{} with buffer {}x{}",
description.width,
description.height,
image_size.width,
image_size.height);
std::array specialization_constants_desc{
vk::SpecializationMapEntry{
.constantID = 0,
.offset = 0,
.size = sizeof(float),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = sizeof(float),
.size = sizeof(float),
}};
vk::SpecializationInfo vert_specialization_info;
vert_specialization_info.setMapEntries(specialization_constants_desc);
vert_specialization_info.setData<float>(useful_size);
std::array<VkBool32, 2> constants = {
need_srgb_conversion(guess_model()),
i.alpha(),
};
std::array frag_specialization_constant_desc = {
vk::SpecializationMapEntry{
.constantID = 0,
.offset = 0,
.size = sizeof(constants[0]),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = sizeof(constants[0]),
.size = sizeof(constants[1]),
},
};
vk::SpecializationInfo frag_specialization_info;
frag_specialization_info.setMapEntries(frag_specialization_constant_desc);
frag_specialization_info.setData<VkBool32>(constants);
// Create graphics pipeline
vk::raii::ShaderModule vertex_shader = load_shader(device, "stream.vert");
vk::raii::ShaderModule fragment_shader = load_shader(device, "stream.frag");
vk::PipelineLayoutCreateInfo pipeline_layout_info{
.setLayoutCount = 1,
.pSetLayouts = &*i.descriptor_set_layout,
};
i.blit_pipeline_layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
vk::pipeline_builder pipeline_info{
.Stages = {{
.stage = vk::ShaderStageFlagBits::eVertex,
.module = *vertex_shader,
.pName = "main",
.pSpecializationInfo = &vert_specialization_info,
},
{
.stage = vk::ShaderStageFlagBits::eFragment,
.module = *fragment_shader,
.pName = "main",
.pSpecializationInfo = &frag_specialization_info,
}},
.VertexBindingDescriptions = {},
.VertexAttributeDescriptions = {},
.InputAssemblyState = {{
.topology = vk::PrimitiveTopology::eTriangleStrip,
}},
// With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports
// and scissors is still used, put a vector with one element
.Viewports = {{}},
.Scissors = {{}},
.RasterizationState = {{
.polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1,
}},
.MultisampleState = {{
.rasterizationSamples = vk::SampleCountFlagBits::e1,
}},
.ColorBlendAttachments = {
{.colorWriteMask = i.alpha() ? vk::ColorComponentFlagBits::eA
: vk::ColorComponentFlagBits::eA | vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB}},
.DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor},
.layout = *i.blit_pipeline_layout,
.renderPass = *blit_render_pass,
.subpass = 0,
};
i.blit_pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info);
}
application::pop_scene();
}
assert(swapchain);
if (device.waitForFences(*fence, VK_TRUE, UINT64_MAX) == vk::Result::eTimeout)
throw std::runtime_error("Vulkan fence timeout");
@@ -928,11 +811,13 @@ void scenes::stream::render(const XrFrameState & frame_state)
std::array<int, view_count> image_indices;
#if WIVRN_FEATURE_RENDERDOC
renderdoc_begin(*vk_instance);
#endif
command_buffer.reset();
vk::CommandBufferBeginInfo begin_info;
begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
command_buffer.begin(begin_info);
command_buffer.begin(vk::CommandBufferBeginInfo{
.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit,
});
// Keep a reference to the resources needed to blit the images until vkWaitForFences
@@ -947,13 +832,12 @@ void scenes::stream::render(const XrFrameState & frame_state)
std::array<wivrn::to_headset::foveation_parameter, 2> foveation{};
bool use_alpha = false;
// Blit images from the decoders
for (auto [i, blit_handle]: std::views::zip(decoders, current_blit_handles))
for (auto & blit_handle: current_blit_handles)
{
if (not blit_handle or not *i.blit_pipeline)
if (not blit_handle)
continue;
blit_handle->feedback.blitted = application::now();
blit_handle->feedback.blitted = instance.now();
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
state_ = stream::state::stalled;
++blit_handle->feedback.times_displayed;
@@ -964,27 +848,12 @@ void scenes::stream::render(const XrFrameState & frame_state)
foveation = blit_handle->view_info.foveation;
use_alpha = blit_handle->view_info.alpha;
vk::DescriptorImageInfo image_info{
.imageView = *blit_handle->image_view,
.imageLayout = vk::ImageLayout::eGeneral,
};
vk::WriteDescriptorSet descriptor_write{
.dstSet = i.descriptor_set,
.dstBinding = 0,
.dstArrayElement = 0,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = &image_info,
};
device.updateDescriptorSets(descriptor_write, {});
if (*blit_handle->current_layout != vk::ImageLayout::eGeneral)
if (blit_handle->current_layout == vk::ImageLayout::eUndefined)
{
vk::ImageMemoryBarrier barrier{
.srcAccessMask = vk::AccessFlagBits::eNone,
.dstAccessMask = vk::AccessFlagBits::eMemoryRead,
.oldLayout = *blit_handle->current_layout,
.oldLayout = vk::ImageLayout::eUndefined,
.newLayout = vk::ImageLayout::eGeneral,
.image = blit_handle->image,
.subresourceRange = {
@@ -995,72 +864,22 @@ void scenes::stream::render(const XrFrameState & frame_state)
};
command_buffer.pipelineBarrier(vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eAllCommands, {}, {}, {}, barrier);
*blit_handle->current_layout = vk::ImageLayout::eGeneral;
blit_handle->current_layout = vk::ImageLayout::eGeneral;
}
}
uint16_t x_offset = 0;
for (auto & out: decoder_output)
// Blit images from the decoders
std::array<blitter::output, view_count> blitted;
for (auto [i, b]: utils::enumerate(blitters))
{
command_buffer.beginRenderPass(
{
.renderPass = *blit_render_pass,
.framebuffer = *out.frame_buffer,
.renderArea = {
.offset = {0, 0},
.extent = decoder_out_size,
},
.clearValueCount = 0,
},
vk::SubpassContents::eInline);
for (const auto & decoder: decoders)
b.begin(command_buffer);
for (auto [j, blit_handle]: utils::enumerate(current_blit_handles))
{
if (not *decoder.blit_pipeline)
if (not blit_handle)
continue;
if (decoder.alpha() and not use_alpha)
continue;
command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *decoder.blit_pipeline);
const auto & description = decoder.decoder->desc();
int x0 = description.offset_x - x_offset;
int y0 = description.offset_y;
int x1 = x0 + description.width * description.subsampling;
int y1 = y0 + description.height * description.subsampling;
vk::Viewport viewport{
.x = (float)x0,
.y = (float)y0,
.width = float(description.width * description.subsampling),
.height = float(description.height * description.subsampling),
.minDepth = 0,
.maxDepth = 1,
};
x0 = std::clamp<int>(x0, 0, decoder_out_size.width);
x1 = std::clamp<int>(x1, 0, decoder_out_size.width);
y0 = std::clamp<int>(y0, 0, decoder_out_size.height);
y1 = std::clamp<int>(y1, 0, decoder_out_size.height);
vk::Rect2D scissor{
.offset = {.x = x0, .y = y0},
.extent = {.width = (uint32_t)(x1 - x0), .height = (uint32_t)(y1 - y0)},
};
command_buffer.setViewport(0, viewport);
command_buffer.setScissor(0, scissor);
command_buffer.bindDescriptorSets(
vk::PipelineBindPoint::eGraphics,
*decoder.blit_pipeline_layout,
0,
decoder.descriptor_set,
nullptr);
command_buffer.draw(3, 1, 0, 0);
b.push_image(command_buffer, j, decoders[j].decoder->sampler(), decoders[j].decoder->extent(), blit_handle->image_view, blit_handle->current_layout);
}
command_buffer.endRenderPass();
x_offset += decoder_out_size.width;
blitted[i] = b.end(command_buffer);
}
command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 1);
@@ -1071,7 +890,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
int32_t max_height = 0;
for (size_t i = 0; i < view_count; ++i)
{
extents[i] = reprojector->defoveated_size(foveation[i]);
extents[i] = defoveator->defoveated_size(foveation[i]);
max_width = std::max(max_width, extents[i].width);
max_height = std::max(max_height, extents[i].height);
}
@@ -1101,7 +920,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
// defoveate the image
int image_index = swapchain.acquire();
swapchain.wait();
reprojector->reproject(command_buffer, foveation, image_index);
defoveator->defoveate(command_buffer, foveation, blitted, image_index);
command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 2);
@@ -1109,6 +928,9 @@ void scenes::stream::render(const XrFrameState & frame_state)
vk::SubmitInfo submit_info;
submit_info.setCommandBuffers(*command_buffer);
queue.lock()->submit(submit_info, *fence);
#if WIVRN_FEATURE_RENDERDOC
renderdoc_end(*vk_instance);
#endif
swapchain.release();
std::vector<XrCompositionLayerProjectionView> layer_view(view_count);
@@ -1275,119 +1097,15 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript
}
video_stream_description = description;
const uint32_t video_width = description.width / view_count;
const uint32_t video_height = description.height;
// Create renderpass
{
vk::AttachmentDescription color_desc{
.format = vk::Format::eA8B8G8R8SrgbPack32,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.storeOp = vk::AttachmentStoreOp::eStore,
.initialLayout = vk::ImageLayout::eUndefined,
.finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
};
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
};
subpass.setColorAttachments(color_ref);
vk::RenderPassCreateInfo renderpass_info{
.flags = {},
};
renderpass_info.setAttachments(color_desc);
renderpass_info.setSubpasses(subpass);
blit_render_pass = vk::raii::RenderPass(device, renderpass_info);
}
// Create outputs for the decoders
decoder_out_size = vk::Extent2D{video_width, video_height};
{
decoder_out_format = vk::Format::eA8B8G8R8SrgbPack32;
vk::ImageCreateInfo image_info{
.flags = vk::ImageCreateFlags{},
.imageType = vk::ImageType::e2D,
.format = vk::Format::eA8B8G8R8SrgbPack32,
.extent = {video_width, video_height, 1},
.mipLevels = 1,
.arrayLayers = view_count,
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eColorAttachment,
.sharingMode = vk::SharingMode::eExclusive,
.initialLayout = vk::ImageLayout::eUndefined,
};
VmaAllocationCreateInfo alloc_info{
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
};
decoder_out_image = image_allocation{device, image_info, alloc_info};
vk::ImageViewCreateInfo image_view_info{
.image = vk::Image{decoder_out_image},
.viewType = vk::ImageViewType::e2D,
.format = vk::Format::eA8B8G8R8SrgbPack32,
.components = {},
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = 1,
},
};
for (uint32_t view = 0; view < view_count; ++view)
{
auto & output = decoder_output[view];
image_view_info.subresourceRange.baseArrayLayer = view;
output.image_view = vk::raii::ImageView(device, image_view_info);
output.frame_buffer = vk::raii::Framebuffer(
device,
vk::FramebufferCreateInfo{
.renderPass = *blit_render_pass,
.attachmentCount = 1,
.pAttachments = &*output.image_view,
.width = decoder_out_size.width,
.height = decoder_out_size.height,
.layers = 1,
});
}
}
{
vk::DescriptorPoolSize pool_size{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = uint32_t(2 * description.items.size()),
};
blit_descriptor_pool = vk::raii::DescriptorPool(
device,
vk::DescriptorPoolCreateInfo{
.maxSets = uint32_t(2 * description.items.size()),
.poolSizeCount = 1,
.pPoolSizes = &pool_size,
});
}
for (auto & b: blitters)
b.reset(description);
for (const auto & [stream_index, item]: utils::enumerate(description.items))
{
spdlog::info("Creating decoder size {}x{} offset {},{}", item.width, item.height, item.offset_x, item.offset_y);
decoders.push_back(accumulator_images{
.decoder = std::make_unique<shard_accumulator>(device, physical_device, item, description.fps, shared_from_this(), stream_index),
.decoder = std::make_unique<shard_accumulator>(device, physical_device, instance, item, description.fps, shared_from_this(), stream_index),
});
}
}
@@ -1400,15 +1118,6 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
const uint32_t video_width = video_stream_description->width / view_count;
const uint32_t video_height = video_stream_description->height;
const configuration::sgsr_settings sgsr = application::get_config().sgsr;
if (sgsr.enabled)
{
const float upscaling_factor = sgsr.upscaling_factor;
spdlog::info("Using SGSR with an upscale factor of {}", upscaling_factor);
swapchain_width *= upscaling_factor;
swapchain_height *= upscaling_factor;
}
auto views = system.view_configuration_views(viewconfig);
swapchain = xr::swapchain(session, device, swapchain_format, swapchain_width, swapchain_height, 1, views.size());
@@ -1425,12 +1134,9 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
for (auto & image: swapchain.images())
swapchain_images.push_back(image.image);
reprojector.emplace(
defoveator.emplace(
device,
physical_device,
decoder_out_image,
vk::Extent2D{.width = video_width, .height = video_height},
2,
swapchain_images,
extent,
swapchain.format());
+19 -23
View File
@@ -23,8 +23,9 @@
#include "decoder/shard_accumulator.h"
#include "render/imgui_impl.h"
#include "scene.h"
#include "scenes/blitter.h"
#include "scenes/input_profile.h"
#include "stream_reprojection.h"
#include "stream_defoveator.h"
#include "utils/thread_safe.h"
#include "wifi_lock.h"
#include "wivrn_client.h"
@@ -48,6 +49,13 @@ public:
};
static const size_t image_buffer_size = 3;
struct app
{
std::string id;
std::string name;
std::vector<std::byte> image;
};
private:
static const size_t view_count = 2;
@@ -56,16 +64,12 @@ private:
struct accumulator_images
{
std::unique_ptr<wivrn::shard_accumulator> decoder;
vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr;
vk::DescriptorSet descriptor_set = nullptr;
vk::raii::PipelineLayout blit_pipeline_layout = nullptr;
vk::raii::Pipeline blit_pipeline = nullptr;
// latest frames from oldest to most recent
// latest frames, rolling buffer
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, image_buffer_size> latest_frames;
std::shared_ptr<wivrn::shard_accumulator::blit_handle> frame(uint64_t id) const;
bool alpha() const;
std::vector<uint64_t> frames() const;
bool empty() const;
};
wifi_lock::wifi wifi;
@@ -77,9 +81,9 @@ private:
std::unique_ptr<wivrn_session> network_session;
std::atomic<bool> exiting = false;
std::thread network_thread;
std::mutex tracking_control_mutex;
to_headset::tracking_control tracking_control{};
thread_safe<to_headset::tracking_control> tracking_control{};
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
std::atomic<bool> interaction_profile_changed = false;
std::atomic<bool> recenter_requested = false;
std::atomic<XrDuration> display_time_phase = 0;
std::atomic<XrDuration> display_time_period = 0;
@@ -90,21 +94,10 @@ private:
std::shared_mutex decoder_mutex;
std::optional<to_headset::video_stream_description> video_stream_description;
std::vector<accumulator_images> decoders; // Locked by decoder_mutex
vk::raii::DescriptorPool blit_descriptor_pool = nullptr;
vk::raii::RenderPass blit_render_pass = nullptr;
vk::Extent2D decoder_out_size;
vk::Format decoder_out_format;
image_allocation decoder_out_image;
std::array<blitter, view_count> blitters;
struct renderpass_output
{
vk::raii::ImageView image_view = nullptr;
vk::raii::Framebuffer frame_buffer = nullptr;
};
std::array<renderpass_output, view_count> decoder_output;
std::optional<stream_reprojection> reprojector;
std::optional<stream_defoveator> defoveator;
vk::raii::Fence fence = nullptr;
vk::raii::CommandBuffer command_buffer = nullptr;
@@ -125,6 +118,8 @@ private:
std::optional<audio> audio_handle;
std::optional<xr::hand_tracker> left_hand;
std::optional<xr::hand_tracker> right_hand;
std::optional<input_profile> input;
static inline const uint32_t layer_controllers = 1 << 0;
static inline const uint32_t layer_rays = 1 << 1;
@@ -176,7 +171,7 @@ private:
std::vector<std::shared_ptr<wivrn::shard_accumulator::blit_handle>> current_blit_handles;
// Last application list received from server
thread_safe<to_headset::application_list> applications;
thread_safe<std::vector<app>> applications;
stream();
@@ -202,6 +197,7 @@ public:
void operator()(to_headset::video_stream_description &&);
void operator()(to_headset::refresh_rate_change &&);
void operator()(to_headset::application_list &&);
void operator()(to_headset::application_icon &&);
void operator()(audio_data &&);
void push_blit_handle(wivrn::shard_accumulator * decoder, std::shared_ptr<wivrn::shard_accumulator::blit_handle> handle);
+260 -250
View File
@@ -17,13 +17,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "stream_reprojection.h"
#include "stream_defoveator.h"
#include "application.h"
#include "utils/contains.h"
#include "utils/ranges.h"
#include "vk/allocation.h"
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "vk/specialization_constants.h"
#include <array>
#include <glm/glm.hpp>
#include <glm/gtx/quaternion.hpp>
@@ -31,22 +32,21 @@
#include <vulkan/vulkan_core.h>
#include <vulkan/vulkan_raii.hpp>
struct stream_reprojection::vertex
struct stream_defoveator::vertex
{
// output image position
alignas(8) glm::vec2 position;
// input texture coordinates
alignas(8) glm::vec2 uv;
// input texture coordinates + shading rate in the first 4 bits of x
alignas(8) glm::uvec2 uv;
};
struct SgsrSpecializationConstants
struct vert_pc
{
VkBool32 use_edge_direction;
float edge_threshold;
float edge_sharpness;
glm::ivec4 rgb_rect;
glm::ivec4 a_rect;
};
void stream_reprojection::ensure_vertices(size_t num_vertices)
void stream_defoveator::ensure_vertices(size_t num_vertices)
{
vk::BufferCreateInfo create_info{
.size = num_vertices * sizeof(vertex) * view_count,
@@ -65,212 +65,81 @@ void stream_reprojection::ensure_vertices(size_t num_vertices)
vertices_size = num_vertices * sizeof(vertex);
}
stream_reprojection::vertex * stream_reprojection::get_vertices(size_t view)
stream_defoveator::vertex * stream_defoveator::get_vertices(size_t view)
{
assert(buffer);
return reinterpret_cast<vertex *>(reinterpret_cast<uintptr_t>(buffer.map()) + view * vertices_size);
}
stream_reprojection::stream_reprojection(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
vk::Image input_image_,
vk::Extent2D input_extent,
uint32_t view_count,
std::vector<vk::Image> output_images_,
vk::Extent2D output_extent,
vk::Format format) :
view_count(view_count),
device(device),
input_image(input_image_),
input_extent(input_extent),
output_images(std::move(output_images_)),
output_extent(output_extent)
stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a)
{
vk::SamplerCreateInfo sampler_info{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eNearest,
.addressModeU = vk::SamplerAddressMode::eClampToBorder,
.addressModeV = vk::SamplerAddressMode::eClampToBorder,
.addressModeW = vk::SamplerAddressMode::eClampToBorder,
.mipLodBias = 0.0f,
.anisotropyEnable = VK_FALSE,
.maxAnisotropy = 1,
.compareEnable = VK_FALSE,
.compareOp = vk::CompareOp::eNever,
.minLod = 0.0f,
.maxLod = 0.0f,
.borderColor = vk::BorderColor::eFloatOpaqueBlack,
.unnormalizedCoordinates = VK_FALSE,
};
auto & target = a ? pipeline_a[view] : pipeline_rgb[view];
if (*target.pipeline)
return target;
if (utils::contains(application::get_vk_device_extensions(), VK_IMG_FILTER_CUBIC_EXTENSION_NAME))
sampler_info.magFilter = vk::Filter::eCubicIMG;
sampler = vk::raii::Sampler(device, sampler_info);
std::array samplers{rgb, a};
int32_t alpha = a ? 1 : 0;
// Create VkDescriptorSetLayout
vk::DescriptorSetLayoutBinding layout_binding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment,
};
vk::DescriptorSetLayoutCreateInfo layout_info;
layout_info.setBindings(layout_binding);
descriptor_set_layout = vk::raii::DescriptorSetLayout(device, layout_info);
std::array pool_size{
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = (uint32_t)view_count,
std::array layout_binding{
vk::DescriptorSetLayoutBinding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = uint32_t(alpha + 1),
.stageFlags = vk::ShaderStageFlagBits::eFragment,
.pImmutableSamplers = samplers.data(),
},
};
vk::DescriptorPoolCreateInfo pool_info{
.maxSets = view_count,
.poolSizeCount = pool_size.size(),
.pPoolSizes = pool_size.data(),
target.descriptor_set_layout = device.createDescriptorSetLayout(vk::DescriptorSetLayoutCreateInfo{
.bindingCount = layout_binding.size(),
.pBindings = layout_binding.data(),
});
target.ds = device.allocateDescriptorSets(vk::DescriptorSetAllocateInfo{
.descriptorPool = *ds_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*target.descriptor_set_layout,
})[0]
.release();
// pipeline layout
vk::PushConstantRange pc_range{
.stageFlags = vk::ShaderStageFlagBits::eVertex,
.size = sizeof(vert_pc),
};
descriptor_pool = vk::raii::DescriptorPool(device, pool_info);
vk::PipelineLayoutCreateInfo pipeline_layout_info{
.setLayoutCount = 1,
.pSetLayouts = &*target.descriptor_set_layout,
.pushConstantRangeCount = 1,
.pPushConstantRanges = &pc_range,
};
// Create image views and descriptor sets
for (uint32_t view = 0; view < view_count; ++view)
target.layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
const auto & vk_device_extensions = application::get_vk_device_extensions();
bool fragment_shading_rate = false;
if (utils::contains(vk_device_extensions, VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME) and
utils::contains(vk_device_extensions, VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME))
{
vk::ImageViewCreateInfo iv_info{
.image = input_image,
.viewType = vk::ImageViewType::e2D,
.format = vk::Format::eA8B8G8R8SrgbPack32,
.components = {
.r = vk::ComponentSwizzle::eIdentity,
.g = vk::ComponentSwizzle::eIdentity,
.b = vk::ComponentSwizzle::eIdentity,
.a = vk::ComponentSwizzle::eIdentity,
},
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = view,
.layerCount = 1,
},
};
vk::ImageView input_image_view = *input_image_views.emplace_back(device, iv_info);
vk::DescriptorSetAllocateInfo ds_info{
.descriptorPool = *descriptor_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*descriptor_set_layout,
};
auto descriptor_set = descriptor_sets.emplace_back(device.allocateDescriptorSets(ds_info)[0].release());
vk::DescriptorImageInfo image_info{
.sampler = *sampler,
.imageView = input_image_view,
.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
};
device.updateDescriptorSets(
vk::WriteDescriptorSet{
.dstSet = descriptor_set,
.dstBinding = 0,
.dstArrayElement = 0,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = &image_info,
},
{});
const auto & [prop, rate_prop] = physical_device.getProperties2<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceFragmentShadingRatePropertiesKHR>();
const auto & [feat, fragment_feat] = physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
fragment_shading_rate = rate_prop.fragmentShadingRateNonTrivialCombinerOps and
fragment_feat.primitiveFragmentShadingRate and
fragment_feat.attachmentFragmentShadingRate;
}
// Create renderpass
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::AttachmentDescription attachment{
.format = format,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.storeOp = vk::AttachmentStoreOp::eStore,
.initialLayout = vk::ImageLayout::eColorAttachmentOptimal,
.finalLayout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
};
subpass.setColorAttachments(color_ref);
vk::StructureChain renderpass_info{
vk::RenderPassCreateInfo{
.attachmentCount = 1,
.pAttachments = &attachment,
.subpassCount = 1,
.pSubpasses = &subpass,
},
};
renderpass = vk::raii::RenderPass(device, renderpass_info.get());
// Vertex shader
vk::raii::ShaderModule vertex_shader = load_shader(device, "reprojection.vert");
vk::raii::ShaderModule vertex_shader = load_shader(device, fragment_shading_rate ? "reprojection_vsr.vert" : "reprojection.vert");
// Fragment shader
std::string fragment_shader_name = "reprojection.frag";
auto specialization = make_specialization_constants(
int32_t(alpha),
VkBool32(need_srgb_conversion(guess_model())));
vk::raii::ShaderModule fragment_shader = load_shader(device, "reprojection.frag");
vk::SpecializationInfo fragment_specialization_info;
SgsrSpecializationConstants fragment_specialization_constants;
std::vector<vk::SpecializationMapEntry> fragment_specialization_constants_desc;
const configuration::sgsr_settings sgsr = application::get_config().sgsr;
if (sgsr.enabled)
{
fragment_shader_name = "reprojection_sgsr.frag";
fragment_specialization_constants = {
.use_edge_direction = sgsr.use_edge_direction,
.edge_threshold = float(sgsr.edge_threshold / 255.0),
.edge_sharpness = sgsr.edge_sharpness,
};
fragment_specialization_constants_desc = {
vk::SpecializationMapEntry{
.constantID = 0,
.offset = offsetof(SgsrSpecializationConstants, use_edge_direction),
.size = sizeof(fragment_specialization_constants.use_edge_direction),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = offsetof(SgsrSpecializationConstants, edge_threshold),
.size = sizeof(fragment_specialization_constants.edge_threshold),
},
vk::SpecializationMapEntry{
.constantID = 2,
.offset = offsetof(SgsrSpecializationConstants, edge_sharpness),
.size = sizeof(fragment_specialization_constants.edge_sharpness),
},
};
fragment_specialization_info.setMapEntries(fragment_specialization_constants_desc);
fragment_specialization_info.setDataSize(sizeof(fragment_specialization_constants));
fragment_specialization_info.setPData(&fragment_specialization_constants);
}
vk::raii::ShaderModule fragment_shader = load_shader(device, fragment_shader_name);
// Create graphics pipeline
vk::PipelineLayoutCreateInfo pipeline_layout_info;
pipeline_layout_info.setSetLayouts(*descriptor_set_layout);
layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
vk::pipeline_builder pipeline_info{
vk::pipeline_builder pipeline_info_builder{
.flags = {},
.Stages = {
{
@@ -282,7 +151,7 @@ stream_reprojection::stream_reprojection(
.stage = vk::ShaderStageFlagBits::eFragment,
.module = *fragment_shader,
.pName = "main",
.pSpecializationInfo = &fragment_specialization_info,
.pSpecializationInfo = specialization,
},
},
.VertexBindingDescriptions = {
@@ -302,25 +171,15 @@ stream_reprojection::stream_reprojection(
{
.location = 1,
.binding = 0,
.format = vk::Format::eR32G32Sfloat,
.format = vk::Format::eR32G32Uint,
.offset = offsetof(vertex, uv),
},
},
.InputAssemblyState = {{
.topology = vk::PrimitiveTopology::eTriangleStrip,
}},
.Viewports = {{
.x = 0,
.y = 0,
.width = (float)output_extent.width,
.height = (float)output_extent.height,
.minDepth = 0,
.maxDepth = 1,
}},
.Scissors = {{
.offset = {.x = 0, .y = 0},
.extent = output_extent,
}},
.Viewports = {{}},
.Scissors = {{}},
.RasterizationState = {{
.polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1,
@@ -332,12 +191,109 @@ stream_reprojection::stream_reprojection(
.ColorBlendAttachments = {{
.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA,
}},
.layout = *layout,
.DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor},
.layout = *target.layout,
.renderPass = *renderpass,
.subpass = 0,
};
pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info);
vk::GraphicsPipelineCreateInfo pipeline_info(pipeline_info_builder);
// Variable fragment shading
std::array combiner{
vk::FragmentShadingRateCombinerOpKHR::eMax,
vk::FragmentShadingRateCombinerOpKHR::eMax,
};
vk::PipelineFragmentShadingRateStateCreateInfoKHR shading{
.fragmentSize = vk::Extent2D{1, 1},
.combinerOps = combiner,
};
if (fragment_shading_rate)
{
pipeline_info.pNext = &shading;
spdlog::info("Available fragment shading rates:");
for (const auto rate: physical_device.getFragmentShadingRatesKHR())
{
if (rate.sampleCounts & vk::SampleCountFlagBits::e1)
{
spdlog::info("\tfragment size: {}x{}", rate.fragmentSize.width, rate.fragmentSize.height);
int flags = 0;
if (rate.fragmentSize.width == 4)
flags |= 8;
else if (rate.fragmentSize.width == 2)
flags |= 4;
if (rate.fragmentSize.height == 4)
flags |= 2;
else if (rate.fragmentSize.height == 2)
flags |= 1;
for (int y = std::bit_width(rate.fragmentSize.height) - 1; y < 3; ++y)
{
for (int x = std::bit_width(rate.fragmentSize.width) - 1; x < 3; ++x)
{
if (fragment_sizes[x][y] == 0)
fragment_sizes[x][y] = flags << 28;
}
}
}
}
}
target.pipeline = device.createGraphicsPipeline(application::get_pipeline_cache(), pipeline_info);
return target;
}
stream_defoveator::stream_defoveator(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
std::vector<vk::Image> output_images_,
vk::Extent2D output_extent,
vk::Format format) :
device(device),
physical_device(physical_device),
output_images(std::move(output_images_)),
output_extent(output_extent)
{
// Create renderpass
vk::AttachmentDescription attachment{
.format = format,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.storeOp = vk::AttachmentStoreOp::eStore,
.finalLayout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
.colorAttachmentCount = 1,
.pColorAttachments = &color_ref,
};
vk::StructureChain renderpass_info{
vk::RenderPassCreateInfo{
.attachmentCount = 1,
.pAttachments = &attachment,
.subpassCount = 1,
.pSubpasses = &subpass,
},
};
renderpass = vk::raii::RenderPass(device, renderpass_info.get());
vk::DescriptorPoolSize pool_size{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = view_count * 4,
};
ds_pool = device.createDescriptorPool(vk::DescriptorPoolCreateInfo{
.maxSets = view_count * 2,
.poolSizeCount = 1,
.pPoolSizes = &pool_size,
});
// Create image views and framebuffers
output_image_views.reserve(output_images.size() * view_count);
@@ -390,9 +346,25 @@ static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p
return (2 * (p.x.size() + 1) + 1) * p.y.size();
}
void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
int destination)
uint32_t stream_defoveator::shading_rate(int pixels_x, int pixels_y)
{
int x = 0;
if (pixels_x >= 2)
x = 1;
if (pixels_x >= 4)
x = 2;
int y = 0;
if (pixels_y >= 2)
y = 1;
if (pixels_y >= 4)
y = 2;
return fragment_sizes[x][y];
}
void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
std::span<wivrn::blitter::output> inputs,
int destination)
{
if (destination < 0 || destination >= (int)output_images.size())
throw std::runtime_error("Invalid destination image index");
@@ -401,6 +373,7 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
for (size_t view = 0; view < view_count; ++view)
{
const auto out_size = defoveated_size(foveation[view]);
auto vertices = get_vertices(view);
const auto & [px, py] = foveation[view];
assert(px.size() % 2 == 1);
@@ -408,67 +381,64 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
const int n_ratio_y = (py.size() - 1) / 2;
const int n_ratio_x = (px.size() - 1) / 2;
glm::vec2 in(0), out(0); // pixel coordinates
glm::vec2 in_pixel_size(1. / input_extent.width,
1. / input_extent.height);
glm::vec2 out_pixel_size(2. / output_extent.width,
2. / output_extent.height);
command_buffer.setScissor(
0,
vk::Rect2D{
.extent = {.width = uint32_t(out_size.width), .height = uint32_t(out_size.height)},
});
command_buffer.setViewport(
0,
vk::Viewport{
.x = 0,
.y = 0,
.width = float(out_size.width),
.height = float(out_size.height),
.minDepth = 0,
.maxDepth = 1,
});
glm::uvec2 in(0);
glm::vec2 out(-0.5 * out_size.width, -0.5 * out_size.height); // pixel coordinates
glm::vec2 out_pixel_size(2. / out_size.width,
2. / out_size.height);
for (auto [iy, n_out_y]: utils::enumerate_range(py))
{
// number of output pixels per source pixels
const int ratio_y = std::abs(n_ratio_y - int(iy)) + 1;
in.x = 0;
out.x = 0;
out.x = -0.5 * out_size.width;
for (auto [ix, n_out_x]: utils::enumerate_range(px))
{
const int ratio_x = std::abs(n_ratio_x - int(ix)) + 1;
glm::uvec2 rate = glm::uvec2(shading_rate(ratio_x, ratio_y), 0);
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in | rate,
};
*vertices++ = {
.position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size - glm::vec2(1),
.uv = (in + glm::vec2(0, n_out_y)) * in_pixel_size,
.position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size,
.uv = (in + glm::uvec2(0, n_out_y)) | rate,
};
in.x += n_out_x;
out.x += n_out_x * ratio_x;
}
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in,
};
in.y += n_out_y;
out.y += n_out_y * ratio_y;
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in,
};
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in,
};
}
}
command_buffer.pipelineBarrier(
vk::PipelineStageFlagBits::eTopOfPipe,
vk::PipelineStageFlagBits::eColorAttachmentOutput,
{},
{},
{},
vk::ImageMemoryBarrier{
.srcAccessMask = {},
.dstAccessMask = vk::AccessFlagBits::eColorAttachmentWrite,
.oldLayout = vk::ImageLayout::eUndefined,
.newLayout = vk::ImageLayout::eColorAttachmentOptimal,
.image = output_images[destination],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.levelCount = 1,
.layerCount = view_count,
},
});
for (size_t view = 0; view < view_count; ++view)
{
vk::RenderPassBeginInfo begin_info{
@@ -480,9 +450,49 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
},
};
const auto & input = inputs[view];
auto & pipeline = ensure_pipeline(view, input.sampler_rgb, input.sampler_a);
std::array image_info{
vk::DescriptorImageInfo{
.sampler = input.sampler_rgb,
.imageView = input.rgb,
.imageLayout = input.layout_rgb,
},
vk::DescriptorImageInfo{
.sampler = input.sampler_a,
.imageView = input.a,
.imageLayout = input.layout_a,
},
};
std::array descriptor_writes{
vk::WriteDescriptorSet{
.dstSet = pipeline.ds,
.dstBinding = 0,
.descriptorCount = input.sampler_a ? 2u : 1u,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = image_info.data(),
},
};
vert_pc pc{
.rgb_rect = glm::ivec4(input.rect_rgb.offset.x,
input.rect_rgb.offset.y,
input.rect_rgb.extent.width,
input.rect_rgb.extent.height),
.a_rect = glm::ivec4(input.rect_a.offset.x,
input.rect_a.offset.y,
input.rect_a.extent.width,
input.rect_a.extent.height),
};
device.updateDescriptorSets(descriptor_writes, {});
command_buffer.beginRenderPass(begin_info, vk::SubpassContents::eInline);
command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *pipeline);
command_buffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, *layout, 0, descriptor_sets[view], {});
command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *pipeline.pipeline);
command_buffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, *pipeline.layout, 0, pipeline.ds, {});
command_buffer.pushConstants<vert_pc>(*pipeline.layout, vk::ShaderStageFlagBits::eVertex, 0, pc);
command_buffer.bindVertexBuffers(0, vk::Buffer(buffer), vertices_size * view);
command_buffer.draw(required_vertices(foveation[view]), 1, 0, 0);
command_buffer.endRenderPass();
@@ -502,7 +512,7 @@ static uint16_t count_pixels(const std::vector<uint16_t> & param)
return res;
}
XrExtent2Di stream_reprojection::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
{
return {
count_pixels(view.x),
+27 -18
View File
@@ -19,34 +19,42 @@
#pragma once
#include "blitter.h"
#include "vk/allocation.h"
#include "wivrn_packets.h"
#include <vulkan/vulkan_raii.hpp>
#include <openxr/openxr.h>
class stream_reprojection
class stream_defoveator
{
struct vertex;
const uint32_t view_count;
static const uint32_t view_count = 2;
// Vertex buffer
buffer_allocation buffer;
size_t vertices_size = 0;
vk::raii::Device & device;
vk::raii::PhysicalDevice & physical_device;
// Graphic pipeline
vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr;
vk::raii::DescriptorPool descriptor_pool = nullptr;
vk::raii::PipelineLayout layout = nullptr;
vk::raii::RenderPass renderpass = nullptr;
vk::raii::Pipeline pipeline = nullptr;
vk::raii::DescriptorPool ds_pool = nullptr;
struct pipeline_t
{
vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr;
vk::DescriptorSet ds;
vk::raii::PipelineLayout layout = nullptr;
vk::raii::Pipeline pipeline = nullptr;
};
pipeline_t pipeline_rgb[view_count];
pipeline_t pipeline_a[view_count];
// Source image
vk::raii::Sampler sampler = nullptr;
vk::Image input_image;
std::vector<vk::raii::ImageView> input_image_views;
std::vector<vk::DescriptorSet> descriptor_sets;
vk::Extent2D input_extent;
// Allowed sizes for variable shading rate
// indices are for x, y
// 0 is 1 pixel
// 1 is 2 or 3 pixels
// 2 is 4 pixels or more
uint32_t fragment_sizes[3][3] = {};
// Destination images
std::vector<vk::Image> output_images;
@@ -57,22 +65,23 @@ class stream_reprojection
void ensure_vertices(size_t num_vertices);
vertex * get_vertices(size_t view);
uint32_t shading_rate(int pixels_x, int pixels_y);
pipeline_t & ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a);
public:
stream_reprojection(
stream_defoveator(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
vk::Image input_image,
vk::Extent2D input_extent,
uint32_t view_count,
std::vector<vk::Image> output_images,
vk::Extent2D output_extent,
vk::Format format);
stream_reprojection(const stream_reprojection &) = delete;
stream_defoveator(const stream_defoveator &) = delete;
void reproject(
void defoveate(
vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
std::span<wivrn::blitter::output> inputs,
int destination);
XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const;
+32 -6
View File
@@ -389,8 +389,14 @@ void scenes::stream::gui_performance_metrics()
ImPlot::PopStyleColor(5);
{
std::lock_guard lock(tracking_control_mutex);
ImGui::Text("%s", fmt::format(_F("Estimated motion to photons latency: {}ms"), std::chrono::duration_cast<std::chrono::milliseconds>(tracking_control.max_offset).count()).c_str());
ImGui::Text(
"%s",
fmt::format(
_F("Estimated motion to photons latency: {}ms"),
std::chrono::duration_cast<std::chrono::milliseconds>(
tracking_control.lock()->max_offset)
.count())
.c_str());
if (is_gui_interactable())
ImGui::Text("%s", _S("Press the grip button to move the window"));
@@ -417,7 +423,12 @@ void scenes::stream::gui_compact_view()
f(_S("Upload"), 8 * compact_bandwidth_tx * 1e-6, "Mbit/s");
f(_S("CPU time"), compact_cpu_time * 1000, "ms");
f(_S("GPU time"), compact_gpu_time * 1000, "ms");
f(_S("Motion to photon latency"), std::chrono::duration_cast<std::chrono::microseconds>(tracking_control.max_offset).count() * 1e-3f, "ms");
f(_S("Motion to photon latency"),
std::chrono::duration_cast<std::chrono::microseconds>(
tracking_control.lock()->max_offset)
.count() *
1e-3f,
"ms");
ImGui::EndTable();
}
}
@@ -615,6 +626,8 @@ static glm::vec4 compute_ray_limits(const XrPosef & pose, float margin = 0)
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
{
if (not(plots_toggle_1 and plots_toggle_2))
return;
bool interactable = true;
XrSpace world_space = application::space(xr::spaces::world);
auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second;
@@ -632,6 +645,19 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
break;
}
imgui_ctx->set_controllers_enabled(interactable);
if (interactable)
{
if (system.hand_tracking_supported())
{
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
}
else
{
left_hand.reset();
right_hand.reset();
}
if (gui_status != last_gui_status)
{
@@ -863,10 +889,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
bool hide_left_controller = false;
bool hide_right_controller = false;
if (application::get_hand_tracking_supported())
if (left_hand and right_hand)
{
auto left = application::get_left_hand().locate(world_space, predicted_display_time);
auto right = application::get_right_hand().locate(world_space, predicted_display_time);
auto left = left_hand->locate(world_space, predicted_display_time);
auto right = right_hand->locate(world_space, predicted_display_time);
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
hide_left_controller = true;
+19 -1
View File
@@ -111,8 +111,26 @@ void scenes::stream::operator()(to_headset::application_list && apps)
std::ranges::sort(apps.applications, [](auto & l, auto & r) {
return una::casesens::collate_utf8(l.name, r.name) < 0;
});
auto locked = applications.lock();
*locked = std::move(apps);
locked->clear();
locked->reserve(apps.applications.size());
for (const auto & i: apps.applications)
{
locked->push_back(app{
.id = std::move(i.id),
.name = std::move(i.name),
});
}
}
void scenes::stream::operator()(to_headset::application_icon && icon)
{
auto locked = applications.lock();
if (auto it = std::ranges::find(*locked, icon.id, &app::id); it != locked->end())
it->image = std::move(icon.image);
}
void scenes::stream::start_application(std::string appid)
+81 -63
View File
@@ -21,7 +21,10 @@
#include "stream.h"
#include "utils/overloaded.h"
#include "wivrn_packets.h"
#include "xr/body_tracker.h"
#include "xr/face_tracker.h"
#include "xr/fb_body_tracker.h"
#include "xr/to_string.h"
#include <magic_enum.hpp>
#include <ranges>
#include <spdlog/spdlog.h>
@@ -377,7 +380,6 @@ void scenes::stream::tracking()
std::vector<from_headset::tracking> tracking;
std::vector<from_headset::tracking> tracking_pool; // pre-allocated objects
std::vector<from_headset::hand_tracking> hands;
std::array<bool, 2> should_skip_simple_controllers{};
std::vector<from_headset::body_tracking> body;
std::vector<XrView> views;
@@ -385,31 +387,14 @@ void scenes::stream::tracking()
std::vector<serialization_packet> packets;
const bool hand_tracking = config.check_feature(feature::hand_tracking);
std::optional<xr::hand_tracker> left_hand;
std::optional<xr::hand_tracker> right_hand;
const bool face_tracking = config.check_feature(feature::face_tracking);
auto & face_tracker = application::get_face_tracker();
if (face_tracking)
{
// We can't start the face tracking on application initialisation like we do for
// other face trackers due to a Pico runtime bug where face tracking freezes when
// the headset is taken off or the application is quit.
if (auto * face_pico = std::get_if<xr::pico_face_tracker>(&face_tracker))
face_pico->start();
}
xr::face_tracker face_tracker;
const bool body_tracking = config.check_feature(feature::body_tracking);
auto & body_tracker = application::get_body_tracker();
if (body_tracking)
{
if (auto * body_fb = std::get_if<xr::fb_body_tracker>(&body_tracker))
{
// TODO maybe handle reconnection better, if the settings are changed since
// last connection to running server, the tracker count will mismatch and
// stuff might break
body_fb->stop();
body_fb->start(config.fb_lower_body, config.fb_hip);
}
}
xr::body_tracker body_tracker;
locate_spaces_functor locate_spaces{instance, world_space};
@@ -433,11 +418,50 @@ void scenes::stream::tracking()
timer t(instance);
int samples = 0;
to_headset::tracking_control control;
auto control = *tracking_control.lock();
bool interaction_profile_changed = this->interaction_profile_changed.exchange(false);
if (control.enabled[size_t(tid::left_hand)])
{
std::lock_guard lock(tracking_control_mutex);
control = tracking_control;
if (not left_hand and system.hand_tracking_supported())
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
}
else
left_hand.reset();
if (control.enabled[size_t(tid::right_hand)])
{
if (not right_hand and system.hand_tracking_supported())
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
else
right_hand.reset();
if (face_tracking and control.enabled[size_t(tid::face)])
{
if (std::holds_alternative<std::monostate>(face_tracker))
face_tracker = xr::make_face_tracker(instance, system, session);
}
else
face_tracker.emplace<std::monostate>();
if (body_tracking and control.enabled[size_t(tid::generic_tracker)])
{
if (std::holds_alternative<std::monostate>(body_tracker))
body_tracker = xr::make_body_tracker(
instance,
system,
session,
application::get_generic_trackers(),
config.fb_lower_body,
config.fb_hip);
}
else
body_tracker.emplace<std::monostate>();
if (interaction_profile_changed)
if (auto htc = std::get_if<xr::htc_body_tracker>(&body_tracker))
htc->update_active();
XrDuration prediction = std::clamp<XrDuration>(control.max_offset.count(), 0, 80'000'000);
auto period = std::max<XrDuration>(display_time_period.load(), 1'000'000);
@@ -469,9 +493,9 @@ void scenes::stream::tracking()
(Δt == 0 or Δt >= prediction - 2 * period))
{
last_hand_sample = t0;
if (control.enabled[size_t(tid::left_hand)])
if (left_hand)
{
auto joints = locate_hands(application::get_left_hand(), world_space, t0 + Δt);
auto joints = locate_hands(*left_hand, world_space, t0 + Δt);
hands.emplace_back(
t0,
t0 + Δt,
@@ -479,9 +503,9 @@ void scenes::stream::tracking()
joints);
}
if (control.enabled[size_t(tid::right_hand)])
if (right_hand)
{
auto joints = locate_hands(application::get_right_hand(), world_space, t0 + Δt);
auto joints = locate_hands(*right_hand, world_space, t0 + Δt);
hands.emplace_back(
t0,
t0 + Δt,
@@ -498,37 +522,33 @@ void scenes::stream::tracking()
}
locate_spaces.resolve(session, t0 + Δt, packet.device_poses);
if (body_tracking)
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & b) {
if (t0 >= last_body_sample + period and
(Δt == 0 or Δt >= prediction - 2 * period))
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & b) {
if (t0 >= last_body_sample + period and
(Δt == 0 or Δt >= prediction - 2 * period))
{
last_body_sample = t0;
if (control.enabled[size_t(tid::generic_tracker)])
{
last_body_sample = t0;
if (control.enabled[size_t(tid::generic_tracker)])
{
body.push_back(from_headset::body_tracking{
.production_timestamp = t0,
.timestamp = t0 + Δt,
.poses = b.locate_spaces(t0 + Δt, world_space),
});
}
body.push_back(from_headset::body_tracking{
.production_timestamp = t0,
.timestamp = t0 + Δt,
.poses = b.locate_spaces(t0 + Δt, world_space),
});
}
},
},
body_tracker);
}
},
},
body_tracker);
if (face_tracking && control.enabled[size_t(tid::face)])
{
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & ft) {
ft.get_weights(t0 + Δt, packet.face.emplace<typename std::remove_reference_t<decltype(ft)>::packet_type>());
},
},
face_tracker);
}
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & ft) {
ft.get_weights(t0 + Δt, packet.face.emplace<typename std::remove_reference_t<decltype(ft)>::packet_type>());
},
},
face_tracker);
}
catch (const std::system_error & e)
{
@@ -629,20 +649,17 @@ void scenes::stream::tracking()
exit();
}
}
if (auto * face_pico = std::get_if<xr::pico_face_tracker>(&face_tracker))
face_pico->stop();
}
void scenes::stream::operator()(to_headset::tracking_control && packet)
{
std::lock_guard lock(tracking_control_mutex);
auto locked = tracking_control.lock();
auto m = size_t(to_headset::tracking_control::id::microphone);
if (audio_handle)
audio_handle->set_mic_state(packet.enabled[m]);
tracking_control = packet;
tracking_control.min_offset = std::min(tracking_control.min_offset, tracking_control.max_offset);
*locked = packet;
locked->min_offset = std::min(locked->min_offset, locked->max_offset);
}
static device_id derived_from(device_id target)
@@ -663,6 +680,7 @@ static device_id derived_from(device_id target)
void scenes::stream::on_interaction_profile_changed(const XrEventDataInteractionProfileChanged &)
{
interaction_profile_changed = true;
std::array path = {
"/user/hand/left",
"/user/hand/right",
+3 -48
View File
@@ -1,49 +1,4 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#ifdef VERT_SHADER
layout (location = 0) in vec2 vPosition;
layout (location = 1) in vec2 vUV;
layout(location = 0) out vec2 outUV;
void main()
{
gl_Position = vec4(vPosition, 0.0, 1.0);
outUV = vUV;
}
#endif
#ifdef FRAG_SHADER
layout(set = 0, binding = 0) uniform sampler2D texSampler;
layout(location = 0) in vec2 inUV;
layout(location = 0) out vec4 outColor;
void main()
{
outColor = texture(texSampler, inUV).rgba;
}
#endif
#extension GL_ARB_shading_language_include : require
#define VSR 0
#include "reprojection.glsl.inc"
+92
View File
@@ -0,0 +1,92 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifdef VERT_SHADER
#if VSR
#extension GL_EXT_fragment_shading_rate: enable
#endif
layout (location = 0) in vec2 vPosition;
layout (location = 1) in uvec2 vUV;
layout(location = 0) out vec4 outUV;
layout(push_constant) uniform pc
{
ivec4 rgb_rect;
ivec4 a_rect;
};
void main()
{
gl_Position = vec4(vPosition, 0.0, 1.0);
#if VSR
gl_PrimitiveShadingRateEXT = int(bitfieldExtract(vUV.x, 28, 4));
vec2 uv = bitfieldInsert(vUV, uvec2(0), 28, 4);
#else
vec2 uv = vUV;
#endif
outUV.xy = (uv + rgb_rect.xy) / rgb_rect.zw;
outUV.zw = (uv + a_rect.xy) / a_rect.zw;
}
#endif
#ifdef FRAG_SHADER
layout(constant_id = 0) const int alpha = 1;
layout(constant_id = 1) const bool do_srgb = false;
layout(set = 0, binding = 0) uniform sampler2D rgb[alpha + 1];
layout(location = 0) in vec4 inUV;
layout(location = 0) out vec4 outColor;
float sRGB_to_linear(float x)
{
if (x <= 0.04045)
return x / 12.92;
return pow((x + 0.055) / 1.055, 2.4);
}
vec4 sRGB_to_linear_rgba(vec4 x)
{
return vec4(
sRGB_to_linear(x.r),
sRGB_to_linear(x.g),
sRGB_to_linear(x.b),
x.a);
}
void main()
{
if (alpha == 1)
outColor = vec4(texture(rgb[0], inUV.xy).rgb, texture(rgb[1], inUV.zw).r);
else
outColor = texture(rgb[0], inUV.xy).rgba;
if (do_srgb)
{
outColor = sRGB_to_linear_rgba(outColor);
}
}
#endif
+5
View File
@@ -0,0 +1,5 @@
#version 450
#extension GL_ARB_shading_language_include : require
#define VSR 1
#include "reprojection.glsl.inc"
+11 -3
View File
@@ -26,9 +26,17 @@ namespace utils
template <typename Rng, typename T>
bool contains(Rng && range, const T & value)
{
auto it = std::find(range.begin(), range.end(), value);
return it != range.end();
if constexpr (std::is_convertible_v<T, const char *> and
std::is_convertible_v<typename std::decay_t<Rng>::value_type, const char *>)
{
auto it = std::find_if(range.begin(), range.end(), [&](const char * i) { return strcmp(i, value) == 0; });
return it != range.end();
}
else
{
auto it = std::find(range.begin(), range.end(), value);
return it != range.end();
}
}
// Check if all values of range2 are in range1
+49 -5
View File
@@ -19,37 +19,81 @@
#pragma once
#include <spdlog/spdlog.h>
#include <type_traits>
#include <utility>
#include <variant>
#include <openxr/openxr.h>
namespace utils
{
template <typename T, XrResult deleter(T)>
template <typename T, auto Deleter = nullptr>
class handle
{
public:
// true if the deleter is provided when constructing the object
// typically if it's from an OpenXR extension
static constexpr bool runtime_deleter = Deleter == nullptr;
protected:
static const inline T null_value = 0;
T id = null_value;
[[no_unique_address]] std::conditional_t<runtime_deleter, XrResult (*)(T), std::monostate> deleter;
public:
handle() {}
template <typename = void>
requires(not runtime_deleter)
handle()
{}
template <typename = void>
requires(not runtime_deleter)
handle(T id) :
id(id) {}
id(id)
{}
template <typename = void>
requires(runtime_deleter)
handle(XrResult (*deleter)(T)) :
deleter(deleter)
{
assert(deleter);
}
template <typename = void>
requires(runtime_deleter)
handle(T id, XrResult (*deleter)(T)) :
id(id), deleter(deleter)
{
assert(deleter);
}
~handle()
{
if (id != null_value)
deleter(id);
{
XrResult res = XR_SUCCESS;
if constexpr (runtime_deleter)
res = deleter(id);
else
res = Deleter(id);
if (not XR_SUCCEEDED(res))
spdlog::warn("Failed to destroy {}", typeid(T).name());
}
}
handle(handle && other) noexcept :
id(other.id)
id(other.id), deleter(other.deleter)
{
other.id = null_value;
}
handle & operator=(handle && other) noexcept
{
if constexpr (runtime_deleter)
std::swap(deleter, other.deleter);
std::swap(id, other.id);
return *this;
}
+80
View File
@@ -0,0 +1,80 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "body_tracker.h"
#include "xr/htc_exts.h"
#include "xr/instance.h"
#include "xr/system.h"
xr::body_tracker_type xr::body_tracker_supported(xr::instance & instance, xr::system & system)
{
if (instance.has_extension(XR_FB_BODY_TRACKING_EXTENSION_NAME) and
instance.has_extension(XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME) and
instance.has_extension(XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME))
{
auto fb_body_properties = system.fb_body_tracking_properties();
if (fb_body_properties.supportsBodyTracking)
return body_tracker_type::fb;
}
if (instance.has_extension(XR_HTC_PATH_ENUMERATION_EXTENSION_NAME) and
instance.has_extension(XR_HTC_VIVE_XR_TRACKER_INTERACTION_EXTENSION_NAME))
return body_tracker_type::htc;
if (instance.has_extension(XR_BD_BODY_TRACKING_EXTENSION_NAME))
{
auto bd_body_properties = system.bd_body_tracking_properties();
if (bd_body_properties.supportsBodyTracking)
return body_tracker_type::pico;
}
return xr::body_tracker_type::none;
}
xr::body_tracker xr::make_body_tracker(xr::instance & instance, xr::system & system, xr::session & session, std::vector<std::pair<XrPath, xr::space>> & generic_trackers, bool full_body, bool hips)
{
if (instance.has_extension(XR_FB_BODY_TRACKING_EXTENSION_NAME) and
instance.has_extension(XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME) and
instance.has_extension(XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME))
{
auto fb_body_properties = system.fb_body_tracking_properties();
if (fb_body_properties.supportsBodyTracking)
return xr::body_tracker(std::in_place_type_t<xr::fb_body_tracker>(),
instance,
session,
full_body,
hips);
}
if (not generic_trackers.empty())
return xr::body_tracker(std::in_place_type_t<xr::htc_body_tracker>(),
session,
generic_trackers);
if (instance.has_extension(XR_BD_BODY_TRACKING_EXTENSION_NAME))
{
auto bd_body_properties = system.bd_body_tracking_properties();
if (bd_body_properties.supportsBodyTracking)
return xr::body_tracker(std::in_place_type_t<xr::pico_body_tracker>(),
instance,
session);
}
return std::monostate();
}
+43
View File
@@ -0,0 +1,43 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "fb_body_tracker.h"
#include "htc_body_tracker.h"
#include "pico_body_tracker.h"
#include "xr/system.h"
#include <utility>
#include <variant>
#include <vector>
#include <openxr/openxr.h>
namespace xr
{
class instance;
class session;
using body_tracker = std::variant<std::monostate, xr::fb_body_tracker, xr::htc_body_tracker, xr::pico_body_tracker>;
body_tracker make_body_tracker(xr::instance &, xr::system &, xr::session &, std::vector<std::pair<XrPath, xr::space>> & generic_trackers, bool full_body, bool hips);
body_tracker_type body_tracker_supported(xr::instance &, xr::system &);
} // namespace xr
+1 -1
View File
@@ -17,8 +17,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "xr.h"
#include "xr/check.h"
#include "xr/to_string.h"
#include <system_error>
namespace
+94
View File
@@ -0,0 +1,94 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "face_tracker.h"
#include "hardware.h"
#include "xr/instance.h"
#include "xr/system.h"
xr::face_tracker_type xr::face_tracker_supported(xr::instance & instance, xr::system & system)
{
if (instance.has_extension(XR_FB_FACE_TRACKING2_EXTENSION_NAME))
{
auto properties = system.fb_face_tracking2_properties();
if (properties.supportsVisualFaceTracking)
return xr::face_tracker_type::fb;
}
if (instance.has_extension(XR_HTC_FACIAL_TRACKING_EXTENSION_NAME))
{
auto properties = system.htc_face_tracking_properties();
if (properties.supportEyeFacialTracking or properties.supportLipFacialTracking)
return xr::face_tracker_type::htc;
}
switch (guess_model())
{
case model::pico_4_pro:
case model::pico_4_enterprise:
// The extension used by Pico is not published
// it doesn't even need to be requested...
if (instance.has_extension(XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME) and
system.eye_gaze_interaction_properties().supportsEyeGazeInteraction)
return xr::face_tracker_type::pico;
break;
default:
break;
}
return xr::face_tracker_type::none;
}
xr::face_tracker xr::make_face_tracker(xr::instance & instance, xr::system & system, xr::session & session)
{
if (instance.has_extension(XR_FB_FACE_TRACKING2_EXTENSION_NAME))
{
auto properties = system.fb_face_tracking2_properties();
if (properties.supportsVisualFaceTracking)
return xr::face_tracker(std::in_place_type_t<xr::fb_face_tracker2>(), instance, session);
}
if (instance.has_extension(XR_HTC_FACIAL_TRACKING_EXTENSION_NAME))
{
auto properties = system.htc_face_tracking_properties();
if (properties.supportEyeFacialTracking or properties.supportLipFacialTracking)
return xr::face_tracker(
std::in_place_type_t<xr::htc_face_tracker>(),
instance,
session,
properties.supportEyeFacialTracking,
properties.supportLipFacialTracking);
}
switch (guess_model())
{
case model::pico_4_pro:
case model::pico_4_enterprise:
// The extension used by Pico is not published
// it doesn't even need to be requested...
if (instance.has_extension(XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME) and
system.eye_gaze_interaction_properties().supportsEyeGazeInteraction)
return xr::face_tracker(std::in_place_type_t<xr::pico_face_tracker>(), instance, session);
break;
default:
break;
}
return std::monostate();
}
+40
View File
@@ -0,0 +1,40 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "fb_face_tracker2.h"
#include "htc_face_tracker.h"
#include "pico_face_tracker.h"
#include "xr/system.h"
#include <variant>
namespace xr
{
class instance;
class session;
using face_tracker = std::variant<std::monostate, xr::fb_face_tracker2, xr::htc_face_tracker, xr::pico_face_tracker>;
face_tracker make_face_tracker(xr::instance &, xr::system &, xr::session &);
face_tracker_type face_tracker_supported(xr::instance &, xr::system &);
} // namespace xr
+17 -42
View File
@@ -17,10 +17,11 @@
*/
#include "fb_body_tracker.h"
#include "application.h"
#include "spdlog/spdlog.h"
#include "xr/instance.h"
#include "xr/meta_body_tracking_fidelity.h"
#include "xr/xr.h"
#include "xr/session.h"
#include "xr/to_string.h"
#include <ranges>
#include <openxr/openxr.h>
@@ -39,59 +40,33 @@ std::vector<XrFullBodyJointMETA> xr::fb_body_tracker::get_whitelisted_joints(boo
return {whitelisted_joints.begin(), whitelisted_joints.end()};
}
xr::fb_body_tracker::fb_body_tracker(instance & inst, session & s) :
s(s)
xr::fb_body_tracker::fb_body_tracker(instance & inst, session & s, bool full_body, bool hip) :
handle(inst.get_proc<PFN_xrDestroyBodyTrackerFB>("xrDestroyBodyTrackerFB")),
xrRequestBodyTrackingFidelityMETA(inst.get_proc<PFN_xrRequestBodyTrackingFidelityMETA>("xrRequestBodyTrackingFidelityMETA")),
xrLocateBodyJointsFB(inst.get_proc<PFN_xrLocateBodyJointsFB>("xrLocateBodyJointsFB")),
full_body(full_body),
hip(hip)
{
xrCreateBodyTrackerFB = inst.get_proc<PFN_xrCreateBodyTrackerFB>("xrCreateBodyTrackerFB");
xrRequestBodyTrackingFidelityMETA = inst.get_proc<PFN_xrRequestBodyTrackingFidelityMETA>("xrRequestBodyTrackingFidelityMETA");
xrLocateBodyJointsFB = inst.get_proc<PFN_xrLocateBodyJointsFB>("xrLocateBodyJointsFB");
xrDestroyBodyTrackerFB = inst.get_proc<PFN_xrDestroyBodyTrackerFB>("xrDestroyBodyTrackerFB");
}
xr::fb_body_tracker::~fb_body_tracker()
{
stop();
}
void xr::fb_body_tracker::start(bool full_body, bool hip)
{
assert(xrCreateBodyTrackerFB);
this->full_body = full_body;
this->hip = hip;
auto xrCreateBodyTrackerFB = inst.get_proc<PFN_xrCreateBodyTrackerFB>("xrCreateBodyTrackerFB");
XrBodyTrackerCreateInfoFB create_info{
.type = XR_TYPE_BODY_TRACKER_CREATE_INFO_FB,
.next = nullptr,
.bodyJointSet = full_body
? XR_BODY_JOINT_SET_FULL_BODY_META
: XR_BODY_JOINT_SET_DEFAULT_FB,
};
create_info.bodyJointSet = full_body
? XR_BODY_JOINT_SET_FULL_BODY_META
: XR_BODY_JOINT_SET_DEFAULT_FB;
CHECK_XR(xrCreateBodyTrackerFB(s, &create_info, &handle));
CHECK_XR(xrCreateBodyTrackerFB(s, &create_info, &id));
// Enable IOBT.
CHECK_XR(xrRequestBodyTrackingFidelityMETA(handle, XR_BODY_TRACKING_FIDELITY_HIGH_META));
CHECK_XR(xrRequestBodyTrackingFidelityMETA(id, XR_BODY_TRACKING_FIDELITY_HIGH_META));
whitelisted_joints = get_whitelisted_joints(full_body, hip);
}
void xr::fb_body_tracker::stop()
{
full_body = false;
hip = false;
if (handle)
{
assert(xrDestroyBodyTrackerFB);
CHECK_XR(xrDestroyBodyTrackerFB(std::exchange(handle, nullptr)));
}
}
size_t xr::fb_body_tracker::count() const
{
const auto & config = application::get_config();
return get_whitelisted_joints(config.fb_lower_body, config.fb_hip).size();
}
std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses>> xr::fb_body_tracker::locate_spaces(XrTime time, XrSpace reference)
{
if (!handle)
if (!id)
return std::nullopt;
assert(xrLocateBodyJointsFB);
@@ -111,7 +86,7 @@ std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_h
.jointLocations = joints.data(),
};
if (auto res = xrLocateBodyJointsFB(handle, &locate_info, &joint_locations); !XR_SUCCEEDED(res))
if (auto res = xrLocateBodyJointsFB(id, &locate_info, &joint_locations); !XR_SUCCEEDED(res))
{
spdlog::warn("xrLocateBodyJointsFB returned {}", xr::to_string(res));
return std::nullopt;
+3 -13
View File
@@ -20,6 +20,7 @@
#include "wivrn_packets.h"
#include "utils/handle.h"
#include "xr/meta_body_tracking_fidelity.h"
#include <array>
#include <optional>
@@ -30,15 +31,10 @@ namespace xr
class instance;
class session;
class fb_body_tracker
class fb_body_tracker : public utils::handle<XrBodyTrackerFB>
{
XrSession s;
XrBodyTrackerFB handle{};
PFN_xrCreateBodyTrackerFB xrCreateBodyTrackerFB{};
PFN_xrRequestBodyTrackingFidelityMETA xrRequestBodyTrackingFidelityMETA{};
PFN_xrLocateBodyJointsFB xrLocateBodyJointsFB{};
PFN_xrDestroyBodyTrackerFB xrDestroyBodyTrackerFB{};
bool full_body{};
bool hip{};
@@ -59,13 +55,7 @@ public:
};
static std::vector<XrFullBodyJointMETA> get_whitelisted_joints(bool full_body, bool hip);
fb_body_tracker() = default;
fb_body_tracker(instance & inst, session & s);
~fb_body_tracker();
void start(bool lower_body, bool hip);
void stop();
size_t count() const;
fb_body_tracker(instance & inst, session & s, bool full_body, bool hip);
std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses>> locate_spaces(XrTime time, XrSpace reference);
};
+2 -9
View File
@@ -23,18 +23,11 @@
#include <cstdint>
#include <openxr/openxr.h>
static PFN_xrDestroyFaceTracker2FB xrDestroyFaceTracker2FB{};
XrResult xr::destroy_fb_face_tracker2(XrFaceTracker2FB id)
{
return xrDestroyFaceTracker2FB(id);
}
xr::fb_face_tracker2::fb_face_tracker2(instance & inst, session & s)
xr::fb_face_tracker2::fb_face_tracker2(instance & inst, session & s) :
handle(inst.get_proc<PFN_xrDestroyFaceTracker2FB>("xrDestroyFaceTracker2FB"))
{
auto xrCreateFaceTracker2FB = inst.get_proc<PFN_xrCreateFaceTracker2FB>("xrCreateFaceTracker2FB");
xrGetFaceExpressionWeights2FB = inst.get_proc<PFN_xrGetFaceExpressionWeights2FB>("xrGetFaceExpressionWeights2FB");
xrDestroyFaceTracker2FB = inst.get_proc<PFN_xrDestroyFaceTracker2FB>("xrDestroyFaceTracker2FB");
assert(xrCreateFaceTracker2FB);
XrFaceTrackingDataSource2FB data_sources[1];
+1 -5
View File
@@ -27,16 +27,12 @@ namespace xr
class instance;
class session;
XrResult destroy_fb_face_tracker2(XrFaceTracker2FB);
class fb_face_tracker2 : public utils::handle<XrFaceTracker2FB, destroy_fb_face_tracker2>
class fb_face_tracker2 : public utils::handle<XrFaceTracker2FB>
{
PFN_xrGetFaceExpressionWeights2FB xrGetFaceExpressionWeights2FB{};
PFN_xrDestroyFaceTracker2FB xrDestroyFaceTracker2FB{};
public:
using packet_type = wivrn::from_headset::tracking::fb_face2;
fb_face_tracker2() = default;
fb_face_tracker2(instance & inst, session & s);
void get_weights(XrTime time, packet_type & out_expressions);
+3 -10
View File
@@ -23,19 +23,12 @@
#include "xr/session.h"
#include <cassert>
static PFN_xrDestroyHandTrackerEXT xrDestroyHandTrackerEXT{};
XrResult xr::destroy_hand_tracker(XrHandTrackerEXT id)
xr::hand_tracker::hand_tracker(instance & inst, session & session, const XrHandTrackerCreateInfoEXT & info) :
handle(inst.get_proc<PFN_xrDestroyHandTrackerEXT>("xrDestroyHandTrackerEXT"))
{
return xrDestroyHandTrackerEXT(id);
}
xr::hand_tracker::hand_tracker(instance & inst, session & session, const XrHandTrackerCreateInfoEXT & info)
{
static auto xrCreateHandTrackerEXT = inst.get_proc<PFN_xrCreateHandTrackerEXT>("xrCreateHandTrackerEXT");
auto xrCreateHandTrackerEXT = inst.get_proc<PFN_xrCreateHandTrackerEXT>("xrCreateHandTrackerEXT");
assert(xrCreateHandTrackerEXT);
xrLocateHandJointsEXT = inst.get_proc<PFN_xrLocateHandJointsEXT>("xrLocateHandJointsEXT");
xrDestroyHandTrackerEXT = inst.get_proc<PFN_xrDestroyHandTrackerEXT>("xrDestroyHandTrackerEXT");
CHECK_XR(xrCreateHandTrackerEXT(session, &info, &id));
}
+1 -3
View File
@@ -28,14 +28,12 @@ namespace xr
{
class instance;
class session;
XrResult destroy_hand_tracker(XrHandTrackerEXT);
class hand_tracker : public utils::handle<XrHandTrackerEXT, destroy_hand_tracker>
class hand_tracker : public utils::handle<XrHandTrackerEXT>
{
PFN_xrLocateHandJointsEXT xrLocateHandJointsEXT{};
public:
hand_tracker() = default;
hand_tracker(instance & inst, session & session, const XrHandTrackerCreateInfoEXT & info);
using joint = std::pair<XrHandJointLocationEXT, XrHandJointVelocityEXT>;
+27 -58
View File
@@ -2,6 +2,7 @@
* WiVRn VR streaming
* Copyright (C) 2025 Awzri <awzri@awzricat.com>
* Copyright (C) 2025 Sapphire <imsapphire0@gmail.com>
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,8 +20,7 @@
#include "htc_body_tracker.h"
#include "xr/details/enumerate.h"
#include "xr/htc_exts.h"
#include "xr/xr.h"
#include "xr/session.h"
#include <openxr/openxr.h>
// Note: This utilizes extensions not present in the OpenXR spec!
@@ -28,11 +28,25 @@
// https://hub.vive.com/apidoc/api/VIVE.OpenXR.Tracker.ViveXRTracker.html
// https://hub.vive.com/apidoc/api/VIVE.OpenXR.VivePathEnumerationHelper.xrEnumeratePathsForInteractionProfileHTCDelegate.html
xr::vive_xr_tracker::vive_xr_tracker(xr::space && space) :
space(std::move(space)) {}
void xr::vive_xr_tracker::set_active(bool active)
xr::vive_xr_tracker::vive_xr_tracker(XrPath path, xr::space & space, XrSession session) :
path(path),
space(space)
{
is_active = active;
update_active(session);
}
void xr::vive_xr_tracker::update_active(XrSession session)
{
XrInputSourceLocalizedNameGetInfo get_info{
.type = XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO,
.next = nullptr,
.sourcePath = path,
.whichComponents = XR_INPUT_SOURCE_LOCALIZED_NAME_USER_PATH_BIT,
};
auto role = xr::details::enumerate<char>(xrGetInputSourceLocalizedName, session, &get_info);
is_active = not role.contains("_");
}
bool xr::vive_xr_tracker::get_active() const
{
@@ -76,63 +90,18 @@ static wivrn::from_headset::body_tracking::pose locate_space(XrSpace space, XrSp
return res;
}
std::vector<std::string> xr::htc_body_tracker::get_roles()
{
auto paths = get_paths();
std::vector<std::string> roles{};
roles.reserve(paths.size());
for (auto & path: paths)
{
XrInputSourceLocalizedNameGetInfo get_info{
.type = XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO,
.next = nullptr,
.sourcePath = path,
.whichComponents = XR_INPUT_SOURCE_LOCALIZED_NAME_USER_PATH_BIT,
};
roles.emplace_back(xr::details::enumerate<char>(xrGetInputSourceLocalizedName, s, &get_info));
}
return roles;
}
xr::htc_body_tracker::htc_body_tracker(instance & inst, session & s) :
inst(&inst),
xr::htc_body_tracker::htc_body_tracker(session & s, std::vector<std::pair<XrPath, xr::space>> & trackers) :
s(s)
{
xrEnumeratePathsForInteractionProfileHTC = inst.get_proc<PFN_xrEnumeratePathsForInteractionProfileHTC>("xrEnumeratePathsForInteractionProfileHTC");
}
std::vector<XrPath> xr::htc_body_tracker::get_paths(XrPath user_path)
{
assert(xrEnumeratePathsForInteractionProfileHTC);
XrPath tracker_profile = inst->string_to_path("/interaction_profiles/htc/vive_xr_tracker");
XrPathsForInteractionProfileEnumerateInfoHTC profile_info{
.type = XR_TYPE_UNKNOWN,
.next = nullptr,
.interactionProfile = tracker_profile,
.userPath = user_path,
};
return xr::details::enumerate<XrPath>(xrEnumeratePathsForInteractionProfileHTC, *inst, profile_info);
}
void xr::htc_body_tracker::add(xr::space && space)
{
trackers.emplace_back(std::move(space));
}
size_t xr::htc_body_tracker::count() const
{
return trackers.size();
this->trackers.reserve(trackers.size());
for (auto & [path, space]: trackers)
this->trackers.emplace_back(path, space, s);
}
void xr::htc_body_tracker::update_active()
{
auto roles = get_roles();
assert(roles.size() >= trackers.size());
for (int i = 0; i < trackers.size(); i++)
trackers[i].set_active(!roles[i].contains('_'));
for (auto & tracker: trackers)
tracker.update_active(s);
}
std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses> xr::htc_body_tracker::locate_spaces(XrTime time, XrSpace reference)
@@ -141,7 +110,7 @@ std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_t
for (int i = 0; i < trackers.size(); i++)
{
auto & tracker = trackers.at(i);
auto & tracker = trackers[i];
wivrn::from_headset::body_tracking::pose pose{
.pose = {},
.flags = 0,
+6 -15
View File
@@ -2,6 +2,7 @@
* WiVRn VR streaming
* Copyright (C) 2025 Awzri <awzri@awzricat.com>
* Copyright (C) 2025 Sapphire <imsapphire0@gmail.com>
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,9 +21,7 @@
#pragma once
#include "wivrn_packets.h"
#include "xr/htc_exts.h"
#include "xr/space.h"
#include <string>
#include <vector>
#include <openxr/openxr.h>
@@ -34,32 +33,24 @@ class session;
class vive_xr_tracker
{
bool is_active = false;
xr::space space;
XrPath path;
xr::space & space;
public:
vive_xr_tracker(xr::space && s);
void set_active(bool active);
vive_xr_tracker(XrPath path, xr::space & s, XrSession session);
void update_active(XrSession session);
bool get_active() const;
XrSpace get_space() const;
};
class htc_body_tracker
{
instance * inst;
XrSession s;
std::vector<vive_xr_tracker> trackers;
PFN_xrEnumeratePathsForInteractionProfileHTC xrEnumeratePathsForInteractionProfileHTC{};
std::vector<std::string> get_roles();
public:
htc_body_tracker() = default;
htc_body_tracker(instance & inst, session & s);
htc_body_tracker(session & s, std::vector<std::pair<XrPath, xr::space>> & trackers);
std::vector<XrPath> get_paths(XrPath user_path = XR_NULL_PATH);
void add(xr::space && space);
size_t count() const;
void update_active();
std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses> locate_spaces(XrTime time, XrSpace reference);
};
+21 -31
View File
@@ -18,53 +18,43 @@
*/
#include "htc_face_tracker.h"
#include "wivrn_packets.h"
#include "xr/instance.h"
#include "xr/session.h"
#include <openxr/openxr.h>
xr::htc_face_tracker::htc_face_tracker(instance & inst, session & s, bool eye, bool lip) :
s(s)
static XrFacialTrackerHTC make_tracker(xr::instance & inst, xr::session & s, XrFacialTrackingTypeHTC type)
{
if (!eye && !lip)
return;
xrCreateFacialTrackerHTC = inst.get_proc<PFN_xrCreateFacialTrackerHTC>("xrCreateFacialTrackerHTC");
xrGetFacialExpressionsHTC = inst.get_proc<PFN_xrGetFacialExpressionsHTC>("xrGetFacialExpressionsHTC");
xrDestroyFacialTrackerHTC = inst.get_proc<PFN_xrDestroyFacialTrackerHTC>("xrDestroyFacialTrackerHTC");
XrFacialTrackerCreateInfoHTC create_info{
.type = XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC,
.next = nullptr,
.facialTrackingType = type,
};
if (eye)
{
create_info.facialTrackingType = XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC;
xrCreateFacialTrackerHTC(s, &create_info, &this->eye);
}
if (lip)
{
create_info.facialTrackingType = XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC;
xrCreateFacialTrackerHTC(s, &create_info, &this->lip);
}
auto xrCreateFacialTrackerHTC = inst.get_proc<PFN_xrCreateFacialTrackerHTC>("xrCreateFacialTrackerHTC");
XrFacialTrackerHTC id;
CHECK_XR(xrCreateFacialTrackerHTC(s, &create_info, &id));
return id;
}
xr::htc_face_tracker::~htc_face_tracker()
static XrFacialTrackerHTC get_eye_tracker(xr::instance & inst, xr::session & s)
{
if (!xrDestroyFacialTrackerHTC)
return;
static XrFacialTrackerHTC res = make_tracker(inst, s, XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC);
return res;
}
static XrFacialTrackerHTC get_lip_tracker(xr::instance & inst, xr::session & s)
{
static XrFacialTrackerHTC res = make_tracker(inst, s, XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC);
return res;
}
if (eye)
CHECK_XR(xrDestroyFacialTrackerHTC(std::exchange(eye, nullptr)));
if (lip)
CHECK_XR(xrDestroyFacialTrackerHTC(std::exchange(lip, nullptr)));
xr::htc_face_tracker::htc_face_tracker(instance & inst, session & s, bool eye, bool lip) :
xrGetFacialExpressionsHTC(inst.get_proc<PFN_xrGetFacialExpressionsHTC>("xrGetFacialExpressionsHTC")),
eye(eye ? get_eye_tracker(inst, s) : XR_NULL_HANDLE),
lip(lip ? get_lip_tracker(inst, s) : XR_NULL_HANDLE)
{
}
void xr::htc_face_tracker::get_weights(XrTime time, packet_type & out_expressions)
{
if (!(eye || lip) || !xrGetFacialExpressionsHTC)
return;
assert(xrGetFacialExpressionsHTC);
XrFacialExpressionsHTC expressions{
.type = XR_TYPE_FACIAL_EXPRESSIONS_HTC,
+3 -9
View File
@@ -19,7 +19,6 @@
#pragma once
#include "utils/handle.h"
#include "wivrn_packets.h"
#include <openxr/openxr.h>
@@ -30,18 +29,13 @@ class session;
class htc_face_tracker
{
XrSession s;
XrFacialTrackerHTC eye{};
XrFacialTrackerHTC lip{};
PFN_xrCreateFacialTrackerHTC xrCreateFacialTrackerHTC{};
PFN_xrGetFacialExpressionsHTC xrGetFacialExpressionsHTC{};
PFN_xrDestroyFacialTrackerHTC xrDestroyFacialTrackerHTC{};
PFN_xrGetFacialExpressionsHTC xrGetFacialExpressionsHTC;
XrFacialTrackerHTC eye;
XrFacialTrackerHTC lip;
public:
using packet_type = wivrn::from_headset::tracking::htc_face;
htc_face_tracker() = default;
htc_face_tracker(instance & inst, session & s, bool eye, bool lip);
~htc_face_tracker();
void get_weights(XrTime time, packet_type & out_expressions);
};
+16 -1
View File
@@ -19,8 +19,9 @@
#include "instance.h"
#include "xr.h"
#include "xr/details/enumerate.h"
#include "xr/htc_exts.h"
#include "xr/to_string.h"
#include <algorithm>
#include <cassert>
#include <cstring>
@@ -284,6 +285,20 @@ XrPath xr::instance::string_to_path(const std::string & path)
return p;
}
std::vector<XrPath> xr::instance::enumerate_paths_for_interaction_profile(XrPath interaction_profile, XrPath user_path)
{
assert(has_extension(XR_HTC_PATH_ENUMERATION_EXTENSION_NAME));
static auto xrEnumeratePathsForInteractionProfileHTC = get_proc<PFN_xrEnumeratePathsForInteractionProfileHTC>("xrEnumeratePathsForInteractionProfileHTC");
XrPathsForInteractionProfileEnumerateInfoHTC profile_info{
.type = XR_TYPE_UNKNOWN,
.next = nullptr,
.interactionProfile = interaction_profile,
.userPath = user_path,
};
return xr::details::enumerate<XrPath>(xrEnumeratePathsForInteractionProfileHTC, id, profile_info);
}
bool xr::instance::poll_event(xr::event & buffer)
{
buffer.header.type = XR_TYPE_EVENT_DATA_BUFFER;
+2
View File
@@ -90,6 +90,8 @@ public:
XrPath string_to_path(const std::string & path);
std::string path_to_string(XrPath path);
std::vector<XrPath> enumerate_paths_for_interaction_profile(XrPath interaction_profile, XrPath user_path = XR_NULL_PATH);
void suggest_bindings(const std::string & interaction_profile,
std::vector<XrActionSuggestedBinding> & bindings);
+5 -24
View File
@@ -23,27 +23,9 @@
#include "xr/check.h"
#include "xr/instance.h"
static PFN_xrDestroyPassthroughLayerFB xrDestroyPassthroughLayerFB{};
static PFN_xrDestroyPassthroughFB xrDestroyPassthroughFB{};
static PFN_xrDestroyPassthroughHTC xrDestroyPassthroughHTC{};
XrResult xr::destroy_passthrough_layer_fb(XrPassthroughLayerFB id)
xr::passthrough_layer_fb::passthrough_layer_fb(instance & inst, session & s, const XrPassthroughLayerCreateInfoFB & info) :
handle(inst.get_proc<PFN_xrDestroyPassthroughLayerFB>("xrDestroyPassthroughLayerFB"))
{
return xrDestroyPassthroughLayerFB(id);
}
XrResult xr::destroy_passthrough_fb(XrPassthroughFB id)
{
return xrDestroyPassthroughFB(id);
}
XrResult xr::destroy_passthrough_htc(XrPassthroughHTC id)
{
return xrDestroyPassthroughHTC(id);
}
xr::passthrough_layer_fb::passthrough_layer_fb(instance & inst, session & s, const XrPassthroughLayerCreateInfoFB & info)
{
xrDestroyPassthroughLayerFB = inst.get_proc<PFN_xrDestroyPassthroughLayerFB>("xrDestroyPassthroughLayerFB");
PFN_xrCreatePassthroughLayerFB xrCreatePassthroughLayerFB = inst.get_proc<PFN_xrCreatePassthroughLayerFB>("xrCreatePassthroughLayerFB");
CHECK_XR(xrCreatePassthroughLayerFB(s, &info, &id));
}
@@ -51,7 +33,6 @@ xr::passthrough_layer_fb::passthrough_layer_fb(instance & inst, session & s, con
static XrPassthroughFB create_passthrough_fb(xr::instance & inst, xr::session & s)
{
PFN_xrCreatePassthroughFB xrCreatePassthroughFB = inst.get_proc<PFN_xrCreatePassthroughFB>("xrCreatePassthroughFB");
xrDestroyPassthroughFB = inst.get_proc<PFN_xrDestroyPassthroughFB>("xrDestroyPassthroughFB");
XrPassthroughFB id;
XrPassthroughCreateInfoFB info{
@@ -64,7 +45,7 @@ static XrPassthroughFB create_passthrough_fb(xr::instance & inst, xr::session &
}
xr::passthrough_fb::passthrough_fb(instance & inst, session & s) :
utils::handle<XrPassthroughFB, destroy_passthrough_fb>(create_passthrough_fb(inst, s)),
handle(create_passthrough_fb(inst, s), inst.get_proc<PFN_xrDestroyPassthroughFB>("xrDestroyPassthroughFB")),
passthrough_layer(inst, s, XrPassthroughLayerCreateInfoFB{
.type = XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB,
.passthrough = id,
@@ -98,10 +79,10 @@ void xr::passthrough_fb::pause()
CHECK_XR(xrPassthroughPauseFB(id));
}
xr::passthrough_htc::passthrough_htc(instance & inst, session & s)
xr::passthrough_htc::passthrough_htc(instance & inst, session & s) :
handle(inst.get_proc<PFN_xrDestroyPassthroughHTC>("xrDestroyPassthroughHTC"))
{
PFN_xrCreatePassthroughHTC xrCreatePassthroughHTC = inst.get_proc<PFN_xrCreatePassthroughHTC>("xrCreatePassthroughHTC");
xrDestroyPassthroughHTC = inst.get_proc<PFN_xrDestroyPassthroughHTC>("xrDestroyPassthroughHTC");
XrPassthroughCreateInfoHTC info{
.type = XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC,
+3 -7
View File
@@ -28,17 +28,13 @@ namespace xr
class instance;
class session;
XrResult destroy_passthrough_layer_fb(XrPassthroughLayerFB);
XrResult destroy_passthrough_fb(XrPassthroughFB);
XrResult destroy_passthrough_htc(XrPassthroughHTC);
class passthrough_layer_fb : public utils::handle<XrPassthroughLayerFB, destroy_passthrough_layer_fb>
class passthrough_layer_fb : public utils::handle<XrPassthroughLayerFB>
{
public:
passthrough_layer_fb(instance &, session &, const XrPassthroughLayerCreateInfoFB &);
};
class passthrough_fb : public utils::handle<XrPassthroughFB, destroy_passthrough_fb>
class passthrough_fb : public utils::handle<XrPassthroughFB>
{
PFN_xrPassthroughStartFB xrPassthroughStartFB{};
PFN_xrPassthroughPauseFB xrPassthroughPauseFB{};
@@ -59,7 +55,7 @@ public:
}
};
class passthrough_htc : public utils::handle<XrPassthroughHTC, destroy_passthrough_htc>
class passthrough_htc : public utils::handle<XrPassthroughHTC>
{
XrCompositionLayerPassthroughHTC composition_layer;
+5 -13
View File
@@ -18,19 +18,15 @@
#include "pico_body_tracker.h"
#include "spdlog/spdlog.h"
#include "xr/xr.h"
#include "xr/instance.h"
#include "xr/session.h"
#include "xr/to_string.h"
#include <openxr/openxr.h>
static_assert(xr::pico_body_tracker::joint_whitelist.size() <= wivrn::from_headset::body_tracking::max_tracked_poses);
static PFN_xrDestroyBodyTrackerBD xrDestroyBodyTrackerBD{};
XrResult xr::destroy_pico_body_tracker(XrBodyTrackerBD id)
{
return xrDestroyBodyTrackerBD(id);
}
xr::pico_body_tracker::pico_body_tracker(instance & inst, session & s)
xr::pico_body_tracker::pico_body_tracker(instance & inst, session & s) :
handle(inst.get_proc<PFN_xrDestroyBodyTrackerBD>("xrDestroyBodyTrackerBD"))
{
auto xrCreateBodyTrackerBD = inst.get_proc<PFN_xrCreateBodyTrackerBD>("xrCreateBodyTrackerBD");
xrLocateBodyJointsBD = inst.get_proc<PFN_xrLocateBodyJointsBD>("xrLocateBodyJointsBD");
@@ -45,10 +41,6 @@ xr::pico_body_tracker::pico_body_tracker(instance & inst, session & s)
CHECK_XR(xrCreateBodyTrackerBD(s, &create_info, &id));
}
size_t xr::pico_body_tracker::count() const
{
return joint_whitelist.size();
}
std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses>> xr::pico_body_tracker::locate_spaces(XrTime time, XrSpace reference)
{
if (!xrLocateBodyJointsBD)
+1 -5
View File
@@ -30,9 +30,7 @@ namespace xr
class instance;
class session;
XrResult destroy_pico_body_tracker(XrBodyTrackerBD);
class pico_body_tracker : public utils::handle<XrBodyTrackerBD, destroy_pico_body_tracker>
class pico_body_tracker : public utils::handle<XrBodyTrackerBD>
{
PFN_xrLocateBodyJointsBD xrLocateBodyJointsBD{};
@@ -48,10 +46,8 @@ public:
XR_BODY_JOINT_RIGHT_FOOT_BD,
};
pico_body_tracker() = default;
pico_body_tracker(instance & inst, session & s);
size_t count() const;
std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses>> locate_spaces(XrTime time, XrSpace reference);
};
} // namespace xr
+135 -124
View File
@@ -18,152 +18,163 @@
*/
#include "pico_face_tracker.h"
#include "spdlog/common.h"
#include "spdlog/spdlog.h"
#include "wivrn_packets.h"
#include "xr/instance.h"
#include "xr/pico_eye_types.h"
#include "xr/pico_eye_types_reflection.h"
#include "xr/session.h"
#include "xr/to_string.h"
#include <cstring>
#include <stdexcept>
#include <mutex>
#include <openxr/openxr.h>
xr::pico_face_tracker::pico_face_tracker(instance & inst, session & s_) :
s(s_)
struct xr::pico_face_tracker::impl
{
xrStartEyeTrackingPICO = inst.get_proc<PFN_xrStartEyeTrackingPICO>("xrStartEyeTrackingPICO");
xrStopEyeTrackingPICO = inst.get_proc<PFN_xrStopEyeTrackingPICO>("xrStopEyeTrackingPICO");
xrSetTrackingModePICO = inst.get_proc<PFN_xrSetTrackingModePICO>("xrSetTrackingModePICO");
xrGetFaceTrackingDataPICO = inst.get_proc<PFN_xrGetFaceTrackingDataPICO>("xrGetFaceTrackingDataPICO");
}
xr::pico_face_tracker::~pico_face_tracker()
{
stop();
}
const XrSession s;
const PFN_xrStopEyeTrackingPICO xrStopEyeTrackingPICO;
const PFN_xrGetFaceTrackingDataPICO xrGetFaceTrackingDataPICO;
void xr::pico_face_tracker::start()
{
if (started)
throw std::invalid_argument("face tracking already started");
CHECK_XR(xrStartEyeTrackingPICO(s));
CHECK_XR(xrSetTrackingModePICO(s, XR_TRACKING_MODE_FACE_BIT_PICO));
started = true;
}
void xr::pico_face_tracker::stop()
{
if (!started)
return;
if (auto res = xrStopEyeTrackingPICO(s, XR_TRACKING_MODE_FACE_BIT_PICO); !XR_SUCCEEDED(res))
spdlog::warn("Failed to deactivate face tracking: {}", xr::to_string(res));
started = false;
}
void xr::pico_face_tracker::get_weights(XrTime time, wivrn::from_headset::tracking::fb_face2 & out_expressions)
{
out_expressions.is_valid = false;
out_expressions.is_eye_following_blendshapes_valid = false;
if (!started or !xrGetFaceTrackingDataPICO)
return;
XrFaceTrackingDataPICO face_tracking{.time = 0};
if (auto res = xrGetFaceTrackingDataPICO(s, time, XR_GET_FACE_DATA_DEFAULT_PICO, &face_tracking); !XR_SUCCEEDED(res))
impl(instance & inst, session & s) :
s(s),
xrStopEyeTrackingPICO(inst.get_proc<PFN_xrStopEyeTrackingPICO>("xrStopEyeTrackingPICO")),
xrGetFaceTrackingDataPICO(inst.get_proc<PFN_xrGetFaceTrackingDataPICO>("xrGetFaceTrackingDataPICO"))
{
spdlog::warn("Unable to get face tracking data: xrGetFaceTrackingDataPICO returned {}", xr::to_string(res));
return;
auto xrStartEyeTrackingPICO = inst.get_proc<PFN_xrStartEyeTrackingPICO>("xrStartEyeTrackingPICO");
auto xrSetTrackingModePICO = inst.get_proc<PFN_xrSetTrackingModePICO>("xrSetTrackingModePICO");
CHECK_XR(xrStartEyeTrackingPICO(s));
CHECK_XR(xrSetTrackingModePICO(s, XR_TRACKING_MODE_FACE_BIT_PICO));
}
if (face_tracking.time == 0)
return;
~impl()
{
if (auto res = xrStopEyeTrackingPICO(s, XR_TRACKING_MODE_FACE_BIT_PICO); not XR_SUCCEEDED(res))
spdlog::warn("Failed to deactivate face tracking: {}", xr::to_string(res));
}
void get_weights(XrTime time, wivrn::from_headset::tracking::fb_face2 & out_expressions)
{
out_expressions.is_valid = false;
out_expressions.is_eye_following_blendshapes_valid = false;
XrFaceTrackingDataPICO face_tracking{.time = 0};
if (auto res = xrGetFaceTrackingDataPICO(s, time, XR_GET_FACE_DATA_DEFAULT_PICO, &face_tracking); !XR_SUCCEEDED(res))
{
spdlog::warn("Unable to get face tracking data: xrGetFaceTrackingDataPICO returned {}", xr::to_string(res));
return;
}
if (face_tracking.time == 0)
return;
#define MAP_EXPRESSION(fb, pico) \
out_expressions.weights[fb] = face_tracking.blendShapeWeight[pico];
// Map the blendshapes.
out_expressions.weights.fill(0.f);
out_expressions.confidences.fill(1.f);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_BROW_LOWERER_L_FB, XR_BS_BROWDOWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_BROW_LOWERER_R_FB, XR_BS_BROWDOWN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHEEK_PUFF_L_FB, XR_BS_CHEEKPUFF_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHEEK_PUFF_R_FB, XR_BS_CHEEKPUFF_PICO);
// XR_FACE_EXPRESSION2_CHEEK_RAISER_L_FB
// XR_FACE_EXPRESSION2_CHEEK_RAISER_R_FB
// XR_FACE_EXPRESSION2_CHEEK_SUCK_L_FB
// XR_FACE_EXPRESSION2_CHEEK_SUCK_R_FB
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHIN_RAISER_B_FB, XR_BS_MOUTHSHRUGLOWER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHIN_RAISER_T_FB, XR_BS_MOUTHSHRUGUPPER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_DIMPLER_L_FB, XR_BS_MOUTHDIMPLE_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_DIMPLER_R_FB, XR_BS_MOUTHDIMPLE_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_CLOSED_L_FB, XR_BS_EYEBLINK_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_CLOSED_R_FB, XR_BS_EYEBLINK_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_DOWN_L_FB, XR_BS_EYELOOKDOWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_DOWN_R_FB, XR_BS_EYELOOKDOWN_R_PICO);
// Map the blendshapes.
out_expressions.weights.fill(0.f);
out_expressions.confidences.fill(1.f);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_BROW_LOWERER_L_FB, XR_BS_BROWDOWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_BROW_LOWERER_R_FB, XR_BS_BROWDOWN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHEEK_PUFF_L_FB, XR_BS_CHEEKPUFF_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHEEK_PUFF_R_FB, XR_BS_CHEEKPUFF_PICO);
// XR_FACE_EXPRESSION2_CHEEK_RAISER_L_FB
// XR_FACE_EXPRESSION2_CHEEK_RAISER_R_FB
// XR_FACE_EXPRESSION2_CHEEK_SUCK_L_FB
// XR_FACE_EXPRESSION2_CHEEK_SUCK_R_FB
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHIN_RAISER_B_FB, XR_BS_MOUTHSHRUGLOWER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_CHIN_RAISER_T_FB, XR_BS_MOUTHSHRUGUPPER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_DIMPLER_L_FB, XR_BS_MOUTHDIMPLE_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_DIMPLER_R_FB, XR_BS_MOUTHDIMPLE_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_CLOSED_L_FB, XR_BS_EYEBLINK_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_CLOSED_R_FB, XR_BS_EYEBLINK_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_DOWN_L_FB, XR_BS_EYELOOKDOWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_DOWN_R_FB, XR_BS_EYELOOKDOWN_R_PICO);
// "out" is left for the left eye, right for the right eye
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_LEFT_L_FB, XR_BS_EYELOOKOUT_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_RIGHT_L_FB, XR_BS_EYELOOKIN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_LEFT_R_FB, XR_BS_EYELOOKIN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_RIGHT_R_FB, XR_BS_EYELOOKOUT_R_PICO);
// "out" is left for the left eye, right for the right eye
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_LEFT_L_FB, XR_BS_EYELOOKOUT_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_RIGHT_L_FB, XR_BS_EYELOOKIN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_LEFT_R_FB, XR_BS_EYELOOKIN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_RIGHT_R_FB, XR_BS_EYELOOKOUT_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_UP_L_FB, XR_BS_EYELOOKUP_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_UP_R_FB, XR_BS_EYELOOKUP_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_INNER_BROW_RAISER_L_FB, XR_BS_BROWINNERUP_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_INNER_BROW_RAISER_R_FB, XR_BS_BROWINNERUP_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_DROP_FB, XR_BS_JAWOPEN_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_SIDEWAYS_LEFT_FB, XR_BS_JAWLEFT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_SIDEWAYS_RIGHT_FB, XR_BS_JAWRIGHT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_THRUST_FB, XR_BS_JAWFORWARD_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LID_TIGHTENER_L_FB, XR_BS_EYESQUINT_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LID_TIGHTENER_R_FB, XR_BS_EYESQUINT_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_DEPRESSOR_L_FB, XR_BS_MOUTHFROWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_DEPRESSOR_R_FB, XR_BS_MOUTHFROWN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_PULLER_L_FB, XR_BS_MOUTHSMILE_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_PULLER_R_FB, XR_BS_MOUTHSMILE_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_LB_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_LT_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_RB_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_RT_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PRESSOR_L_FB, XR_BS_MOUTHPRESS_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PRESSOR_R_FB, XR_BS_MOUTHPRESS_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PUCKER_L_FB, XR_BS_MOUTHPUCKER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PUCKER_R_FB, XR_BS_MOUTHPUCKER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_STRETCHER_L_FB, XR_BS_MOUTHSTRETCH_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_STRETCHER_R_FB, XR_BS_MOUTHSTRETCH_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_LB_FB, XR_BS_MOUTHROLLLOWER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_LT_FB, XR_BS_MOUTHROLLLOWER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_RT_FB, XR_BS_MOUTHROLLUPPER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_RB_FB, XR_BS_MOUTHROLLUPPER_PICO);
// XR_FACE_EXPRESSION2_LIP_TIGHTENER_L_FB
// XR_FACE_EXPRESSION2_LIP_TIGHTENER_R_FB
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIPS_TOWARD_FB, XR_BS_MOUTHCLOSE_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LOWER_LIP_DEPRESSOR_L_FB, XR_BS_MOUTHLOWERDOWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LOWER_LIP_DEPRESSOR_R_FB, XR_BS_MOUTHLOWERDOWN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_MOUTH_LEFT_FB, XR_BS_MOUTHLEFT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_MOUTH_RIGHT_FB, XR_BS_MOUTHRIGHT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_NOSE_WRINKLER_L_FB, XR_BS_NOSESNEER_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_NOSE_WRINKLER_R_FB, XR_BS_NOSESNEER_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_OUTER_BROW_RAISER_L_FB, XR_BS_BROWOUTERUP_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_OUTER_BROW_RAISER_R_FB, XR_BS_BROWOUTERUP_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LID_RAISER_L_FB, XR_BS_EYEWIDE_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LID_RAISER_R_FB, XR_BS_EYEWIDE_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LIP_RAISER_L_FB, XR_BS_MOUTHUPPERUP_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LIP_RAISER_R_FB, XR_BS_MOUTHUPPERUP_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_TONGUE_OUT_FB, XR_BS_TONGUEOUT_PICO);
// XR_FACE_EXPRESSION2_TONGUE_TIP_INTERDENTAL_FB
// XR_FACE_EXPRESSION2_TONGUE_TIP_ALVEOLAR_FB
// XR_FACE_EXPRESSION2_TONGUE_FRONT_DORSAL_PALATE_FB
// XR_FACE_EXPRESSION2_TONGUE_MID_DORSAL_PALATE_FB
// XR_FACE_EXPRESSION2_TONGUE_BACK_DORSAL_VELAR_FB
// XR_FACE_EXPRESSION2_TONGUE_RETREAT_FB
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_UP_L_FB, XR_BS_EYELOOKUP_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_EYES_LOOK_UP_R_FB, XR_BS_EYELOOKUP_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_INNER_BROW_RAISER_L_FB, XR_BS_BROWINNERUP_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_INNER_BROW_RAISER_R_FB, XR_BS_BROWINNERUP_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_DROP_FB, XR_BS_JAWOPEN_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_SIDEWAYS_LEFT_FB, XR_BS_JAWLEFT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_SIDEWAYS_RIGHT_FB, XR_BS_JAWRIGHT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_JAW_THRUST_FB, XR_BS_JAWFORWARD_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LID_TIGHTENER_L_FB, XR_BS_EYESQUINT_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LID_TIGHTENER_R_FB, XR_BS_EYESQUINT_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_DEPRESSOR_L_FB, XR_BS_MOUTHFROWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_DEPRESSOR_R_FB, XR_BS_MOUTHFROWN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_PULLER_L_FB, XR_BS_MOUTHSMILE_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_CORNER_PULLER_R_FB, XR_BS_MOUTHSMILE_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_LB_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_LT_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_RB_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_FUNNELER_RT_FB, XR_BS_MOUTHFUNNEL_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PRESSOR_L_FB, XR_BS_MOUTHPRESS_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PRESSOR_R_FB, XR_BS_MOUTHPRESS_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PUCKER_L_FB, XR_BS_MOUTHPUCKER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_PUCKER_R_FB, XR_BS_MOUTHPUCKER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_STRETCHER_L_FB, XR_BS_MOUTHSTRETCH_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_STRETCHER_R_FB, XR_BS_MOUTHSTRETCH_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_LB_FB, XR_BS_MOUTHROLLLOWER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_LT_FB, XR_BS_MOUTHROLLLOWER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_RT_FB, XR_BS_MOUTHROLLUPPER_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIP_SUCK_RB_FB, XR_BS_MOUTHROLLUPPER_PICO);
// XR_FACE_EXPRESSION2_LIP_TIGHTENER_L_FB
// XR_FACE_EXPRESSION2_LIP_TIGHTENER_R_FB
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LIPS_TOWARD_FB, XR_BS_MOUTHCLOSE_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LOWER_LIP_DEPRESSOR_L_FB, XR_BS_MOUTHLOWERDOWN_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_LOWER_LIP_DEPRESSOR_R_FB, XR_BS_MOUTHLOWERDOWN_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_MOUTH_LEFT_FB, XR_BS_MOUTHLEFT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_MOUTH_RIGHT_FB, XR_BS_MOUTHRIGHT_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_NOSE_WRINKLER_L_FB, XR_BS_NOSESNEER_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_NOSE_WRINKLER_R_FB, XR_BS_NOSESNEER_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_OUTER_BROW_RAISER_L_FB, XR_BS_BROWOUTERUP_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_OUTER_BROW_RAISER_R_FB, XR_BS_BROWOUTERUP_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LID_RAISER_L_FB, XR_BS_EYEWIDE_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LID_RAISER_R_FB, XR_BS_EYEWIDE_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LIP_RAISER_L_FB, XR_BS_MOUTHUPPERUP_L_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_UPPER_LIP_RAISER_R_FB, XR_BS_MOUTHUPPERUP_R_PICO);
MAP_EXPRESSION(XR_FACE_EXPRESSION2_TONGUE_OUT_FB, XR_BS_TONGUEOUT_PICO);
// XR_FACE_EXPRESSION2_TONGUE_TIP_INTERDENTAL_FB
// XR_FACE_EXPRESSION2_TONGUE_TIP_ALVEOLAR_FB
// XR_FACE_EXPRESSION2_TONGUE_FRONT_DORSAL_PALATE_FB
// XR_FACE_EXPRESSION2_TONGUE_MID_DORSAL_PALATE_FB
// XR_FACE_EXPRESSION2_TONGUE_BACK_DORSAL_VELAR_FB
// XR_FACE_EXPRESSION2_TONGUE_RETREAT_FB
#undef MAP_EXPRESSION
out_expressions.is_valid = true;
out_expressions.is_eye_following_blendshapes_valid = true;
out_expressions.is_valid = true;
out_expressions.is_eye_following_blendshapes_valid = true;
}
};
xr::pico_face_tracker::pico_face_tracker(instance & inst, session & s)
{
// The API has a global start and stop method
// use a shared handle so we can have independent objects
// and start/stop accordingly
static std::mutex mutex;
std::unique_lock lock(mutex);
static std::weak_ptr<impl> instance;
if (auto shared = instance.lock())
{
i = std::move(shared);
return;
}
i = std::make_unique<impl>(inst, s);
instance = i;
}
void xr::pico_face_tracker::get_weights(XrTime time, packet_type & out_expressions)
{
return i->get_weights(time, out_expressions);
}
+2 -13
View File
@@ -20,8 +20,6 @@
#pragma once
#include "wivrn_packets.h"
#include "xr/pico_eye_types.h"
#include "xr/pico_eye_types_reflection.h"
#include <openxr/openxr.h>
namespace xr
@@ -31,22 +29,13 @@ class session;
class pico_face_tracker
{
PFN_xrStartEyeTrackingPICO xrStartEyeTrackingPICO{};
PFN_xrStopEyeTrackingPICO xrStopEyeTrackingPICO{};
PFN_xrSetTrackingModePICO xrSetTrackingModePICO{};
PFN_xrGetFaceTrackingDataPICO xrGetFaceTrackingDataPICO{};
XrSession s;
bool started{};
struct impl;
std::shared_ptr<impl> i;
public:
using packet_type = wivrn::from_headset::tracking::fb_face2;
pico_face_tracker() = default;
pico_face_tracker(instance & inst, session & s);
~pico_face_tracker();
void start();
void stop();
void get_weights(XrTime time, packet_type & out_expressions);
};
} // namespace xr
+9 -8
View File
@@ -19,18 +19,19 @@
#include "session.h"
#include "application.h"
#include "details/enumerate.h"
#include "openxr/openxr.h"
#include "utils/contains.h"
#include "xr/instance.h"
#include "xr/system.h"
#include "xr/to_string.h"
#include <ranges>
#include <vulkan/vulkan.h>
#include <openxr/openxr_platform.h>
xr::session::session(xr::instance & inst, xr::system & sys, vk::raii::Instance & vk_inst, vk::raii::PhysicalDevice & pdev, vk::raii::Device & dev, int queue_family_index) :
inst(&inst)
xr::session::session(xr::instance & inst, xr::system & sys, vk::raii::Instance & vk_inst, vk::raii::PhysicalDevice & pdev, vk::raii::Device & dev, thread_safe<vk::raii::Queue> & queue, int queue_family_index) :
inst(&inst),
queue(&queue)
{
XrGraphicsBindingVulkan2KHR vulkan_binding{
.type = XR_TYPE_GRAPHICS_BINDING_VULKAN2_KHR,
@@ -127,7 +128,7 @@ void xr::session::begin_frame()
.type = XR_TYPE_FRAME_BEGIN_INFO,
};
auto lock = application::get_queue().lock();
auto lock = queue->lock();
CHECK_XR(xrBeginFrame(id, &begin_info));
}
@@ -141,7 +142,7 @@ void xr::session::end_frame(XrTime display_time, const std::vector<XrComposition
.layers = layers.data(),
};
auto lock = application::get_queue().lock();
auto lock = queue->lock();
CHECK_XR(xrEndFrame(id, &end_info));
}
@@ -344,14 +345,14 @@ void xr::session::enable_passthrough(xr::system & system)
if (not std::holds_alternative<std::monostate>(passthrough))
return;
if (system.passthrough_supported() == xr::system::passthrough_type::no_passthrough)
if (system.passthrough_supported() == xr::passthrough_type::none)
return;
if (utils::contains(application::get_xr_extensions(), XR_FB_PASSTHROUGH_EXTENSION_NAME))
if (inst->has_extension(XR_FB_PASSTHROUGH_EXTENSION_NAME))
{
passthrough.emplace<xr::passthrough_fb>(*inst, *this);
}
else if (utils::contains(application::get_xr_extensions(), XR_HTC_PASSTHROUGH_EXTENSION_NAME))
else if (inst->has_extension(XR_HTC_PASSTHROUGH_EXTENSION_NAME))
{
passthrough.emplace<xr::passthrough_htc>(*inst, *this);
}
+3 -1
View File
@@ -20,6 +20,7 @@
#pragma once
#include "utils/handle.h"
#include "utils/thread_safe.h"
#include <span>
#include <string>
#include <vector>
@@ -39,10 +40,11 @@ class session : public utils::handle<XrSession, xrDestroySession>
{
instance * inst = nullptr;
xr::passthrough passthrough;
thread_safe<vk::raii::Queue> * queue = nullptr;
public:
session() = default;
session(instance &, system &, vk::raii::Instance &, vk::raii::PhysicalDevice &, vk::raii::Device &, int queue_family_index);
session(instance &, system &, vk::raii::Instance &, vk::raii::PhysicalDevice &, vk::raii::Device &, thread_safe<vk::raii::Queue> & queue, int queue_family_index);
std::vector<XrReferenceSpaceType> get_reference_spaces() const;
space create_reference_space(XrReferenceSpaceType ref, const XrPosef & pose = {{0, 0, 0, 1}, {0, 0, 0}});
+28 -7
View File
@@ -19,12 +19,14 @@
#include "system.h"
#include "application.h"
#include "body_tracker.h"
#include "details/enumerate.h"
#include "face_tracker.h"
#include "openxr/openxr.h"
#include "utils/contains.h"
#include "vk/check.h"
#include "xr/check.h"
#include "xr/instance.h"
#include <cassert>
#include <openxr/openxr_platform.h>
@@ -41,6 +43,12 @@ xr::system::system(xr::instance & inst, XrFormFactor formfactor)
CHECK_XR(xrGetSystem(inst, &system_info, &id));
assert(id != XR_NULL_SYSTEM_ID);
if (inst.has_extension(XR_EXT_HAND_TRACKING_EXTENSION_NAME))
hand_tracking_supported_ = hand_tracking_properties().supportsHandTracking;
body_tracker = xr::body_tracker_supported(inst, *this);
face_tracker = xr::face_tracker_supported(inst, *this);
}
XrGraphicsRequirementsVulkan2KHR xr::system::graphics_requirements() const
@@ -195,16 +203,15 @@ XrSystemBodyTrackingPropertiesBD xr::system::bd_body_tracking_properties() const
return body_tracking_prop;
}
xr::system::passthrough_type xr::system::passthrough_supported() const
xr::passthrough_type xr::system::passthrough_supported() const
{
if (utils::contains(environment_blend_modes(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO), XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND))
return passthrough_type::color;
const std::vector<std::string> & xr_extensions = application::get_xr_extensions();
if (utils::contains(xr_extensions, XR_HTC_PASSTHROUGH_EXTENSION_NAME))
if (inst->has_extension(XR_HTC_PASSTHROUGH_EXTENSION_NAME))
return passthrough_type::color;
if (utils::contains(xr_extensions, XR_FB_PASSTHROUGH_EXTENSION_NAME))
if (inst->has_extension(XR_FB_PASSTHROUGH_EXTENSION_NAME))
{
XrSystemPassthroughProperties2FB passthrough_prop2{
.type = XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB,
@@ -224,7 +231,7 @@ xr::system::passthrough_type xr::system::passthrough_supported() const
if (passthrough_prop.supportsPassthrough)
{
if (!(passthrough_prop2.capabilities & XR_PASSTHROUGH_CAPABILITY_BIT_FB))
return passthrough_type::no_passthrough;
return passthrough_type::none;
if (passthrough_prop2.capabilities & XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB)
return passthrough_type::color;
@@ -233,7 +240,21 @@ xr::system::passthrough_type xr::system::passthrough_supported() const
}
}
return passthrough_type::no_passthrough;
return passthrough_type::none;
}
xr::face_tracker_type xr::system::face_tracker_supported() const
{
return face_tracker;
}
xr::body_tracker_type xr::system::body_tracker_supported() const
{
return body_tracker;
}
bool xr::system::hand_tracking_supported() const
{
return hand_tracking_supported_;
}
vk::raii::PhysicalDevice xr::system::physical_device(vk::raii::Instance & vulkan) const
+31 -7
View File
@@ -32,19 +32,39 @@ namespace xr
{
class instance;
enum class passthrough_type
{
none,
bw,
color
};
enum class body_tracker_type
{
none,
fb,
htc,
pico,
};
enum class face_tracker_type
{
none,
fb,
htc,
pico,
};
class system
{
instance * inst = nullptr;
XrSystemId id = XR_NULL_SYSTEM_ID;
bool hand_tracking_supported_ = false;
passthrough_type passthrough;
body_tracker_type body_tracker;
face_tracker_type face_tracker;
public:
enum class passthrough_type
{
no_passthrough,
bw,
color
};
system() = default;
system(const system &) = default;
system & operator=(const system &) = default;
@@ -67,7 +87,11 @@ public:
XrSystemFacialTrackingPropertiesHTC htc_face_tracking_properties() const;
XrSystemBodyTrackingPropertiesFB fb_body_tracking_properties() const;
XrSystemBodyTrackingPropertiesBD bd_body_tracking_properties() const;
bool hand_tracking_supported() const;
passthrough_type passthrough_supported() const;
face_tracker_type face_tracker_supported() const;
body_tracker_type body_tracker_supported() const;
XrGraphicsRequirementsVulkan2KHR graphics_requirements() const;
vk::raii::PhysicalDevice physical_device(vk::raii::Instance & vulkan) const;
-4
View File
@@ -1,4 +0,0 @@
function(auto_option name description default)
set(${name} ${default} CACHE STRING "${description}")
set_property(CACHE ${name} PROPERTY STRINGS AUTO ON OFF)
endfunction()
+2 -2
View File
@@ -1,4 +1,4 @@
if (BOOST_FOUND)
if (WIVRN_USE_SYSTEM_BOOST)
add_library(Boost::pfr ALIAS Boost::headers)
elseif (WIVRN_BUILD_CLIENT)
FetchContent_MakeAvailable(boost)
@@ -50,7 +50,7 @@ if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
utils/ini.cpp
application.cpp
)
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 PUBLIC wivrn-common-base)
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive PUBLIC wivrn-common-base)
if (WIVRN_BUILD_TEST)
add_executable(list-apps
+34 -40
View File
@@ -20,7 +20,6 @@
#include "application.h"
#include "utils/flatpak.h"
#include "utils/load_icon.h"
#include "utils/steam_app_info.h"
#include "utils/xdg_base_directory.h"
#include "utils/xdg_icon_lookup.h"
@@ -51,20 +50,19 @@ std::filesystem::path home()
std::pair<std::string, std::optional<std::filesystem::path>> find_steam()
{
auto h = home();
// Flatpak Steam
if (std::filesystem::exists(h / ".var/app/com.valvesoftware.Steam/.steam/steam"))
return {"flatpak run com.valvesoftware.Steam", h / ".var/app/com.valvesoftware.Steam/.steam/steam"};
// system Steam
if (std::filesystem::exists(xdg_data_home() / "Steam"))
return {"steam", xdg_data_home() / "Steam"};
auto h = home();
// system Steam (accessed from flatpak)
if (std::filesystem::exists(h / ".local/share/Steam"))
return {"steam", h / ".local/share/Steam"};
// Flatpak Steam
if (std::filesystem::exists(h / ".var/app/com.valvesoftware.Steam/.steam/steam"))
return {"flatpak run com.valvesoftware.Steam", h / ".var/app/com.valvesoftware.Steam/.steam/steam"};
return {};
}
@@ -85,17 +83,17 @@ steam_app_info read_steam_app_info(const std::filesystem::path & root)
return {};
}
std::vector<std::byte> load_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
{
const auto & app_info = info.get(app_id);
try
{
std::string icon{std::get<std::string_view>(app_info.at("common.clienticon"))};
auto icon_path = root / "steam/games" / (icon + ".ico");
auto image = load_icon(root / "steam/games" / (icon + ".ico"), 128);
if (not image.empty())
return image;
if (std::filesystem::exists(icon_path))
return icon_path;
}
catch (...)
{
@@ -103,20 +101,21 @@ std::vector<std::byte> load_steam_icon(const std::filesystem::path & root, int a
try
{
std::string icon{std::get<std::string_view>(app_info.at("common.LinuxClientIcon"))};
std::string icon{std::get<std::string_view>(app_info.at("common.linuxclienticon"))};
auto image = load_icon(root / "steam/games" / (icon + ".zip"), 128);
if (not image.empty())
return image;
auto icon_path = root / "steam/games" / (icon + ".zip");
if (std::filesystem::exists(icon_path))
return icon_path;
}
catch (...)
{
}
return {};
return std::nullopt;
}
void read_steam_vr_apps(std::unordered_map<std::string, application> & res, bool load_icons)
void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
{
auto [command, root] = find_steam();
if (not root)
@@ -166,21 +165,18 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res, bool
}
}
if (load_icons)
try
{
try
{
const char prefix[] = "steam.app.";
if (app_key.starts_with(prefix))
{
uint32_t app_id = stoll(app_key.substr(strlen(prefix)));
app.image = load_steam_icon(*root, app_id, info);
}
}
catch (...)
const char prefix[] = "steam.app.";
if (app_key.starts_with(prefix))
{
uint32_t app_id = stoll(app_key.substr(strlen(prefix)));
app.icon_path = find_steam_icon(*root, app_id, info);
}
}
catch (...)
{
}
if (not app.exec.empty())
res[app_key] = std::move(app);
@@ -281,7 +277,7 @@ bool contains(std::string_view entries, std::string_view val, char sep = ';')
return false;
}
std::optional<application> do_desktop_entry(const std::filesystem::path & filename, bool load_icons)
std::optional<application> do_desktop_entry(const std::filesystem::path & filename)
{
auto data = read_file(filename);
std::optional<application> res;
@@ -323,12 +319,11 @@ std::optional<application> do_desktop_entry(const std::filesystem::path & filena
res->exec = unescape(item.value);
if (item.key == "Path")
res->path = unescape(item.value);
if (item.key == "Icon" and load_icons)
if (item.key == "Icon")
{
try
{
if (auto filename = xdg_icon_lookup(std::string{item.value}, 256))
res->image = load_icon(*filename, 256);
res->icon_path = xdg_icon_lookup(std::string{item.value}, 256);
}
catch (...)
{}
@@ -341,7 +336,7 @@ std::optional<application> do_desktop_entry(const std::filesystem::path & filena
return res;
}
void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, application> & res, bool load_icons)
void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, application> & res)
{
dir = dir / "applications";
if (not std::filesystem::is_directory(dir))
@@ -364,29 +359,28 @@ void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, appl
if (res.contains(file_id))
continue;
auto app = do_desktop_entry(entry.path(), load_icons);
auto app = do_desktop_entry(entry.path());
if (app)
res.emplace(std::move(file_id), std::move(*app));
}
}
} // namespace
std::unordered_map<std::string, application> list_applications(bool include_steam, bool load_icons)
std::unordered_map<std::string, application> list_applications()
{
std::unordered_map<std::string, application> res;
if (include_steam)
read_steam_vr_apps(res, load_icons);
read_steam_vr_apps(res);
do_data_dir(xdg_data_home(), res, load_icons);
do_data_dir(xdg_data_home(), res);
for (auto && dir: xdg_data_dirs())
do_data_dir(std::move(dir), res, load_icons);
do_data_dir(std::move(dir), res);
if (wivrn::is_flatpak())
{
// Try to guess host data dirs
do_data_dir("/run/host/usr/share", res, load_icons);
do_data_dir("/run/host/usr/share", res);
}
return res;
+3 -3
View File
@@ -18,10 +18,10 @@
#pragma once
#include <filesystem>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
namespace wivrn
{
@@ -31,9 +31,9 @@ struct application
// localised names, with empty locale for default
std::unordered_map<std::string, std::string> name;
std::string exec;
std::vector<std::byte> image; // In PNG
std::optional<std::filesystem::path> icon_path;
std::optional<std::string> path;
};
std::unordered_map<std::string, application> list_applications(bool include_steam = true, bool load_icons = true);
std::unordered_map<std::string, application> list_applications();
} // namespace wivrn
+10 -2
View File
@@ -23,5 +23,13 @@
namespace wivrn
{
const std::vector<std::byte> & load_icon(const std::filesystem::path & filename, int size);
}
struct icon
{
int width;
int height;
int bpp;
std::vector<std::byte> png_data;
};
const std::vector<icon> & load_icon(const std::filesystem::path & filename);
} // namespace wivrn
+3
View File
@@ -18,6 +18,7 @@
#include "steam_app_info.h"
#include <bit>
#include <cctype>
#include <cstring>
#include <fstream>
#include <span>
@@ -89,6 +90,8 @@ void read_vdf(wivrn::steam_app_info::info & info, const std::string & prefix, st
while (type != 8)
{
std::string name{string_table.at(read<uint32_t>(bindata))};
for (char & c: name)
c = std::tolower(c);
// https://github.com/ValveResourceFormat/ValveKeyValue/blob/master/ValveKeyValue/ValveKeyValue/KeyValues1/KV1BinaryNodeType.cs
switch (type)
+6
View File
@@ -131,6 +131,12 @@ public:
std::tie(resource, allocation) = traits::create(device, create_info, alloc_info);
vmaSetAllocationName(vk_allocator::instance(), allocation, name.c_str());
if (vk_allocator::instance().has_debug_utils)
device.setDebugUtilsObjectNameEXT(vk::DebugUtilsObjectNameInfoEXT{
.objectType = T::objectType,
.objectHandle = uint64_t(CType(*resource)),
.pObjectName = name.c_str(),
});
}
basic_allocation(const basic_allocation &) = delete;
+84
View File
@@ -0,0 +1,84 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <array>
#include <cstdint>
#include <tuple>
#include <vulkan/vulkan.hpp>
template <typename... Args>
class specialization_constants
{
std::tuple<Args...> values;
std::array<vk::SpecializationMapEntry, sizeof...(Args)> entries;
vk::SpecializationInfo info_;
specialization_constants(specialization_constants &&) = delete;
specialization_constants(const specialization_constants &) = delete;
specialization_constants & operator=(const specialization_constants &) = delete;
specialization_constants & operator=(specialization_constants &&) = delete;
template <uint32_t i = sizeof...(Args) - 1>
void fill_entries()
{
entries[i] = vk::SpecializationMapEntry{
.constantID = i,
.offset = uint32_t(uintptr_t(std::addressof(std::get<i>(values))) - uintptr_t(std::addressof(values))),
.size = sizeof(std::get<i>(values)),
};
if constexpr (i > 0)
fill_entries<i - 1>();
}
public:
specialization_constants(Args &&... args) :
values(std::forward<Args>(args)...),
info_{
.mapEntryCount = uint32_t(entries.size()),
.pMapEntries = entries.data(),
.dataSize = sizeof(values),
.pData = &values,
}
{
fill_entries();
}
operator vk::SpecializationInfo *()
{
return &info_;
}
vk::SpecializationInfo * info()
{
return &info_;
}
template <uint32_t i>
auto & data()
{
return std::get<i>(values);
}
};
template <typename... Args>
specialization_constants<Args...> make_specialization_constants(Args &&... args)
{
return specialization_constants<Args...>(std::forward<Args>(args)...);
}
+2 -1
View File
@@ -20,7 +20,8 @@
#include "vk_allocator.h"
#include "vk/check.h"
vk_allocator::vk_allocator(const VmaAllocatorCreateInfo & info)
vk_allocator::vk_allocator(const VmaAllocatorCreateInfo & info, bool has_debug_utils) :
has_debug_utils(has_debug_utils)
{
CHECK_VK(vmaCreateAllocator(&info, &handle));
}
+2 -1
View File
@@ -27,7 +27,8 @@ class vk_allocator : public singleton<vk_allocator>
VmaAllocator handle = nullptr;
public:
vk_allocator(const VmaAllocatorCreateInfo &);
const bool has_debug_utils;
vk_allocator(const VmaAllocatorCreateInfo &, bool has_debug_utils);
~vk_allocator();
operator VmaAllocator()
+14 -3
View File
@@ -41,7 +41,7 @@ namespace wivrn
// Default port for server to listen, both TCP and UDP
static const int default_port = 9757;
static constexpr int protocol_revision = 2;
static constexpr int protocol_revision = 1;
enum class device_id : uint8_t
{
@@ -239,6 +239,11 @@ struct headset_info_packet
uint32_t num_generic_trackers;
std::vector<video_codec> supported_codecs; // from preferred to least preferred
std::string system_name;
// Used for the application list
std::string language;
std::string country;
std::string variant;
};
struct handshake
@@ -675,11 +680,16 @@ struct application_list
{
std::string id;
std::string name;
std::vector<std::byte> image; // In PNG
};
std::vector<application> applications;
};
struct application_icon
{
std::string id;
std::vector<std::byte> image; // In PNG
};
using packets = std::variant<
crypto_handshake,
pin_check_2,
@@ -693,6 +703,7 @@ using packets = std::variant<
timesync_query,
tracking_control,
refresh_rate_change,
application_list>;
application_list,
application_icon>;
} // namespace to_headset
} // namespace wivrn
+3 -6
View File
@@ -69,10 +69,9 @@ wivrn::fd_base::~fd_base()
wivrn::UDP::UDP()
{
fd = socket(AF_INET6, SOCK_DGRAM, 0);
fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fd < 0)
throw std::system_error{errno, std::generic_category()};
fcntl(fd, F_SETFD, FD_CLOEXEC);
}
wivrn::UDP::UDP(int fd)
@@ -177,10 +176,9 @@ wivrn::TCP::TCP(int fd)
wivrn::TCP::TCP(in6_addr address, int port)
{
fd = socket(AF_INET6, SOCK_STREAM, 0);
fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fd < 0)
throw std::system_error{errno, std::generic_category()};
fcntl(fd, F_SETFD, FD_CLOEXEC);
sockaddr_in6 sa;
sa.sin6_family = AF_INET6;
@@ -199,10 +197,9 @@ wivrn::TCP::TCP(in6_addr address, int port)
wivrn::TCP::TCP(in_addr address, int port)
{
fd = socket(AF_INET, SOCK_STREAM, 0);
fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fd < 0)
throw std::system_error{errno, std::generic_category()};
fcntl(fd, F_SETFD, FD_CLOEXEC);
sockaddr_in sa;
sa.sin_family = AF_INET;
+1 -1
View File
@@ -25,7 +25,7 @@
Apps::Apps(QObject * parent)
{
auto apps = wivrn::list_applications(true /* Include steam apps */, false /* Don't load icons */);
auto apps = wivrn::list_applications();
for (const auto & [id, app]: apps)
{
@@ -69,6 +69,30 @@
<content_rating type="oars-1.1" />
<releases>
<release version="25.9" date="2025-09-17">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.9</url>
<description>
<ul>
<li>GPU usage reduction on headset</li>
<li>Disable face and body tracking when not used</li>
<li>Fix black screen on Unreal Engine games</li>
</ul>
</description>
</release>
<release version="25.8" date="2025-08-10">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.8</url>
<description>
<ul>
<li>Add a screen to launch applications when the headset connects</li>
<li>Add a screen with many options during stream, which can be summoned by pressing both thumbsticks</li>
<li>Add XR_EXT_user_presence and XR_EXT_hand_interaction OpenXR extensions</li>
<li>Fix vulkan video encode and performances issues with multiple nvenc encoders on NVIDIA GPUs</li>
<li>Support 10-bit encoding on VAAPI for H.265 and AV1 codecs</li>
<li>Xrizer is now the default OpenVR compatibility layer (may be overriden by distribution packages)</li>
<li>Added Slovak and Turkish translations</li>
</ul>
</description>
</release>
<release version="25.6.1" date="2025-06-29">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.6.1</url>
<description>
+9 -8
View File
@@ -59,6 +59,12 @@ Kirigami.ApplicationWindow {
// Set the visible property here because dismissing the message removes the binding
if (value == WivrnServer.FailedToStart)
message_failed_to_start.visible = true;
if (root.first_run && started) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
}
function onPairingEnabledChanged(value) {
@@ -84,12 +90,6 @@ Kirigami.ApplicationWindow {
if (WivrnServer.serverStatus == WivrnServer.Stopped)
WivrnServer.start_server();
if (root.first_run) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
if (root.last_run_version != ApkInstaller.currentVersion) {
root.last_run_version = ApkInstaller.currentVersion;
}
@@ -305,11 +305,12 @@ Kirigami.ApplicationWindow {
level: 1
wrapMode: Text.WordWrap
text: i18n("Steam information")
opacity: root.server_started
opacity: steam_info.opacity
Layout.maximumHeight: root.server_started ? -1 : 0
}
SteamLaunchOptions {
opacity: root.server_started
id: steam_info
opacity: root.server_started && WivrnServer.steamCommand != ""
Layout.maximumHeight: root.server_started ? -1 : 0
}
+1
View File
@@ -290,6 +290,7 @@ Kirigami.ScrollablePage {
SelectGame {}
SteamLaunchOptions {
visible: WivrnServer.steamCommand != ""
Layout.topMargin: 2 * Kirigami.Units.largeSpacing
}
+14 -6
View File
@@ -507,29 +507,37 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
void wivrn_server::setJsonConfiguration(QString new_configuration)
{
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
if (server_interface)
{
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
}
}
void wivrn_server::revoke_key(QString public_key)
{
server_interface->RevokeKey(public_key);
if (server_interface)
server_interface->RevokeKey(public_key);
}
void wivrn_server::rename_key(QString public_key, QString name)
{
server_interface->RenameKey(public_key, name);
if (server_interface)
server_interface->RenameKey(public_key, name);
}
QString wivrn_server::enable_pairing(int timeout_secs)
{
qDebug() << "Enabling pairing for" << timeout_secs << "seconds";
return server_interface->EnablePairing(timeout_secs).value();
if (server_interface)
return server_interface->EnablePairing(timeout_secs).value();
return "";
}
void wivrn_server::disable_pairing()
{
server_interface->DisablePairing();
if (server_interface)
server_interface->DisablePairing();
}
QString wivrn_server::hostname()
+2
View File
@@ -5,6 +5,8 @@ The headset application and the server dashboard are translated, contributions a
# Required software
You only need `gettext` and a text editor, you can optionally use a graphical editor such as [GNOME Translation Editor](https://wiki.gnome.org/Apps/Gtranslator/) or [Lokalize](https://apps.kde.org/lokalize/).
If using Lokalize, make sure to erase the "Default mailing list" in the settings, or it will write a KDE mailing list in the translation file and you will have to manually remove it.
# Adding a new language
* Run `tools/update_messages.sh LANG` where LANG is the 2 letter [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code, this will create files in the `locale` directory for the new language. Fill in the fields, `git add` the files, commit and file a pull request.
+4
View File
@@ -1,2 +1,6 @@
add_library(wivrn-external INTERFACE)
target_include_directories(wivrn-external SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
add_library(imspinner OBJECT EXCLUDE_FROM_ALL imspinner/cimspinner.cpp)
target_include_directories(imspinner SYSTEM PUBLIC imspinner)
target_link_libraries(imspinner wivrn-imgui)
+1628
View File
File diff suppressed because it is too large Load Diff
+415
View File
@@ -0,0 +1,415 @@
/*
* This file has been auto generated by srcript, see genCimSpinner.rb
*/
#include "cimspinner_config.h"
//#define SPINNER_RAINBOW
//#define SPINNER_RAINBOWMIX
//#define SPINNER_ROTATINGHEART
//#define SPINNER_ANG
//#define SPINNER_ANG8
//#define SPINNER_ANGMIX
//#define SPINNER_LOADINGRING
//#define SPINNER_CLOCK
//#define SPINNER_PULSAR
//#define SPINNER_DOUBLEFADEPULSAR
//#define SPINNER_TWINPULSAR
//#define SPINNER_FADEPULSAR
//#define SPINNER_FADEPULSARSQUARE
//#define SPINNER_CIRCULARLINES
//#define SPINNER_DOTS
//#define SPINNER_VDOTS
//#define SPINNER_BOUNCEDOTS
//#define SPINNER_ZIPDOTS
//#define SPINNER_DOTSTOPOINTS
//#define SPINNER_DOTSTOBAR
//#define SPINNER_WAVEDOTS
//#define SPINNER_FADEDOTS
//#define SPINNER_THREEDOTS
//#define SPINNER_FIVEDOTS
//#define SPINNER_4CALEIDOSPCOPE
//#define SPINNER_MULTIFADEDOTS
//#define SPINNER_THICKTOSIN
//#define SPINNER_SCALEDOTS
//#define SPINNER_SQUARESPINS
//#define SPINNER_MOVINGDOTS
//#define SPINNER_ROTATEDOTS
//#define SPINNER_ORIONDOTS
//#define SPINNER_GALAXYDOTS
//#define SPINNER_TWINANG
//#define SPINNER_FILLING
//#define SPINNER_FILLINGMEM
//#define SPINNER_TOPUP
//#define SPINNER_TWINANG180
//#define SPINNER_TWINANG360
//#define SPINNER_INCDOTS
//#define SPINNER_INCFULLDOTS
//#define SPINNER_FADEBARS
//#define SPINNER_FADETRIS
//#define SPINNER_BARSROTATEFADE
//#define SPINNER_BARSSCALEMIDDLE
//#define SPINNER_ANGTWIN
//#define SPINNER_ARCROTATION
//#define SPINNER_ARCFADE
//#define SPINNER_SIMPLEARCFADE
//#define SPINNER_SQUARESTROKEFADE
//#define SPINNER_ASCIISYMBOLPOINTS
//#define SPINNER_TEXTFADING
//#define SPINNER_SEVENSEGMENTS
//#define SPINNER_SQUARESTROKEFILL
//#define SPINNER_SQUARESTROKELOADING
//#define SPINNER_SQUARELOADING
//#define SPINNER_FILLEDARCFADE
//#define SPINNER_POINTSROLLER
//#define SPINNER_POINTSARCBOUNCE
//#define SPINNER_FILLEDARCCOLOR
//#define SPINNER_FILLEDARCRING
//#define SPINNER_ARCWEDGES
//#define SPINNER_TWINBALL
//#define SPINNER_SOLARBALLS
//#define SPINNER_SOLARSCALEBALLS
//#define SPINNER_SOLARARCS
//#define SPINNER_MOVINGARCS
//#define SPINNER_RAINBOWCIRCLE
//#define SPINNER_BOUNCEBALL
//#define SPINNER_PULSARBALL
//#define SPINNER_INCSCALEDOTS
//#define SPINNER_SOMESCALEDOTS
//#define SPINNER_ANGTRIPLE
//#define SPINNER_ANGECLIPSE
//#define SPINNER_INGYANG
//#define SPINNER_GOOEYBALLS
//#define SPINNER_DOTSLOADING
//#define SPINNER_ROTATEGOOEYBALLS
//#define SPINNER_HERBERTBALLS
//#define SPINNER_HERBERTBALLS3D
//#define SPINNER_ROTATETRIANGLES
//#define SPINNER_ROTATESHAPES
//#define SPINNER_SINSQUARES
//#define SPINNER_MOONLINE
//#define SPINNER_CIRCLEDROP
//#define SPINNER_SURROUNDEDINDICATOR
//#define SPINNER_WIFIINDICATOR
//#define SPINNER_TRIANGLESSELECTOR
//#define SPINNER_CAMERA
//#define SPINNER_FLOWINGGRADIENT
//#define SPINNER_ROTATESEGMENTS
//#define SPINNER_LEMNISCATE
//#define SPINNER_ROTATEGEAR
//#define SPINNER_ROTATEWHEEL
//#define SPINNER_ATOM
//#define SPINNER_PATTERNRINGS
//#define SPINNER_PATTERNECLIPSE
//#define SPINNER_PATTERNSPHERE
//#define SPINNER_RINGSYNCHRONOUS
//#define SPINNER_RINGWATERMARKS
//#define SPINNER_ROTATEDATOM
//#define SPINNER_RAINBOWBALLS
//#define SPINNER_RAINBOWSHOT
//#define SPINNER_SPIRAL
//#define SPINNER_SPIRALEYE
//#define SPINNER_BARCHARTSINE
//#define SPINNER_BARCHARTADVSINE
//#define SPINNER_BARCHARTADVSINEFADE
//#define SPINNER_BARCHARTRAINBOW
//#define SPINNER_BLOCKS
//#define SPINNER_TWINBLOCKS
//#define SPINNER_SQUARERANDOMDOTS
//#define SPINNER_SCALEBLOCKS
//#define SPINNER_SCALESQUARES
//#define SPINNER_SQUISHSQUARE
//#define SPINNER_FLUID
//#define SPINNER_FLUIDPOINTS
//#define SPINNER_ARCPOLARFADE
//#define SPINNER_ARCPOLARRADIUS
//#define SPINNER_CALEIDOSCOPE
//#define SPINNER_HBODOTS
//#define SPINNER_MOONDOTS
//#define SPINNER_TWINHBODOTS
//#define SPINNER_THREEDOTSSTAR
//#define SPINNER_SINEARCS
//#define SPINNER_TRIANGLESSHIFT
//#define SPINNER_POINTSSHIFT
//#define SPINNER_SWINGDOTS
//#define SPINNER_CIRCULARPOINTS
//#define SPINNER_CURVEDCIRCLE
//#define SPINNER_MODCIRCLE
//#define SPINNER_DNADOTS
//#define SPINNER_3SMUGGLEDOTS
//#define SPINNER_ROTATESEGMENTSPULSAR
//#define SPINNER_SPLINEANG
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifndef CIMSPINNER_API
#define CIMSPINNER_API
#endif
CIMSPINNER_API void SpinnerRainbow(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerRainbowEx(const char *label, float radius, float thickness, const ImColor color, float speed,float ang_min, float ang_max, int arcs, int mode);
CIMSPINNER_API void SpinnerRainbowMix(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerRainbowMixEx(const char *label, float radius, float thickness, const ImColor color, float speed,float ang_min, float ang_max, int arcs, int mode);
CIMSPINNER_API void SpinnerRotatingHeart(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerRotatingHeartEx(const char *label, float radius, float thickness, const ImColor color, float speed,float ang_min);
CIMSPINNER_API void SpinnerAng(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerAngEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle, int mode);
CIMSPINNER_API void SpinnerAng8(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerAng8Ex(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle, int mode, float rkoef);
CIMSPINNER_API void SpinnerAngMix(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerAngMixEx(const char *label, float radius, float thickness,const ImColor color, float speed, float angle, int arcs, int mode);
CIMSPINNER_API void SpinnerLoadingRing(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerLoadingRingEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, int segments);
CIMSPINNER_API void SpinnerClock(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerClockEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed);
CIMSPINNER_API void SpinnerPulsar(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPulsarEx(const char *label, float radius, float thickness,const ImColor bg, float speed, bool sequence, float angle, int mode);
CIMSPINNER_API void SpinnerDoubleFadePulsar(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerDoubleFadePulsarEx(const char *label, float radius, float thickness,const ImColor bg, float speed);
CIMSPINNER_API void SpinnerTwinPulsar(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerTwinPulsarEx(const char *label, float radius, float thickness,const ImColor color, float speed, int rings, int mode);
CIMSPINNER_API void SpinnerFadePulsar(const char *label, float radius);
CIMSPINNER_API void SpinnerFadePulsarEx(const char *label, float radius,const ImColor color, float speed, int rings, int mode);
CIMSPINNER_API void SpinnerFadePulsarSquare(const char *label, float radius);
CIMSPINNER_API void SpinnerFadePulsarSquareEx(const char *label, float radius,const ImColor color, float speed, int rings, int mode);
CIMSPINNER_API void SpinnerCircularLines(const char *label, float radius);
CIMSPINNER_API void SpinnerCircularLinesEx(const char *label, float radius,const ImColor color, float speed, int lines, int mode);
CIMSPINNER_API void SpinnerDots(const char *label, float *nextdot, float radius, float thickness);
CIMSPINNER_API void SpinnerDotsEx(const char *label, float *nextdot, float radius, float thickness,const ImColor color, float speed, size_t dots, float minth, int mode);
CIMSPINNER_API void SpinnerVDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerVDotsEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bgcolor, float speed, size_t dots, size_t mdots, int mode);
CIMSPINNER_API void SpinnerBounceDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerBounceDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots, int mode);
CIMSPINNER_API void SpinnerZipDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerZipDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
CIMSPINNER_API void SpinnerDotsToPoints(const char *label, float radius, float thickness, float offset_k);
CIMSPINNER_API void SpinnerDotsToPointsEx(const char *label, float radius, float thickness, float offset_k,const ImColor color, float speed, size_t dots);
CIMSPINNER_API void SpinnerDotsToBar(const char *label, float radius, float thickness, float offset_k);
CIMSPINNER_API void SpinnerDotsToBarEx(const char *label, float radius, float thickness, float offset_k,const ImColor color, float speed, size_t dots);
CIMSPINNER_API void SpinnerWaveDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerWaveDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
CIMSPINNER_API void SpinnerFadeDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerFadeDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt, int mode);
CIMSPINNER_API void SpinnerThreeDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerThreeDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
CIMSPINNER_API void SpinnerFiveDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerFiveDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
CIMSPINNER_API void Spinner4Caleidospcope(const char *label, float radius, float thickness);
CIMSPINNER_API void Spinner4CaleidospcopeEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
CIMSPINNER_API void SpinnerMultiFadeDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerMultiFadeDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
CIMSPINNER_API void SpinnerThickToSin(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerThickToSinEx(const char *label, float radius, float thickness,const ImColor color, float speed, int nt, int lt, int mode);
CIMSPINNER_API void SpinnerScaleDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerScaleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt);
CIMSPINNER_API void SpinnerSquareSpins(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSquareSpinsEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerMovingDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerMovingDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
CIMSPINNER_API void SpinnerRotateDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRotateDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int dots, int mode);
CIMSPINNER_API void SpinnerOrionDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerOrionDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int arcs);
CIMSPINNER_API void SpinnerGalaxyDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerGalaxyDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int arcs);
CIMSPINNER_API void SpinnerTwinAng(const char *label, float radius1, float radius2, float thickness);
CIMSPINNER_API void SpinnerTwinAngEx(const char *label, float radius1, float radius2, float thickness,const ImColor color1, const ImColor color2, float speed, float angle, int mode);
CIMSPINNER_API void SpinnerFilling(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerFillingEx(const char *label, float radius, float thickness,const ImColor color1, const ImColor color2, float speed);
CIMSPINNER_API void SpinnerFillingMem(const char *label, float radius, float thickness, const ImColor color, ImColor colorbg, float speed);
CIMSPINNER_API void SpinnerTopup(const char *label, float radius1, float radius2);
CIMSPINNER_API void SpinnerTopupEx(const char *label, float radius1, float radius2,const ImColor color, const ImColor fg, const ImColor bg, float speed);
CIMSPINNER_API void SpinnerTwinAng180(const char *label, float radius1, float radius2, float thickness);
CIMSPINNER_API void SpinnerTwinAng180Ex(const char *label, float radius1, float radius2, float thickness,const ImColor color1, const ImColor color2, float speed, float angle, int mode);
CIMSPINNER_API void SpinnerTwinAng360(const char *label, float radius1, float radius2, float thickness);
CIMSPINNER_API void SpinnerTwinAng360Ex(const char *label, float radius1, float radius2, float thickness,const ImColor color1, const ImColor color2, float speed1, float speed2, int mode);
CIMSPINNER_API void SpinnerIncDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerIncDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
CIMSPINNER_API void SpinnerIncFullDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerIncFullDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots);
CIMSPINNER_API void SpinnerFadeBars(const char *label, float w);
CIMSPINNER_API void SpinnerFadeBarsEx(const char *label, float w,const ImColor color, float speed, size_t bars, bool scale);
CIMSPINNER_API void SpinnerFadeTris(const char *label, float radius);
CIMSPINNER_API void SpinnerFadeTrisEx(const char *label, float radius,const ImColor color, float speed, size_t dim, bool scale, int mode);
CIMSPINNER_API void SpinnerBarsRotateFade(const char *label, float rmin, float rmax , float thickness);
CIMSPINNER_API void SpinnerBarsRotateFadeEx(const char *label, float rmin, float rmax , float thickness,const ImColor color, float speed, size_t bars);
CIMSPINNER_API void SpinnerBarsScaleMiddle(const char *label, float w);
CIMSPINNER_API void SpinnerBarsScaleMiddleEx(const char *label, float w,const ImColor color, float speed, size_t bars);
CIMSPINNER_API void SpinnerAngTwin(const char *label, float radius1, float radius2, float thickness);
CIMSPINNER_API void SpinnerAngTwinEx(const char *label, float radius1, float radius2, float thickness,const ImColor color, const ImColor bg, float speed, float angle, size_t arcs, int mode);
CIMSPINNER_API void SpinnerArcRotation(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerArcRotationEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerArcFade(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerArcFadeEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerSimpleArcFade(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSimpleArcFadeEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerSquareStrokeFade(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSquareStrokeFadeEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerAsciiSymbolPoints(const char *label, const char* text, float radius, float thickness);
CIMSPINNER_API void SpinnerAsciiSymbolPointsEx(const char *label, const char* text, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerTextFading(const char *label, const char* text, float radius, float fsize);
CIMSPINNER_API void SpinnerTextFadingEx(const char *label, const char* text, float radius, float fsize,const ImColor color, float speed);
CIMSPINNER_API void SpinnerSevenSegments(const char *label, const char* text, float radius, float thickness);
CIMSPINNER_API void SpinnerSevenSegmentsEx(const char *label, const char* text, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerSquareStrokeFill(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSquareStrokeFillEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerSquareStrokeLoading(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSquareStrokeLoadingEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerSquareLoading(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSquareLoadingEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerFilledArcFade(const char *label, float radius);
CIMSPINNER_API void SpinnerFilledArcFadeEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerPointsRoller(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPointsRollerEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t points, int circles, float rspeed);
CIMSPINNER_API void SpinnerPointsArcBounce(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPointsArcBounceEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t points, int circles, float rspeed);
CIMSPINNER_API void SpinnerFilledArcColor(const char *label, float radius);
CIMSPINNER_API void SpinnerFilledArcColorEx(const char *label, float radius,const ImColor color, const ImColor bg, float speed, size_t arcs);
CIMSPINNER_API void SpinnerFilledArcRing(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerFilledArcRingEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t arcs);
CIMSPINNER_API void SpinnerArcWedges(const char *label, float radius);
CIMSPINNER_API void SpinnerArcWedgesEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerTwinBall(const char *label, float radius1, float radius2, float thickness, float b_thickness);
CIMSPINNER_API void SpinnerTwinBallEx(const char *label, float radius1, float radius2, float thickness, float b_thickness,const ImColor ball, const ImColor bg, float speed, size_t balls, int mode);
CIMSPINNER_API void SpinnerSolarBalls(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSolarBallsEx(const char *label, float radius, float thickness,const ImColor ball, const ImColor bg, float speed, size_t balls);
CIMSPINNER_API void SpinnerSolarScaleBalls(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSolarScaleBallsEx(const char *label, float radius, float thickness,const ImColor ball, float speed, size_t balls);
CIMSPINNER_API void SpinnerSolarArcs(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSolarArcsEx(const char *label, float radius, float thickness,const ImColor ball, const ImColor bg, float speed, size_t balls);
CIMSPINNER_API void SpinnerMovingArcs(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerMovingArcsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs);
CIMSPINNER_API void SpinnerRainbowCircle(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRainbowCircleEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, float mode);
CIMSPINNER_API void SpinnerBounceBall(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerBounceBallEx(const char *label, float radius, float thickness,const ImColor color, float speed, int dots, bool shadow);
CIMSPINNER_API void SpinnerPulsarBall(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPulsarBallEx(const char *label, float radius, float thickness,const ImColor color, float speed, bool shadow, int mode);
CIMSPINNER_API void SpinnerIncScaleDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerIncScaleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots, float angle, int mode);
CIMSPINNER_API void SpinnerSomeScaleDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSomeScaleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t dots, int mode);
CIMSPINNER_API void SpinnerAngTriple(const char *label, float radius1, float radius2, float radius3, float thickness);
CIMSPINNER_API void SpinnerAngTripleEx(const char *label, float radius1, float radius2, float radius3, float thickness,const ImColor c1, const ImColor c2, const ImColor c3, float speed, float angle);
CIMSPINNER_API void SpinnerAngEclipse(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerAngEclipseEx(const char *label, float radius, float thickness,const ImColor color, float speed, float angle);
CIMSPINNER_API void SpinnerIngYang(const char *label, float radius, float thickness, bool reverse, float yang_detlta_r);
CIMSPINNER_API void SpinnerIngYangEx(const char *label, float radius, float thickness, bool reverse, float yang_detlta_r,const ImColor colorI, const ImColor colorY, float speed, float angle, int mode);
CIMSPINNER_API void SpinnerGooeyBalls(const char *label, float radius, const ImColor color, float speed);
CIMSPINNER_API void SpinnerGooeyBallsEx(const char *label, float radius, const ImColor color, float speed,int mode);
CIMSPINNER_API void SpinnerDotsLoading(const char *label, float radius, float thickness, const ImColor color, const ImColor bg, float speed);
CIMSPINNER_API void SpinnerRotateGooeyBalls(const char *label, float radius, float thickness, const ImColor color, float speed, int balls);
CIMSPINNER_API void SpinnerRotateGooeyBallsEx(const char *label, float radius, float thickness, const ImColor color, float speed, int balls,int mode);
CIMSPINNER_API void SpinnerHerbertBalls(const char *label, float radius, float thickness, const ImColor color, float speed, int balls);
CIMSPINNER_API void SpinnerHerbertBalls3D(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerRotateTriangles(const char *label, float radius, float thickness, const ImColor color, float speed, int tris);
CIMSPINNER_API void SpinnerRotateTrianglesEx(const char *label, float radius, float thickness, const ImColor color, float speed, int tris,int mode);
CIMSPINNER_API void SpinnerRotateShapes(const char *label, float radius, float thickness, const ImColor color, float speed, int shapes, int pnt);
CIMSPINNER_API void SpinnerSinSquares(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerSinSquaresEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
CIMSPINNER_API void SpinnerMoonLine(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerMoonLineEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle);
CIMSPINNER_API void SpinnerCircleDrop(const char *label, float radius, float thickness, float thickness_drop);
CIMSPINNER_API void SpinnerCircleDropEx(const char *label, float radius, float thickness, float thickness_drop,const ImColor color, const ImColor bg, float speed, float angle);
CIMSPINNER_API void SpinnerSurroundedIndicator(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSurroundedIndicatorEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed);
CIMSPINNER_API void SpinnerWifiIndicator(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerWifiIndicatorEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float cangle, int dots);
CIMSPINNER_API void SpinnerTrianglesSelector(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerTrianglesSelectorEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t bars);
typedef ImColor LeafColor(int);
CIMSPINNER_API void SpinnerCamera(const char *label, float radius, float thickness, LeafColor *leaf_color);
CIMSPINNER_API void SpinnerCameraEx(const char *label, float radius, float thickness, LeafColor *leaf_color,float speed, size_t bars, int mode);
CIMSPINNER_API void SpinnerFlowingGradient(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerFlowingGradientEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle);
CIMSPINNER_API void SpinnerRotateSegments(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRotateSegmentsEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, size_t layers, int mode);
CIMSPINNER_API void SpinnerLemniscate(const char* label, float radius, float thickness);
CIMSPINNER_API void SpinnerLemniscateEx(const char* label, float radius, float thickness,const ImColor color, float speed, float angle);
CIMSPINNER_API void SpinnerRotateGear(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRotateGearEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t pins);
CIMSPINNER_API void SpinnerRotateWheel(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRotateWheelEx(const char *label, float radius, float thickness,const ImColor bg_color, const ImColor color, float speed, size_t pins);
CIMSPINNER_API void SpinnerAtom(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerAtomEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
CIMSPINNER_API void SpinnerPatternRings(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPatternRingsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
CIMSPINNER_API void SpinnerPatternEclipse(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPatternEclipseEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses, float delta_a, float delta_y);
CIMSPINNER_API void SpinnerPatternSphere(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPatternSphereEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
CIMSPINNER_API void SpinnerRingSynchronous(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRingSynchronousEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
CIMSPINNER_API void SpinnerRingWatermarks(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRingWatermarksEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses);
CIMSPINNER_API void SpinnerRotatedAtom(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRotatedAtomEx(const char *label, float radius, float thickness,const ImColor color, float speed, int elipses, int mode);
CIMSPINNER_API void SpinnerRainbowBalls(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerRainbowBallsEx(const char *label, float radius, float thickness, const ImColor color, float speed,int balls, int mode, int rings, int mx);
CIMSPINNER_API void SpinnerRainbowShot(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerRainbowShotEx(const char *label, float radius, float thickness, const ImColor color, float speed,int balls, int mode);
CIMSPINNER_API void SpinnerSpiral(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSpiralEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs);
CIMSPINNER_API void SpinnerSpiralEye(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSpiralEyeEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerBarChartSine(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerBarChartSineEx(const char *label, float radius, float thickness, const ImColor color, float speed,int bars, int mode);
CIMSPINNER_API void SpinnerBarChartAdvSine(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerBarChartAdvSineEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
CIMSPINNER_API void SpinnerBarChartAdvSineFade(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerBarChartAdvSineFadeEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
CIMSPINNER_API void SpinnerBarChartRainbow(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerBarChartRainbowEx(const char *label, float radius, float thickness, const ImColor color, float speed,int bars, int mode);
CIMSPINNER_API void SpinnerBlocks(const char *label, float radius, float thickness, const ImColor bg, const ImColor color, float speed);
CIMSPINNER_API void SpinnerTwinBlocks(const char *label, float radius, float thickness, const ImColor bg, const ImColor color, float speed);
CIMSPINNER_API void SpinnerSquareRandomDots(const char *label, float radius, float thickness, const ImColor bg, const ImColor color, float speed);
CIMSPINNER_API void SpinnerScaleBlocks(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerScaleBlocksEx(const char *label, float radius, float thickness, const ImColor color, float speed,int mode);
CIMSPINNER_API void SpinnerScaleSquares(const char *label, float radius, float thikness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerSquishSquare(const char *label, float radius, const ImColor color, float speed);
CIMSPINNER_API void SpinnerFluid(const char *label, float radius, const ImColor color, float speed);
CIMSPINNER_API void SpinnerFluidEx(const char *label, float radius, const ImColor color, float speed,int bars);
CIMSPINNER_API void SpinnerFluidPoints(const char *label, float radius, float thickness, const ImColor color, float speed);
CIMSPINNER_API void SpinnerFluidPointsEx(const char *label, float radius, float thickness, const ImColor color, float speed,size_t dots, float delta);
CIMSPINNER_API void SpinnerArcPolarFade(const char *label, float radius);
CIMSPINNER_API void SpinnerArcPolarFadeEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerArcPolarRadius(const char *label, float radius);
CIMSPINNER_API void SpinnerArcPolarRadiusEx(const char *label, float radius,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerCaleidoscope(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerCaleidoscopeEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, int mode);
CIMSPINNER_API void SpinnerHboDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerHboDotsEx(const char *label, float radius, float thickness,const ImColor color, float minfade, float ryk, float speed, size_t dots, int mode);
CIMSPINNER_API void SpinnerMoonDots(const char *label, float radius, float thickness, const ImColor first, const ImColor second);
CIMSPINNER_API void SpinnerMoonDotsEx(const char *label, float radius, float thickness, const ImColor first, const ImColor second,float speed);
CIMSPINNER_API void SpinnerTwinHboDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerTwinHboDotsEx(const char *label, float radius, float thickness,const ImColor color, float minfade, float ryk, float speed, size_t dots, float delta);
CIMSPINNER_API void SpinnerThreeDotsStar(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerThreeDotsStarEx(const char *label, float radius, float thickness,const ImColor color, float minfade, float ryk, float speed, float delta);
CIMSPINNER_API void SpinnerSineArcs(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSineArcsEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerTrianglesShift(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerTrianglesShiftEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t bars);
CIMSPINNER_API void SpinnerPointsShift(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerPointsShiftEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, size_t bars);
CIMSPINNER_API void SpinnerSwingDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSwingDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed);
CIMSPINNER_API void SpinnerCircularPoints(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerCircularPointsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lines);
CIMSPINNER_API void SpinnerCurvedCircle(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerCurvedCircleEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t circles);
CIMSPINNER_API void SpinnerModCircle(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerModCircleEx(const char *label, float radius, float thickness,const ImColor color, float ang_min, float ang_max, float speed);
CIMSPINNER_API void SpinnerDnaDots(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerDnaDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt, float delta, bool mode);
CIMSPINNER_API void Spinner3SmuggleDots(const char *label, float radius, float thickness);
CIMSPINNER_API void Spinner3SmuggleDotsEx(const char *label, float radius, float thickness,const ImColor color, float speed, int lt, float delta, bool mode);
CIMSPINNER_API void SpinnerRotateSegmentsPulsar(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerRotateSegmentsPulsarEx(const char *label, float radius, float thickness,const ImColor color, float speed, size_t arcs, size_t layers);
CIMSPINNER_API void SpinnerSplineAng(const char *label, float radius, float thickness);
CIMSPINNER_API void SpinnerSplineAngEx(const char *label, float radius, float thickness,const ImColor color, const ImColor bg, float speed, float angle, int mode);
CIMSPINNER_API void demoSpinners();
#ifdef __cplusplus
}
#endif
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#define SPINNER_RAINBOWMIX
#define SPINNER_DNADOTS
#define SPINNER_ANG8
#define SPINNER_CLOCK
#define SPINNER_PULSAR
#define SPINNER_DOTSTOBAR
#define SPINNER_ATOM
#define SPINNER_BARCHARTRAINBOW
#define SPINNER_SWINGDOTS
+4950
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -16,8 +16,10 @@
extraBuildInputs = [
# XRT_FEATURE_DEBUG_GUI requires SDL2
pkgs.sdl2-compat
pkgs.librsvg
pkgs.libpng
pkgs.libarchive
];
extraNativeBuildInputs = [
pkgs.util-linux
+172 -155
View File
@@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 15:49+0200\n"
"PO-Revision-Date: 2025-08-02 00:41+0200\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-09-18 17:35+0200\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish\n"
"Language: es\n"
@@ -16,7 +16,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Formato de swapchain no compatible"
@@ -43,97 +43,97 @@ msgstr "No se puede conectar a {} ({}): {}"
msgid "Waiting for connection"
msgstr "Esperando conexión"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:232
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Calidad"
#: client/scenes/lobby_gui.cpp:234
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Deshabilitado"
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Cerrar"
#: client/scenes/lobby_gui.cpp:268
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Conexión"
#: client/scenes/lobby_gui.cpp:270
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Conexión a {}"
#: client/scenes/lobby_gui.cpp:300
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:322
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Ingresa el PIN que se muestra en el panel de control"
#: client/scenes/lobby_gui.cpp:393
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Conectado al servidor WiVRn"
#: client/scenes/lobby_gui.cpp:395
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Connectado a {}"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Inicia una aplicación en el servidor para empezar la retransmisión"
#: client/scenes/lobby_gui.cpp:414
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Inicia una aplicación en tu ordenador o selecciona una para empezar la "
"retransmisión"
#: client/scenes/lobby_gui.cpp:416
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Inicia una aplicación en {} o selecciona una para empezar la retransmisión"
#: client/scenes/lobby_gui.cpp:522
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nombre"
#: client/scenes/lobby_gui.cpp:533
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Dirección"
#: client/scenes/lobby_gui.cpp:542
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Puerto"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:557
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:571
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Guardar"
#: client/scenes/lobby_gui.cpp:624
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -141,32 +141,45 @@ msgstr ""
"Inicia un servidor WiVRn en tu\n"
"red local"
#: client/scenes/lobby_gui.cpp:656
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Conexión automática"
#: client/scenes/lobby_gui.cpp:682
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versión del servidor incompatible"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Servidor no disponible"
#: client/scenes/lobby_gui.cpp:780
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Español"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Idioma"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Idioma del sistema"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Frecuencia de actualización"
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automática"
#: client/scenes/lobby_gui.cpp:789
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -175,61 +188,61 @@ msgstr ""
"aplicación.\n"
"Puede causar parpadeos cuando ocurre un cambio."
#: client/scenes/lobby_gui.cpp:806
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Tasa mínima de refresco"
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Escala de resolución"
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por ojo"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor"
#: client/scenes/lobby_gui.cpp:850
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Activar micrófono"
#: client/scenes/lobby_gui.cpp:859
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Entrada de audio sin procesar"
#: client/scenes/lobby_gui.cpp:865
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
"ruido"
#: client/scenes/lobby_gui.cpp:872
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Activar seguimiento de manos"
#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918
#: client/scenes/lobby_gui.cpp:968
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Esta función no es compatible con tu visor"
#: client/scenes/lobby_gui.cpp:884
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Activar seguimiento ocular"
#: client/scenes/lobby_gui.cpp:896
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Activar seguimiento facial"
#: client/scenes/lobby_gui.cpp:909
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Habilitar seguimiento corporal"
#: client/scenes/lobby_gui.cpp:925
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -240,11 +253,11 @@ msgstr ""
"si no el seguimiento corporal será medido por la posición de los controles y "
"el visor"
#: client/scenes/lobby_gui.cpp:938
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Habilitar seguimiento de cintura para abajo"
#: client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -255,11 +268,11 @@ msgstr ""
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
"movimiento de Quest"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Habilitar seguimiento de cintura"
#: client/scenes/lobby_gui.cpp:953
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -267,19 +280,31 @@ msgstr ""
"Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n"
"Puede ser necesario si está usando otro metodo para seguir la cintura"
#: client/scenes/lobby_gui.cpp:961
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Activar video passthrough en el lobby"
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Habilitar ventana mientras se juega"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Permite que la ventana de configuración se muestre mientras se juega.\n"
"Si se habilita, la ventana se activará al presionar ambos joysticks."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Post-procesamiento de OpenXR"
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Sobremuestreo"
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -288,11 +313,11 @@ msgstr ""
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Nitidez"
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -301,179 +326,133 @@ msgstr ""
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:1040
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:1048
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
"Only enable if you know what you're doing."
msgstr ""
"En este visor, está opción ha sido reemplazada totalmente por la nativa "
"Opción de enfoque arriba.\n"
"Sólo habilita esto si sabes lo que estás haciendo."
#: client/scenes/lobby_gui.cpp:1050
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Sobreescalado y nitidez de lado del cliente, supone un mayor coste de "
"rendimiento para el visor"
#: client/scenes/lobby_gui.cpp:1068
msgid "Upscaling factor"
msgstr "Factor de sobreescalado"
#: client/scenes/lobby_gui.cpp:1087
msgid "Use edge direction"
msgstr "Usar la dirección del borde"
#: client/scenes/lobby_gui.cpp:1093
msgid "Adds an additional performance cost"
msgstr "Añade un coste de rendimiento adicional"
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge threshold"
msgstr "Umbral del borde"
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomendado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1108
msgid "Edge sharpness"
msgstr "Nitidez del borde"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:1214
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:1228
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1271
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "¿Habilitar micrófono?"
#: client/scenes/lobby_gui.cpp:1276
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "¿Habilitar seguimiento ocular?"
#: client/scenes/lobby_gui.cpp:1281
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "¿Habilitar seguimiento facial?"
#: client/scenes/lobby_gui.cpp:1286
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "¿Habilitar seguimiento corporal?"
#: client/scenes/lobby_gui.cpp:1294
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Bienvenido a WiVRn"
#: client/scenes/lobby_gui.cpp:1318
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Sí"
#: client/scenes/lobby_gui.cpp:1325
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licencias"
#: client/scenes/lobby_gui.cpp:1658
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Micrófono activado"
#: client/scenes/lobby_gui.cpp:1659
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Micrófono desactivado"
#: client/scenes/lobby_gui.cpp:1668
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Seguimiento de manos activado"
#: client/scenes/lobby_gui.cpp:1669
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Seguimiento de manos desactivado"
#: client/scenes/lobby_gui.cpp:1678
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Seguimiento ocular activado"
#: client/scenes/lobby_gui.cpp:1679
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Seguimiento ocular desactivado"
#: client/scenes/lobby_gui.cpp:1692
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Seguimiento facial activado"
#: client/scenes/lobby_gui.cpp:1693
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Seguimiento facial desactivado"
#: client/scenes/lobby_gui.cpp:1703
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Seguimiento corporal está habilitado"
#: client/scenes/lobby_gui.cpp:1704
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Seguimiento corporal está deshabilitado"
#: client/scenes/lobby_gui.cpp:1720
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Agregar servidor"
#: client/scenes/lobby_gui.cpp:1965
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Configuración"
#: client/scenes/lobby_gui.cpp:1971
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Post-procesamiento"
#: client/scenes/lobby_gui.cpp:1975
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Depuración"
#: client/scenes/lobby_gui.cpp:1980
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Acerca de"
#: client/scenes/lobby_gui.cpp:1986
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Salir"
#: client/scenes/lobby_gui.cpp:2003
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Pulsa el botón de agarre o pon tu palma apuntando hacia arriba\n"
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
"para mover la ventana principal"
#: client/scenes/lobby_gui.cpp:2005
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Pulsa el botón de agarre para mover la ventana principal"
@@ -489,11 +468,11 @@ msgstr "Copia"
msgid "Network"
msgstr "Red"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Descargar"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Subir"
@@ -534,66 +513,66 @@ msgstr "Mostrado"
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latencia estimada de movimiento a fotones: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Pulsa el botón de agarre para mover la ventana"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latencia entre el movimiento y la imagen mostrada"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Reajustar el centro de la fóvea"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} °"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distancia {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Por defecto"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Cambiar"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa los joysticks para mover el centro de la fóvea"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Pulsa A para guardar o B para cancelar"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Estadísticas"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Superposición de las estadísticas"
msgstr "Superponer estadísticas"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Vista compacta"
@@ -613,6 +592,44 @@ msgstr "No se puede verificar el PIN"
msgid "Pairing is disabled on server"
msgstr "El emparejamiento está deshabilitado en el servidor."
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Habilitar Snapdragon Game Super Resolution"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr ""
#~ "En este visor, está opción ha sido reemplazada totalmente por la nativa "
#~ "Opción de enfoque arriba.\n"
#~ "Sólo habilita esto si sabes lo que estás haciendo."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Sobreescalado y nitidez de lado del cliente, supone un mayor coste de "
#~ "rendimiento para el visor"
#~ msgid "Upscaling factor"
#~ msgstr "Factor de sobreescalado"
#~ msgid "Use edge direction"
#~ msgstr "Usar la dirección del borde"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Añade un coste de rendimiento adicional"
#~ msgid "Edge threshold"
#~ msgstr "Umbral del borde"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Recomendado: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Nitidez del borde"
#~ msgid "Video stream interrupted"
#~ msgstr "Transmisión de video interrumpida"
+175 -160
View File
@@ -5,17 +5,17 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-30 09:41+0200\n"
"PO-Revision-Date: 2025-07-30 14:47+0200\n"
"POT-Creation-Date: 2025-09-18 00:05+0200\n"
"PO-Revision-Date: 2025-09-18 00:05+0200\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n"
"Language: French\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 47.1\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Aucun format de swapchain supporté"
@@ -43,99 +43,99 @@ msgstr "Impossible de se connecter à {} ({}): {}"
msgid "Waiting for connection"
msgstr "Attente de connexion"
#: client/scenes/lobby_gui.cpp:156
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:159
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualité"
#: client/scenes/lobby_gui.cpp:161
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Désactivé"
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Déconnecter"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Fermer"
#: client/scenes/lobby_gui.cpp:195
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Connexion en cours"
#: client/scenes/lobby_gui.cpp:197
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Connexion à {}"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "Code PIN"
#: client/scenes/lobby_gui.cpp:249
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Entrez le code PIN affiché sur le tableau de bord"
#: client/scenes/lobby_gui.cpp:315
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Connecté au serveur WiVRn"
#: client/scenes/lobby_gui.cpp:317
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Connecté à {}"
#: client/scenes/lobby_gui.cpp:327
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr ""
"Démarrez une application sur le serveur pour commencer la transmission."
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Démarrez une application sur le serveur ou depuis la liste pour commencer la "
"transmission."
#: client/scenes/lobby_gui.cpp:335
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Démarrez une application sur {} ou depuis la liste pour commencer la "
"transmission."
#: client/scenes/lobby_gui.cpp:383
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nom"
#: client/scenes/lobby_gui.cpp:394
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:403
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:411
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "TCP seulement"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Annuler"
#: client/scenes/lobby_gui.cpp:432
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Enregistrer"
#: client/scenes/lobby_gui.cpp:485
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -143,32 +143,45 @@ msgstr ""
"Démarrez un serveur WiVRn sur\n"
"le réseau local"
#: client/scenes/lobby_gui.cpp:517
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Autoconnexion"
#: client/scenes/lobby_gui.cpp:543
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Connexion"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Version du serveur incompatible"
#: client/scenes/lobby_gui.cpp:555
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Serveur non disponible"
#: client/scenes/lobby_gui.cpp:641
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Français"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Langue"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Langue système"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Taux de rafraichissement"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:650
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -177,59 +190,59 @@ msgstr ""
"des performances mesurées.\n"
"Peut causer des clignotements lors du changement de fréquence."
#: client/scenes/lobby_gui.cpp:667
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Taux minimal"
#: client/scenes/lobby_gui.cpp:690
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Échelle"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} par œil"
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
#: client/scenes/lobby_gui.cpp:711
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Activer le micro"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Utiliser les données brutes du micro"
#: client/scenes/lobby_gui.cpp:726
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Désactive les traitements tels que la suppression du bruit"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Activer le suivi des mains"
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Cette fonctionnalité n'est pas supportée par le casque"
#: client/scenes/lobby_gui.cpp:745
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Activer le suivi des yeux"
#: client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Activer le suivi du visage"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Activer le suivi du corps"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -240,11 +253,11 @@ msgstr ""
"suivi des mouvements du casque.\n"
"Sinon les positions seront déduites de celles des manettes et casque."
#: client/scenes/lobby_gui.cpp:799
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Activer le suivi du bas du corps"
#: client/scenes/lobby_gui.cpp:805
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -255,11 +268,11 @@ msgstr ""
"paramètres\n"
"de suivi de mouvements du casque."
#: client/scenes/lobby_gui.cpp:808
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Activer le suivi des hanches"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -267,19 +280,33 @@ msgstr ""
"N'a d'effet que si le suivi du bas du corps est activé.\n"
"Peut être utile si les hanches sont suivies via un autre moyen."
#: client/scenes/lobby_gui.cpp:822
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Activer la vue réelle dans l'accueil"
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Activer la fenêtre WiVRn lors de la transmission"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Permet à la fenêtre de configuration d'être affichée pendant la transmission "
"du jeu.\n"
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
"sticks."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Post-traitement OpenXR"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Suréchantillonnage"
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -287,11 +314,11 @@ msgstr ""
"Réduit le scintillement des contours à haut contraste.\n"
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Affinage de netteté"
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -299,171 +326,125 @@ msgstr ""
"Améliore la clarté des contours à haut contraste et réduit le flou.\n"
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Activer Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:909
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
"Only enable if you know what you're doing."
msgstr ""
"Sur ce casque, ce paramètre a été supplanté par le réglage natif d’affinage "
"de netteté ci-dessus.\n"
"N’activer que si vous savez ce que vous faites."
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Mise à l’échelle et affinage de netteté, ajoute un coût en performances pour "
"le casque"
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Échelle"
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Utiliser la direction de contours"
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Ajoute un coût additionnel en performances"
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Seuil de contour"
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recommandé : {:.1f}"
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Netteté de contour"
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Temps CPU"
#: client/scenes/lobby_gui.cpp:1075
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Temps CPU [ms]"
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Temps GPU"
#: client/scenes/lobby_gui.cpp:1089
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Temps GPU [ms]"
#: client/scenes/lobby_gui.cpp:1132
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Activer le micro ?"
#: client/scenes/lobby_gui.cpp:1137
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Activer le suivi des yeux ?"
#: client/scenes/lobby_gui.cpp:1142
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Activer le suivi du visage ?"
#: client/scenes/lobby_gui.cpp:1147
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Activer le suivi du corps ?"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Bienvenue sur WiVRn"
#: client/scenes/lobby_gui.cpp:1179
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Oui"
#: client/scenes/lobby_gui.cpp:1186
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Non"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licences"
#: client/scenes/lobby_gui.cpp:1519
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Le micro est activé"
#: client/scenes/lobby_gui.cpp:1520
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Le micro est désactivé"
#: client/scenes/lobby_gui.cpp:1529
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Le suivi des mains est activé"
#: client/scenes/lobby_gui.cpp:1530
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Le suivi des mains est désactivé"
#: client/scenes/lobby_gui.cpp:1539
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Le suivi des yeux est activé"
#: client/scenes/lobby_gui.cpp:1540
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Le suivi des yeux est désactivé"
#: client/scenes/lobby_gui.cpp:1553
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Le suivi du visage est activé"
#: client/scenes/lobby_gui.cpp:1554
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Le suivi du visage est désactivé"
#: client/scenes/lobby_gui.cpp:1564
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Le suivi du corps est activé"
#: client/scenes/lobby_gui.cpp:1565
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Le suivi du corps est désactivé"
#: client/scenes/lobby_gui.cpp:1581
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Ajouter un serveur"
#: client/scenes/lobby_gui.cpp:1826
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Serveurs"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Paramètres"
#: client/scenes/lobby_gui.cpp:1832
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Post-traitement"
#: client/scenes/lobby_gui.cpp:1836
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1841
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "À propos"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Quitter"
#: client/scenes/lobby_gui.cpp:1864
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -471,11 +452,9 @@ msgstr ""
"Serrez la gâchette latérale ou pointez la paume\n"
"vers le haut pour bouger la fenêtre principale"
#: client/scenes/lobby_gui.cpp:1866
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr ""
"Serrez la gâchette latérale pour bouger la\n"
"fenêtre principale"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
@@ -489,11 +468,11 @@ msgstr "Copie"
msgid "Network"
msgstr "Réseau"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Téléchargement"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Téléversement"
@@ -534,68 +513,66 @@ msgstr "Affichage"
msgid "Predicted"
msgstr "Prédiction"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latence mouvement à photons estimée: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr ""
"Serrez la gâchette latérale pour bouger\n"
"la fenêtre"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latence mouvements à photons"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Zone de fovéation manuelle"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Activer"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Hauteur: {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distance {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Réinitialiser"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Ajuster"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Utiliser le stick pour bouger le centre de fovéation"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "A pour sauvegarder, B pour annuler"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Statistiques"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Statistiques seules"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Vue compacte"
@@ -615,6 +592,44 @@ msgstr "Impossible de vérifier le code PIN"
msgid "Pairing is disabled on server"
msgstr "L'appairage est désactivé sur le serveur"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Activer Snapdragon Game Super Resolution"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr ""
#~ "Sur ce casque, ce paramètre a été supplanté par le réglage natif "
#~ "d’affinage de netteté ci-dessus.\n"
#~ "N’activer que si vous savez ce que vous faites."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Mise à l’échelle et affinage de netteté, ajoute un coût en performances "
#~ "pour le casque"
#~ msgid "Upscaling factor"
#~ msgstr "Échelle"
#~ msgid "Use edge direction"
#~ msgstr "Utiliser la direction de contours"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Ajoute un coût additionnel en performances"
#~ msgid "Edge threshold"
#~ msgstr "Seuil de contour"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Recommandé : {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Netteté de contour"
#~ msgid "Video stream interrupted"
#~ msgstr "Flux vidéo interrompu"
+169 -154
View File
@@ -5,17 +5,17 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-30 09:41+0200\n"
"PO-Revision-Date: 2025-07-30 09:59+0200\n"
"POT-Creation-Date: 2025-09-18 00:05+0200\n"
"PO-Revision-Date: 2025-09-18 00:05+0200\n"
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
"Language-Team: Italian <>\n"
"Language: Italian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 47.1\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Nessun formato swapchain supportato"
@@ -42,98 +42,98 @@ msgstr "Impossibile connettersi a {} ({}): {}"
msgid "Waiting for connection"
msgstr "In attesa di connessione"
#: client/scenes/lobby_gui.cpp:156
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normale"
#: client/scenes/lobby_gui.cpp:159
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Alta qualità"
#: client/scenes/lobby_gui.cpp:161
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Disattivato"
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Sconnetti"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Chiudi"
#: client/scenes/lobby_gui.cpp:195
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Connessione"
#: client/scenes/lobby_gui.cpp:197
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Connessione a {}"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:249
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Digitare il PIN visibile sul server"
#: client/scenes/lobby_gui.cpp:315
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Connesso al server WiVRn"
#: client/scenes/lobby_gui.cpp:317
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Connesso a {}"
#: client/scenes/lobby_gui.cpp:327
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
"trasmettere."
#: client/scenes/lobby_gui.cpp:335
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Avvia un applicazione su {} o scegli dalla lista per incominciare a "
"trasmettere."
#: client/scenes/lobby_gui.cpp:383
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:394
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Indirizzo"
#: client/scenes/lobby_gui.cpp:403
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:411
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Annulla"
#: client/scenes/lobby_gui.cpp:432
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Salva"
#: client/scenes/lobby_gui.cpp:485
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -141,32 +141,45 @@ msgstr ""
"Avvia un server WiVRn sulla\n"
"rete locale"
#: client/scenes/lobby_gui.cpp:517
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Connessione automatica"
#: client/scenes/lobby_gui.cpp:543
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Connetti"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versione del server incompatibile"
#: client/scenes/lobby_gui.cpp:555
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Server non disponibile"
#: client/scenes/lobby_gui.cpp:641
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Italiano"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Lingua"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Lingua del sistema"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Frequenza di aggiornamento"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatica"
#: client/scenes/lobby_gui.cpp:650
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -175,60 +188,60 @@ msgstr ""
"misurate dell'applicazione.\n"
"Può causare un flash quando avviene il cambiamento."
#: client/scenes/lobby_gui.cpp:667
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Frequenza minima"
#: client/scenes/lobby_gui.cpp:690
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Scala di risoluzione"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} per occhio"
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
#: client/scenes/lobby_gui.cpp:711
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Attiva il microfono"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Usare dati grezzi del microfono"
#: client/scenes/lobby_gui.cpp:726
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Disattiva gli effetti come la cancellazione del rumore"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Abilita il tracciamento delle mani"
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Questa funzionalità non è supportata dal visore"
#: client/scenes/lobby_gui.cpp:745
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Abilita il tracciamento oculare"
#: client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Abilita il tracciamento facciale"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Abilita il tracciamento del corpo"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -241,11 +254,11 @@ msgstr ""
"controller e\n"
"del visore."
#: client/scenes/lobby_gui.cpp:799
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Abilita il tracciamento del basso del corpo"
#: client/scenes/lobby_gui.cpp:805
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -256,11 +269,11 @@ msgstr ""
"impostazioni,\n"
"sezione \"Tracking dei movimenti\"."
#: client/scenes/lobby_gui.cpp:808
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Abilitia il tracciamento delle anche"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -269,19 +282,31 @@ msgstr ""
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
"delle anche."
#: client/scenes/lobby_gui.cpp:822
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Abilita la visualizzazione reale in ingresso"
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Post-trattamento OpenXR"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Supersamping"
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -289,11 +314,11 @@ msgstr ""
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Miglioramento della nitidezza"
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -302,168 +327,125 @@ msgstr ""
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
"visore"
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Attivare Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:909
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
"Only enable if you know what you're doing."
msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR."
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Aumento della risoluzione e nitidezza sul visore, diminuisce le prestazioni "
"sul visore"
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Aumento di risoluzione"
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Usare la direzione dei bordi"
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Riduce le prestazioni"
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Soglia dei bordi"
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Valore consigliato: {:.1f}"
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Nitidezza dei bordi"
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Tempo CPU"
#: client/scenes/lobby_gui.cpp:1075
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Tempo CPU [ms]"
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Tempo GPU"
#: client/scenes/lobby_gui.cpp:1089
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Tempo GPU [ms]"
#: client/scenes/lobby_gui.cpp:1132
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Attivare il microfono?"
#: client/scenes/lobby_gui.cpp:1137
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Attivare il tracciamento oculare?"
#: client/scenes/lobby_gui.cpp:1142
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Attivare il tracciamento facciale?"
#: client/scenes/lobby_gui.cpp:1147
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Attivare il tracciamento del corpo?"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Benvenuto su WiVRn"
#: client/scenes/lobby_gui.cpp:1179
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Sì"
#: client/scenes/lobby_gui.cpp:1186
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licenze"
#: client/scenes/lobby_gui.cpp:1519
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Microfono attivo"
#: client/scenes/lobby_gui.cpp:1520
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Microfono disattivato"
#: client/scenes/lobby_gui.cpp:1529
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Tracciamento delle mani attivo"
#: client/scenes/lobby_gui.cpp:1530
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Tracciamento delle mani disattivato"
#: client/scenes/lobby_gui.cpp:1539
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Tracciamento oculare attivo"
#: client/scenes/lobby_gui.cpp:1540
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Tracciamento oculare disattivato"
#: client/scenes/lobby_gui.cpp:1553
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Tracciamento facciale attivato"
#: client/scenes/lobby_gui.cpp:1554
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Tracciamento facciale disattivato"
#: client/scenes/lobby_gui.cpp:1564
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Tracciamento del corpo attivato"
#: client/scenes/lobby_gui.cpp:1565
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Tracciamento del corpo disattivato"
#: client/scenes/lobby_gui.cpp:1581
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Aggiungi server"
#: client/scenes/lobby_gui.cpp:1826
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Elenco dei server"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Impostazioni"
#: client/scenes/lobby_gui.cpp:1832
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Post-trattamento"
#: client/scenes/lobby_gui.cpp:1836
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1841
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Informazioni"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Esci"
#: client/scenes/lobby_gui.cpp:1864
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -471,11 +453,9 @@ msgstr ""
"Premi il pulsante laterale o punta il palmo della\n"
"mano verso l'alto per spostare la finestra principale"
#: client/scenes/lobby_gui.cpp:1866
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr ""
"Premi il pulsante laterale per\n"
"spostare la finestra principale"
msgstr "Premi il pulsante laterale per spostare la finestra principale"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
@@ -489,11 +469,11 @@ msgstr "Copia"
msgid "Network"
msgstr "Rete"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Download"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Upload"
@@ -534,66 +514,66 @@ msgstr "Visualizzato"
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latenza stimata da movimento a fotoni: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Premi il pulsante laterale per spostare la finestra"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latenza da movimento a fotoni"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Centro di foveazione manuale"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Attiva"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altezza {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distanza {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Reimposta"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Cambia"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa gli stick per spostare il centro di foveazione"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "A per salvare, B per annullare"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Statistiche"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Solo statistiche"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Modalità compatta"
@@ -613,6 +593,41 @@ msgstr "Impossibile verificare il PIN"
msgid "Pairing is disabled on server"
msgstr "L'associazione è disattivata sul server"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Attivare Snapdragon Game Super Resolution"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Aumento della risoluzione e nitidezza sul visore, diminuisce le "
#~ "prestazioni sul visore"
#~ msgid "Upscaling factor"
#~ msgstr "Aumento di risoluzione"
#~ msgid "Use edge direction"
#~ msgstr "Usare la direzione dei bordi"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Riduce le prestazioni"
#~ msgid "Edge threshold"
#~ msgstr "Soglia dei bordi"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Valore consigliato: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Nitidezza dei bordi"
#~ msgid "Video stream interrupted"
#~ msgstr "Flusso video interrotto"
+92 -81
View File
@@ -4,20 +4,21 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
#
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-21 21:55-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"POT-Creation-Date: 2025-09-12 14:54+0200\n"
"PO-Revision-Date: 2025-08-08 11:56-0300\n"
"Last-Translator: myghi63 <myghi63@disroot.org>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 48.0\n"
"X-Generator: Lokalize 25.04.3\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
@@ -85,8 +86,8 @@ msgstr "Verificando a última versão..."
msgid "No precompiled APK is available for this version."
msgstr "Nenhum APK pré-compilado está disponível para esta versão."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "ADB is not installed."
msgstr "ADB não está instalado."
@@ -135,7 +136,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "Headsets"
@@ -180,7 +181,7 @@ msgstr "Renomear"
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
#: dashboard/qml/WizardPage.qml:326 dashboard/qml/WizardPage.qml:410
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "Cancelar"
@@ -231,40 +232,40 @@ msgstr "Parear um novo headset"
msgid "Headset statistics"
msgstr "Estatísticas do headset"
#: dashboard/qml/Main.qml:103
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "O servidor não tem capabilities CAP_SYS_NICE."
#: dashboard/qml/Main.qml:110
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Conserte"
#: dashboard/qml/Main.qml:119
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "A capability CAP_SYS_NICE será usada quando o servidor for reiniciado."
#: dashboard/qml/Main.qml:125
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reiniciar agora"
#: dashboard/qml/Main.qml:136
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1"
#: dashboard/qml/Main.qml:142
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Mais informações"
#: dashboard/qml/Main.qml:150
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -273,76 +274,86 @@ msgstr ""
"Use o driver Mesa (radv) para GPUs AMD\n"
"Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO"
#: dashboard/qml/Main.qml:159
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"Nenhuma compatibilidade com OpenVR foi detectada. Os jogos do Steam não "
"conseguirão carregar em VR.\n"
"Instale o xrizer ou o OpenComposite."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Servidor falhou em iniciar"
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Abrir logs do servidor"
#: dashboard/qml/Main.qml:202
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Rodando"
#: dashboard/qml/Main.qml:217
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Pareando"
#: dashboard/qml/Main.qml:230
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374
#, kde-format
msgid "Connect by USB"
msgstr "Conectar pela USB"
#: dashboard/qml/Main.qml:249
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr ""
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor."
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:274
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Aplicativo"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "Assistente"
#: dashboard/qml/Main.qml:320
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "Instalar o aplicativo"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Resolver problemas"
@@ -353,13 +364,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "Nenhum"
#: dashboard/qml/SelectGame.qml:21
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SelectGame.qml:79
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
@@ -448,19 +459,19 @@ msgctxt "encoder preset"
msgid "Default preset"
msgstr "Predefinição padrão"
#: dashboard/qml/SettingsPage.qml:145
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "Predefinição de baixa latência"
#: dashboard/qml/SettingsPage.qml:170
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "Predefinição segura"
#: dashboard/qml/SettingsPage.qml:193
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
@@ -470,84 +481,84 @@ msgstr ""
"perto de uma aresta.\n"
"Arraste a aresta para redimensionar ou remover codificadores."
#: dashboard/qml/SettingsPage.qml:220
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "Codificador:"
#: dashboard/qml/SettingsPage.qml:229
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Auto"
#: dashboard/qml/SettingsPage.qml:234
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (GPUs NVIDIA)"
#: dashboard/qml/SettingsPage.qml:239
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (GPUs AMD e Intel)"
#: dashboard/qml/SettingsPage.qml:244
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (codificação por software)"
#: dashboard/qml/SettingsPage.qml:249
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vídeo Vulkan)"
#: dashboard/qml/SettingsPage.qml:272
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Auto\" usará aceleração de hardware se disponível"
#: dashboard/qml/SettingsPage.qml:278
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "Codec:"
#: dashboard/qml/SettingsPage.qml:285
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Auto"
#: dashboard/qml/SettingsPage.qml:289
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:293
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:297
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:319
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "Opções avançadas"
#: dashboard/qml/SettingsPage.qml:325
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "Ativar janela de depuração"
#: dashboard/qml/SettingsPage.qml:332
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "Ativar suporte a dispositivos rastreados pelo SteamVR"
#: dashboard/qml/SettingsPage.qml:335
#: dashboard/qml/SettingsPage.qml:323
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -560,44 +571,44 @@ msgstr ""
"Os dispositivos precisam estar ligados antes de se conectar ao WiVRn.\n"
"Uma ferramenta externa como o motoc é necessária para calibração."
#: dashboard/qml/SettingsPage.qml:343
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "Caminho personalizado do adb"
#: dashboard/qml/SettingsPage.qml:354
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "Caminho do adb:"
#: dashboard/qml/SettingsPage.qml:363
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Navegar"
#: dashboard/qml/SettingsPage.qml:373
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "Default"
#: dashboard/qml/SettingsPage.qml:387
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SettingsPage.qml:392
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "Desativado"
#: dashboard/qml/SettingsPage.qml:400
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "Biblioteca de compatibilidade OpenVR:"
#: dashboard/qml/SettingsPage.qml:426
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Caminho da biblioteca, excluindo bin/linux64/vrclient.so"
@@ -634,7 +645,7 @@ msgstr "Comando de lançamento da Steam copiado"
msgid "I cannot find the WiVRn app on my headset"
msgstr "Não consigo encontrar o aplicativo do WiVRn no meu headset"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -648,7 +659,7 @@ msgstr ""
msgid "I cannot see my computer in the WiVRn app"
msgstr "Não consigo ver meu computador no aplicativo do WiVRn"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
@@ -702,7 +713,7 @@ msgstr "Pareamento está atualmente desativado."
msgid "I have no sound on my headset"
msgstr "Eu não tenho som no meu headset"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -727,9 +738,9 @@ msgid "Getting started"
msgstr "Começando"
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:316
#: dashboard/qml/WizardPage.qml:400 dashboard/qml/WizardPage.qml:447
#: dashboard/qml/WizardPage.qml:484
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "Voltar"
@@ -749,8 +760,8 @@ msgstr ""
"ao seu computador."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452
#: dashboard/qml/WizardPage.qml:489
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "Próximo"
@@ -849,12 +860,12 @@ msgstr ""
"O aplicativo que você escolher será iniciado automaticamente quando você "
"conectar seu headset."
#: dashboard/qml/WizardPage.qml:300
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "Informação importante"
#: dashboard/qml/WizardPage.qml:307
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
@@ -863,12 +874,12 @@ msgstr ""
"O WiVRn substitui o SteamVR completamente, você não deve iniciar o SteamVR "
"enquanto o WiVRn estiver rodando."
#: dashboard/qml/WizardPage.qml:358
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Iniciar o aplicativo do WiVRn no seu headset"
#: dashboard/qml/WizardPage.qml:363
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -877,32 +888,32 @@ msgstr ""
"Para conectar pelo WiFi, inicie o aplicativo do WiVRn no seu headset, "
"conecte a \"%1\" e entre o PIN \"%2\"."
#: dashboard/qml/WizardPage.qml:370
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "Para conectar pela USB, clique em \"Conectar pela USB\"."
#: dashboard/qml/WizardPage.qml:383
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "Resolver problemas"
#: dashboard/qml/WizardPage.qml:405
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "Pular"
#: dashboard/qml/WizardPage.qml:425
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "Conexão estabelecida"
#: dashboard/qml/WizardPage.qml:430
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "Seu headset está conectado agora."
#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
@@ -911,22 +922,22 @@ msgstr ""
"Para conectar outro headset, se assegure que o pareamento esteja habilitado "
"no painel antes de conectar."
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "Terminar"
#: dashboard/qml/WizardPage.qml:472
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "Terminado"
#: dashboard/wivrn_server.cpp:584
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+318 -181
View File
@@ -4,134 +4,141 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
# Claudio Sampaio <patola@gmail.com>, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-23 05:42-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-09-18 16:52+0200\n"
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
"Language-Team: Portuguese <>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 48.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 25.08.1\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: client/scenes/lobby.cpp:148
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Sem formato de cadeia de troca suportado"
#: client/scenes/lobby.cpp:228
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT"
#: client/scenes/lobby.cpp:231
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Protocolo incompatível de servidor WiVRn (cliente: {}, servidor: {})"
#: client/scenes/lobby.cpp:246
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Incapaz de resolver hostname: {}"
#: client/scenes/lobby.cpp:333 client/scenes/lobby.cpp:339
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Incapaz de conectar a {} ({}): {}"
#: client/scenes/lobby.cpp:453
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Aguardando conexão"
#: client/scenes/lobby_gui.cpp:132
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:135
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualidade"
#: client/scenes/lobby_gui.cpp:137
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:198
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:204
msgid "Video stream interrupted"
msgstr "Fluxo de vídeo interrompido"
#: client/scenes/lobby_gui.cpp:206
msgid ""
"Connection ready\n"
"Start a VR application on your computer"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR no seu computador"
#: client/scenes/lobby_gui.cpp:208
#, c++-format
msgid ""
"Connection ready\n"
"Start a VR application on {}"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR em {}"
#: client/scenes/lobby_gui.cpp:221
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Fechar"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Conexão"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Conexão a {}"
#: client/scenes/lobby_gui.cpp:259
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:281
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Entre o PIN mostrado no painel"
#: client/scenes/lobby_gui.cpp:356
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Conectado ao servidor WiVRn"
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Conectado a {}"
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Abra um aplicativo no servidor para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Abra um aplicativo no seu computador ou selecione um para iniciar o "
"streaming."
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:367
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Endereço"
#: client/scenes/lobby_gui.cpp:376
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:391
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Salvar"
#: client/scenes/lobby_gui.cpp:458
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -139,32 +146,45 @@ msgstr ""
"Inicie um servidor WiVRn em sua\n"
"rede local"
#: client/scenes/lobby_gui.cpp:490
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Autoconectar"
#: client/scenes/lobby_gui.cpp:516
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:526 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versão de servidor incompatível"
#: client/scenes/lobby_gui.cpp:528
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Servidor não disponível"
#: client/scenes/lobby_gui.cpp:614
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Português (Brasil)"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Linguagem"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Linguagem do Sistema"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:614 client/scenes/lobby_gui.cpp:616
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automático"
#: client/scenes/lobby_gui.cpp:623
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -172,60 +192,60 @@ msgstr ""
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
"Pode causar oscilações quando uma alteração ocorrer."
#: client/scenes/lobby_gui.cpp:640
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Taxa de atualização mínima"
#: client/scenes/lobby_gui.cpp:663
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Escala de resolução"
#: client/scenes/lobby_gui.cpp:667 client/scenes/lobby_gui.cpp:971
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por olho"
#: client/scenes/lobby_gui.cpp:678 client/scenes/lobby_gui.cpp:982
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Ativar microfone"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Áudio Não-processado de Microfone"
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Força a desativação de filtros de áudio tais como cancelamento de ruído"
#: client/scenes/lobby_gui.cpp:707
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Ativar rastreamento de mãos"
#: client/scenes/lobby_gui.cpp:714 client/scenes/lobby_gui.cpp:727
#: client/scenes/lobby_gui.cpp:740 client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Este recurso não é suportado pelo seu headset"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Ativar rastreamento ocular"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Ativar rastreamento facial"
#: client/scenes/lobby_gui.cpp:747
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Ativar rastreamento corporal"
#: client/scenes/lobby_gui.cpp:764
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -237,11 +257,11 @@ msgstr ""
"estimados\n"
"com base nas posições do controle e do headset."
#: client/scenes/lobby_gui.cpp:777
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Ativar rastreamento corporal inferior"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -252,11 +272,11 @@ msgstr ""
"Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n"
"configurações de Rastreamento de Movimento do Quest"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Ativar rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -264,45 +284,32 @@ msgstr ""
"Só tem efeito com o rastreamento corporal inferior ativado\n"
"Pode ser desejado ao usar outra fonte de rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:800
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Habilitar repassagem de vídeo no lobby"
#: client/scenes/lobby_gui.cpp:810
msgid "Show performance metrics"
msgstr "Mostrar métricas de desempenho"
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Habilitar janela na stream"
#: client/scenes/lobby_gui.cpp:814
msgid "Overlay can be toggled by pressing both thumbsticks"
msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Habilita que a janela de configuração seja vista enquanto o jogo está sendo "
"streamado.\n"
"Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente."
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:852
#: client/scenes/stream_stats.cpp:159
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:848
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:858 client/scenes/lobby_gui.cpp:866
#: client/scenes/stream_stats.cpp:161
msgid "GPU time"
msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:862
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:881
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Pós-processamento OpenXR"
#: client/scenes/lobby_gui.cpp:885
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -310,11 +317,11 @@ msgstr ""
"Reduz flicker para arestas de alto contraste.\n"
"Útil quando a resolução de entrada é alta comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:910
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:930
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -322,198 +329,256 @@ msgstr ""
"Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n"
"Útil quando a resolução de entrada é baixa comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:939
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:947
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
"Only enable if you know what you're doing."
msgstr ""
"Neste headset, este ajuste foi completamente supersedido pelo ajuste de "
"aumento de nitidez acima.\n"
"Somente habilite se souber o que está fazendo."
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:949
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de "
"desempenho no headset"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:967
msgid "Upscaling factor"
msgstr "Fator de upscaling"
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:986
msgid "Use edge direction"
msgstr "Usar direção da aresta"
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Habilitar o microfone?"
#: client/scenes/lobby_gui.cpp:992
msgid "Adds an additional performance cost"
msgstr "Acrescenta um custo de desempenho"
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Habilitar o rastreamento ocular?"
#: client/scenes/lobby_gui.cpp:997
msgid "Edge threshold"
msgstr "Limite da aresta"
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Habilitar o rastreamento facial?"
#: client/scenes/lobby_gui.cpp:1004 client/scenes/lobby_gui.cpp:1013
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomenadado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Habilitar o rastreamento corporal?"
#: client/scenes/lobby_gui.cpp:1007
msgid "Edge sharpness"
msgstr "Nitidez da aresta"
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Bem vindo(a) ao WiVRn"
#: client/scenes/lobby_gui.cpp:1101 client/scenes/lobby_gui.cpp:1757
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Sim"
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Não"
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licenças"
#: client/scenes/lobby_gui.cpp:1440
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "O microfone está ativado"
#: client/scenes/lobby_gui.cpp:1441
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "O microfone está desativado"
#: client/scenes/lobby_gui.cpp:1450
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "O rastreamento de mãos está ativado"
#: client/scenes/lobby_gui.cpp:1451
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "O rastreamento de mãos está desativado"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "O rastreamento ocular está ativado"
#: client/scenes/lobby_gui.cpp:1461
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "O rastreamento ocular está desativado"
#: client/scenes/lobby_gui.cpp:1471 client/scenes/lobby_gui.cpp:1482
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "O rastreamento facial está ativado"
#: client/scenes/lobby_gui.cpp:1472 client/scenes/lobby_gui.cpp:1483
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "O rastreamento facial está desativado"
#: client/scenes/lobby_gui.cpp:1493
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "O rastreamento corporal está ativado"
#: client/scenes/lobby_gui.cpp:1494
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "O rastreamento corporal está desativado"
#: client/scenes/lobby_gui.cpp:1510
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Adicionar servidor"
#: client/scenes/lobby_gui.cpp:1739
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1742
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Ajustes"
#: client/scenes/lobby_gui.cpp:1745
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Pós-processamento"
#: client/scenes/lobby_gui.cpp:1749
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Depurar"
#: client/scenes/lobby_gui.cpp:1754
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Sobre"
#: client/scenes/lobby_gui.cpp:1760
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Sair"
#: client/scenes/lobby_gui.cpp:1774
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press A or X or put your palm up\n"
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Pressione A ou X ou coloque a palma da mão pra cima\n"
"Pressione o botão de aderência ou coloque a palma da mão para cima\n"
"para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1776
msgid "Press A or X to move the main window"
msgstr "Pressione A ou X para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Pressione o botão de aderência para mover a janela principal"
#: client/scenes/stream_stats.cpp:161
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Reprojetar"
#: client/scenes/stream_stats.cpp:162
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "Blit"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Rede"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Baixar"
#: client/scenes/stream_stats.cpp:165
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Enviar"
#: client/scenes/stream_stats.cpp:234
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "Decodificador {}"
#: client/scenes/stream_stats.cpp:246
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "Tempos [ms]"
#: client/scenes/stream_stats.cpp:306
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "Codificar"
#: client/scenes/stream_stats.cpp:307
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "Enviar"
#: client/scenes/stream_stats.cpp:308
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "Receber"
#: client/scenes/stream_stats.cpp:309
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "Decodificar"
#: client/scenes/stream_stats.cpp:310
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "Blitado"
#: client/scenes/stream_stats.cpp:311
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "Mostrado"
#: client/scenes/stream_stats.cpp:312
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_stats.cpp:330
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Movimento estimado para a latência de fótons: {}ms"
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Pressione o botão de aderência para mover a janela"
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latência (de movimento para fótons)"
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Ajuste do centro de foveação"
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} graus"
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distância {:.2f} m"
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Padrão"
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Modificar"
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Use os thumbsticks para mover o centro da foveação"
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Pressione A para salvar ou B para cancelar"
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Visualização compacta"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Tempo esgotado"
@@ -529,3 +594,75 @@ msgstr "Incapaz de verificar PIN"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Pareamento está desabilitado no servidor"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Habilitar Snapdragon Game Super Resolution"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr ""
#~ "Neste headset, este ajuste foi completamente supersedido pelo ajuste de "
#~ "aumento de nitidez acima.\n"
#~ "Somente habilite se souber o que está fazendo."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de "
#~ "desempenho no headset"
#~ msgid "Upscaling factor"
#~ msgstr "Fator de upscaling"
#~ msgid "Use edge direction"
#~ msgstr "Usar direção da aresta"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Acrescenta um custo de desempenho"
#~ msgid "Edge threshold"
#~ msgstr "Limite da aresta"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Recomenadado: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Nitidez da aresta"
#~ msgid "Video stream interrupted"
#~ msgstr "Fluxo de vídeo interrompido"
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on your computer"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR no seu computador"
#, c++-format
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on {}"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR em {}"
#~ msgid "Show performance metrics"
#~ msgstr "Mostrar métricas de desempenho"
#~ msgid "Overlay can be toggled by pressing both thumbsticks"
#~ msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#~ msgid ""
#~ "Press A or X or put your palm up\n"
#~ "to move the main window"
#~ msgstr ""
#~ "Pressione A ou X ou coloque a palma da mão pra cima\n"
#~ "para mover a janela principal"
#~ msgid "Press A or X to move the main window"
#~ msgstr "Pressione A ou X para mover a janela principal"
+113 -99
View File
@@ -2,13 +2,14 @@
# This file is distributed under the same license as the WiVRn-dashboard package.
#
# SPDX-FileCopyrightText: 2025 not <github.superglue094@slmail.me>
# SPDX-FileCopyrightText: 2025 eps <eps@bwsal.org>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-25 22:10+0200\n"
"PO-Revision-Date: 2025-08-02 18:48+0200\n"
"Last-Translator: not <github.superglue094@slmail.me>\n"
"POT-Creation-Date: 2025-08-08 20:41+0200\n"
"PO-Revision-Date: 2025-08-08 22:35+0200\n"
"Last-Translator: eps <eps@bwsal.org>\n"
"Language-Team: Slovak <>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
@@ -20,12 +21,12 @@ msgstr ""
#: dashboard/apk_installer.cpp:167
#, kde-format
msgid "Downloading APK: %1 MB / %2 MB"
msgstr "Sťahujem APK: %1 MB / %2 MB"
msgstr "Sťahuje sa APK: %1 MB / %2 MB"
#: dashboard/apk_installer.cpp:169
#, kde-format
msgid "Downloading APK: %1 MB"
msgstr "Sťahujem APK: %1 MB"
msgstr "Sťahuje sa APK: %1 MB"
#: dashboard/apk_installer.cpp:178
#, kde-format
@@ -35,12 +36,12 @@ msgstr "Sťahovanie zrušené"
#: dashboard/apk_installer.cpp:194
#, kde-format
msgid "Cannot download APK: %1"
msgstr "APK sa nedá stiahnuť: %1"
msgstr "APK sa nedá stiahnúť: %1"
#: dashboard/apk_installer.cpp:217
#, kde-format
msgid "Installing APK"
msgstr "Inštalujem APK"
msgstr "Inštaluje sa APK"
#: dashboard/apk_installer.cpp:221
#, kde-format
@@ -50,7 +51,7 @@ msgstr "Nepodarilo sa spustiť adb: %1"
#: dashboard/apk_installer.cpp:231
#, kde-format
msgid "adb exited abnormally: %1"
msgstr "adb sa neočakávane ukončil: %1"
msgstr "adb sa neočakávane ukončilo: %1"
#: dashboard/apk_installer.cpp:239
#, kde-format
@@ -76,15 +77,15 @@ msgstr "Nainštaluj si aplikáciu WiVRn do headsetu"
#: dashboard/qml/WizardPage.qml:192
#, kde-format
msgid "Checking latest release..."
msgstr "Kontrolujem najnovšiu verziu…"
msgstr "Kontroluje sa najnovšia verzia…"
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
#, kde-format
msgid "No precompiled APK is available for this version."
msgstr "Pre túto verziu nie je dostupné predkompilované APK."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#, kde-format
msgid "ADB is not installed."
msgstr "ADB nie je nainštalované."
@@ -92,7 +93,7 @@ msgstr "ADB nie je nainštalované."
#: dashboard/qml/ApkInstallPage.qml:47
#, kde-format
msgid "Connect a headset and make sure developer mode is enabled."
msgstr "Pripoj headset a uisti sa, že je zapnutý vývojársky režim."
msgstr "Pripojte headset a uistite sa, že je zapnutý vývojársky režim."
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
#, kde-format
@@ -102,12 +103,11 @@ msgid ""
"client."
msgstr ""
"Postupuj podľa pokynov v <a href=\"https://github.com/WiVRn/WiVRn/blob/"
"master/docs/building.md#client-headset\">dokumentácii</a> na vytvorenie vlastn"
"ého "
"klienta."
"master/docs/building.md#client-headset\">dokumentácii</a> na vytvorenie "
"vlastného klienta."
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:59
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetStatsPage.qml:36
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/TroubleshootPage.qml:59
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
@@ -116,7 +116,7 @@ msgstr "Späť"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
msgstr "Vyber svoj headset"
msgstr "Vyberte svoj headset"
#: dashboard/qml/DeviceCard.qml:46
#, kde-format
@@ -133,7 +133,12 @@ msgstr "Preinštalovať WiVRn"
msgid "Install WiVRn"
msgstr "Nainštalovať WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#: dashboard/qml/HeadsetStatsPage.qml:12
#, kde-format
msgid "Headset statistics"
msgstr "Štatistiky headsetu"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#, kde-format
msgid "Headsets"
msgstr "Headsety"
@@ -210,12 +215,12 @@ msgstr "Vypnúť párovanie"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Start the WiVRn app on your headset and use the PIN: %1"
msgstr "Spusť aplikáciu WiVRn v headsete a zadaj PIN: %1"
msgstr "Spustite aplikáciu WiVRn v headsete a zadajte PIN: %1"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Enable pairing to allow your headset to connect to this computer"
msgstr "Zapni párovanie, aby sa mohol headset pripojiť k tomuto počítaču"
msgstr "Zapnite párovanie, aby sa mohol headset pripojiť k tomuto počítaču"
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:37
#, kde-format
@@ -227,122 +232,128 @@ msgstr "Zapnúť párovanie"
msgid "Pair a new headset"
msgstr "Spárovať nový headset"
#: dashboard/qml/HeadsetStatsPage.qml:12
#, kde-format
msgid "Headset statistics"
msgstr "Štatistiky headsetu"
#: dashboard/qml/Main.qml:103
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "Server nemá oprávnenia CAP_SYS_NICE."
#: dashboard/qml/Main.qml:110
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Opraviť"
#: dashboard/qml/Main.qml:119
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "CAP_SYS_NICE bude použité po reštarte servera."
#: dashboard/qml/Main.qml:125
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reštartovať teraz"
#: dashboard/qml/Main.qml:136
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"GPU od NVIDIA vyžadujú minimálne verziu ovládača 565.77, aktuálna verzia je %1"
"GPU od NVIDIA vyžadujú minimálne verziu ovládača 565.77, aktuálna verzia je "
"%1"
#: dashboard/qml/Main.qml:142
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Viac info"
#: dashboard/qml/Main.qml:150
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
msgstr ""
"Pre GPU od AMD používaj ovládač Mesa (radv)\n"
"Pre GPU od AMD používajte ovládač Mesa (radv)\n"
"Hardvérové kódovanie cez vaapi nefunguje s AMDVLK ani AMDGPU-PRO"
#: dashboard/qml/Main.qml:159
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"Žiadna OpenVR kompatibilita nebola nájdená, Hry na steame nebude možné "
"načítať do VRka.\n"
"Nainštalujte xrizer alebo OpenComposite."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Nepodarilo sa spustiť server"
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Zobraziť logy servera"
#: dashboard/qml/Main.qml:202
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Beží"
#: dashboard/qml/Main.qml:217
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Párovanie"
#: dashboard/qml/Main.qml:230
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#, kde-format
msgid "Connect by USB"
msgstr "Pripojiť cez USB"
#: dashboard/qml/Main.qml:249
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr "Žiadny headset nie je pripojený alebo nemá zapnutý vývojársky režim."
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Odpojiť"
#: dashboard/qml/Main.qml:274
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Aplikácia"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Informácie o Steame"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:325
#, kde-format
msgid "Wizard"
msgstr "Sprievodca"
#: dashboard/qml/Main.qml:320
#: dashboard/qml/Main.qml:332
#, kde-format
msgid "Install the app"
msgstr "Nainštalovať aplikáciu"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Nastavenia"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Riešiť problémy"
@@ -369,12 +380,12 @@ msgstr "Prehľadať"
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "Manuálna foveation"
msgstr "Manuálne foveovanie"
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgid "Foveation strength:"
msgstr "Foveation sila"
msgstr "Sila foveovania"
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
@@ -393,13 +404,13 @@ msgid ""
"The recommended values are between 20% and 50% for headsets without eye "
"tracking and between 50% and 70% for headsets with eye tracking."
msgstr ""
"Silnejšia foveácia zvyšuje ostrosť v strede obrazu a znižuje ju na okrajoch, č"
"ím zrýchľuje dekódovanie. Je vhodnejšia pre rýchle hry.\n"
"Silnejšia foveácia zvyšuje ostrosť v strede obrazu a znižuje ju na okrajoch, "
"čím zrýchľuje dekódovanie. Je vhodnejšia pre rýchle hry.\n"
"\n"
"Slabšia foveácia zachováva rovnomernú ostrosť v celom obraze.\n"
"\n"
"Odporúčané hodnoty sú medzi 20 % a 50 % pre headsety bez sledovania očí a medz"
"i 50 % a 70 % pre headsety so sledovaním očí."
"Odporúčané hodnoty sú medzi 20 % a 50 % pre headsety bez sledovania očí a "
"medzi 50 % a 70 % pre headsety so sledovaním očí."
#: dashboard/qml/SettingsPage.qml:74
#, kde-format
@@ -465,8 +476,9 @@ msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
"Drag an edge to resize or remove encoders."
msgstr ""
"Ak chceš pridať nový enkodér, rozdeľ existujúci kliknutím pri jeho okraji.\n"
"Potiahnutím okraja môžeš meniť veľkosť alebo enkodér odstrániť."
"Ak chcete pridať nový enkodér, rozdeľte existujúci kliknutím pri jeho "
"okraji.\n"
"Potiahnutím okraja môžete meniť veľkosť alebo enkodér odstrániť."
#: dashboard/qml/SettingsPage.qml:220
#, kde-format
@@ -606,14 +618,14 @@ msgid ""
"For Steam games, right click on the game in Steam, go in Properties > "
"General and paste this in \"Launch options\":"
msgstr ""
"Pre Steam hry klikni pravým tlačidlom na hru v Steame, otvor Vlastnosti > "
"Všeo becné a vlož toto do \"Spúšťacích parametrov“:"
"Pre Steam hry kliknite pravým tlačidlom na hru v Steame, otvorte Vlastnosti > "
"Všeobecné a vložte toto do \"Spúšťacích parametrov“:"
#: dashboard/qml/SteamLaunchOptions.qml:20
#, kde-format
msgid "Paste this in the Steam launch options for the app you want to start"
msgstr ""
"Vlož toto do spúšťacích možností Steamu pre aplikáciu, ktorú chceš spustiť"
"Vložte toto do spúšťacích možností Steamu pre aplikáciu, ktorú chcete spustiť"
#: dashboard/qml/SteamLaunchOptions.qml:26
#, kde-format
@@ -637,8 +649,8 @@ msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
"\"unknown sources\" section."
msgstr ""
"Ak si nainštaloval WiVRn cez USB na Meta headset, aplikácia sa nachádza v sekc"
"ii „neznáme zdroje“."
"Ak ste nainštalovali WiVRn cez USB na Meta headset, aplikácia sa nachádza v "
"sekcii „neznáme zdroje“."
#: dashboard/qml/TroubleshootPage.qml:24
#, kde-format
@@ -651,8 +663,9 @@ msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
msgstr ""
"Ak server nie je viditeľný alebo sa nepodarilo pripojenie, skontroluj, či sú v"
" tvojom firewalle otvorené porty 5353 (UDP) a 9757 (TCP aj UDP)."
"Ak server nie je viditeľný alebo sa nepodarilo pripojenie, skontrolujte, či sú"
" "
"vo vašom firewalle otvorené porty 5353 (UDP) a 9757 (TCP aj UDP)."
#: dashboard/qml/TroubleshootPage.qml:28
#, kde-format
@@ -666,10 +679,9 @@ msgid ""
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
"server version is <b>%1</b></li></ul>"
msgstr ""
"<p>Verzia aplikácie v headsete a verzia servera na tvojom počítači sa musia zh"
"odovať."
"</p><ul><li>Verziu aplikácie nájdeš v časti „O aplikácii“</li><li>Verzia "
"servera je <b>%1</b></li></ul>"
"<p>Verzia aplikácie v headsete a verzia servera na vašom počítači sa musia "
"zhodovať.</p><ul><li>Verziu aplikácie nájdete v časti „O aplikácii“</"
"li><li>Verzia servera je <b>%1</b></li></ul>"
#: dashboard/qml/TroubleshootPage.qml:32
#, kde-format
@@ -682,8 +694,8 @@ msgid ""
"If you have reinstalled the server or the client or if you want to connect "
"another headset, you must enable pairing before connecting."
msgstr ""
"Ak si preinštaloval server alebo klienta, alebo ak chceš pripojiť iný headset,"
" musíš pred pripojením povoliť párovanie."
"Ak ste preinštalovali server alebo klienta, alebo ak chcete pripojiť iný "
"headset, musíte pred pripojením povoliť párovanie."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
@@ -706,8 +718,9 @@ msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
"device for applications to use it."
msgstr ""
"Keď je headset pripojený, vyber WiVRn ako predvolené zvukové zariadenie, aby h"
"o aplikácie používali."
"Keď je headset pripojený, vyberte WiVRn ako predvolené zvukové zariadenie, aby"
" "
"ho aplikácie používali."
#: dashboard/qml/TroubleshootPage.qml:67
#, kde-format
@@ -743,8 +756,8 @@ msgid ""
"This wizard will help you set up WiVRn on your headset and connect it to "
"your computer."
msgstr ""
"Tento sprievodca ti pomôže nastaviť WiVRn na tvojom headsete a pripojiť ho k p"
"očítaču."
"Tento sprievodca vám pomôže nastaviť WiVRn na vašom headsete a pripojiť ho k "
"počítaču."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452
@@ -756,12 +769,12 @@ msgstr "Ďalej"
#: dashboard/qml/WizardPage.qml:112
#, kde-format
msgid "How to enable developer mode"
msgstr "Ako zapnúť vývojársky reži"
msgstr "Ako zapnúť vývojársky režim"
#: dashboard/qml/WizardPage.qml:119
#, kde-format
msgid "Follow the manufacturer's instructions below:"
msgstr "Postupuj podľa inštrukcií od výrobcu:"
msgstr "Postupujte podľa inštrukcií od výrobcu:"
#: dashboard/qml/WizardPage.qml:142
#, kde-format
@@ -770,9 +783,9 @@ msgid ""
"headset.\n"
"You can either install it from the Meta store or directly over USB."
msgstr ""
"Na používanie WiVRn je potrebné nainštalovať klientsku aplikáciu do headsetu."
"\n"
"Môžeš ju nainštalovať buď z Meta obchodu alebo priamo cez USB."
"Na používanie WiVRn je potrebné nainštalovať klientsku aplikáciu do "
"headsetu.\n"
"Môžete ju nainštalovať buď z Meta obchodu alebo priamo cez USB."
#: dashboard/qml/WizardPage.qml:148
#, kde-format
@@ -785,8 +798,8 @@ msgid ""
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
msgstr ""
"Pre Quest 2, 3, 3S a Pro si môžeš aplikáciu stiahnuť z <a "
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta obchodu</a>."
"Pre Quest 2, 3, 3S a Pro si môžete aplikáciu stiahnuť z <a href=\"https://"
"www.meta.com/experiences/7959676140827574/\">obchodu Meta</a>."
#: dashboard/qml/WizardPage.qml:164
#, kde-format
@@ -794,8 +807,8 @@ msgid ""
"A newer release is available: %1 → %2, the client app on the Meta store may "
"not be compatible."
msgstr ""
"K dispozícii je novšia verzia: %1 → %2, Aplikácia z obchodu Meta nemusí byť ko"
"mpatibilná."
"K dispozícii je novšia verzia: %1 → %2, Aplikácia z obchodu Meta nemusí byť "
"kompatibilná."
#: dashboard/qml/WizardPage.qml:171
#, kde-format
@@ -803,8 +816,8 @@ msgid ""
"This is a nightly build, the client app on the Meta store may not be "
"compatible."
msgstr ""
"Toto je nightly verzia, aplikácia z Meta obchodu s ňou nemusí byť kompatibilná"
"."
"Toto je nightly verzia, aplikácia z Meta obchodu s ňou nemusí byť "
"kompatibilná."
#: dashboard/qml/WizardPage.qml:181
#, kde-format
@@ -829,14 +842,14 @@ msgid ""
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
"href=\"#\">developer mode</a></li></ul></p>"
msgstr ""
"<p>Headset nebol rozpoznaný. Uisti sa, že:\n"
"<ul><li>Máš nainštalované ADB udev rules</li><li>Headset je v <a "
"<p>Headset nebol rozpoznaný. Uistite sa, že:\n"
"<ul><li>Máte nainštalované ADB udev rules</li><li>Headset je v <a "
"href=\"#\">režime vývojára</a></li></ul></p>"
#: dashboard/qml/WizardPage.qml:280
#, kde-format
msgid "Select the application you want to start"
msgstr "Vyber aplikáciu, ktorú chceš spustiť"
msgstr "Vyberte aplikáciu, ktorú chcete spustiť"
#: dashboard/qml/WizardPage.qml:286
#, kde-format
@@ -856,13 +869,13 @@ msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
"running."
msgstr ""
"WiVRn úplne nahrádza SteamVR, preto by si SteamVR nemal spúšťať, keď beží WiVR"
"n"
"WiVRn úplne nahrádza SteamVR, preto by ste SteamVR nemali spúšťať, keď beží "
"WiVRn"
#: dashboard/qml/WizardPage.qml:358
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Spusť aplikáciu WiVRn v headsete"
msgstr "Spustite aplikáciu WiVRn v headsete"
#: dashboard/qml/WizardPage.qml:363
#, kde-format
@@ -870,14 +883,14 @@ msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
"and enter PIN \"%2\"."
msgstr ""
"Na pripojenie cez Wi-Fi spusti aplikáciu WiVRn v headsete, pripoj sa k \"%1“ a"
" "
"zadaj PIN \"%2“."
"Na pripojenie cez Wi-Fi spustite aplikáciu WiVRn v headsete, pripojte sa k \"%"
"1“ "
"a zadajte PIN \"%2“."
#: dashboard/qml/WizardPage.qml:370
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "Pre pripojenie cez USB klikni na \"Pripojiť cez USB“."
msgstr "Pre pripojenie cez USB kliknite na \"Pripojiť cez USB“."
#: dashboard/qml/WizardPage.qml:383
#, kde-format
@@ -905,8 +918,9 @@ msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
"before connecting."
msgstr ""
"Ak chceš pripojiť ďalší headset, uisti sa, že je v ovládacom paneli povolené p"
"árovanie."
"Ak chcete pripojiť ďalší headset, uistite sa, že je v ovládacom paneli povolen"
"é "
"párovanie."
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#, kde-format
@@ -918,12 +932,12 @@ msgstr "Dokončiť"
msgid "Finished"
msgstr "Hotovo"
#: dashboard/wivrn_server.cpp:584
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+189 -169
View File
@@ -2,13 +2,14 @@
# This file is distributed under the same license as the WiVRn package.
#
# SPDX-FileCopyrightText: 2025 not <github.superglue094@slmail.me>
# SPDX-FileCopyrightText: 2025 eps <eps@bwsal.org>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-30 09:32+0200\n"
"PO-Revision-Date: 2025-08-02 18:41+0200\n"
"Last-Translator: not <github.superglue094@slmail.me>\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-08-08 22:08+0200\n"
"Last-Translator: eps <eps@bwsal.org>\n"
"Language-Team: Slovak <>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
@@ -17,7 +18,7 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Lokalize 25.04.3\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Žiadny podporovaný formát swapchainu"
@@ -45,129 +46,142 @@ msgstr "Nie je možné sa pripojiť k {} ({}): {}"
msgid "Waiting for connection"
msgstr "Čaká sa na pripojenie"
#: client/scenes/lobby_gui.cpp:156
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normálna"
#: client/scenes/lobby_gui.cpp:159
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Vyššia kvalita"
#: client/scenes/lobby_gui.cpp:161
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Vypnuté"
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Odpojiť"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Zatvoriť"
#: client/scenes/lobby_gui.cpp:195
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Pripojenie"
#: client/scenes/lobby_gui.cpp:197
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Pripojenie k {}"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:249
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Zadajte PIN zobrazený v okne aplikácie"
#: client/scenes/lobby_gui.cpp:315
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Pripojené k WiVRn serveru"
#: client/scenes/lobby_gui.cpp:317
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Pripojené k {}"
#: client/scenes/lobby_gui.cpp:327
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Na serveri spustite aplikáciu, aby sa začalo streamovanie."
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Na svojom počítači spustite aplikáciu alebo vyberte jednu na začatie streamova"
"nia."
"Na svojom počítači spustite aplikáciu alebo vyberte jednu na začatie "
"streamovania."
#: client/scenes/lobby_gui.cpp:335
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Spustite aplikáciu na {} alebo vyberte jednu na začatie streamovania."
msgstr "Spustite aplikáciu na {} alebo jednu vyberte pre začatie streamovania."
#: client/scenes/lobby_gui.cpp:383
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Názov"
#: client/scenes/lobby_gui.cpp:394
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Adresa"
#: client/scenes/lobby_gui.cpp:403
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:411
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Iba TCP"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Zrušiť"
#: client/scenes/lobby_gui.cpp:432
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Uložiť"
#: client/scenes/lobby_gui.cpp:485
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
msgstr ""
"Spustite WiVRn server vo svojej\n"
"Spustite WiVRn server na svojej\n"
"lokálnej sieti"
#: client/scenes/lobby_gui.cpp:517
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Automatické pripojenie"
#: client/scenes/lobby_gui.cpp:543
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Pripojiť"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Verzia servera nie je kompatibilná"
#: client/scenes/lobby_gui.cpp:555
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Server nie je dostupný"
#: client/scenes/lobby_gui.cpp:641
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Slovenčina"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr ""
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr ""
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Obnovovacia frekvencia"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automaticky"
#: client/scenes/lobby_gui.cpp:650
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -175,60 +189,60 @@ msgstr ""
"Vyber obnovovaciu frekvenciu podľa výkonu aplikácie.\n"
"Pri zmene sa môže obraz trochu trhať."
#: client/scenes/lobby_gui.cpp:667
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Minimálna obnovovacia frekvencia"
#: client/scenes/lobby_gui.cpp:690
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Rozlíšenie"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} na oko"
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Rozlíšenie vyžšie ako {}x{} nemusí byť podporované vašim hedsetom"
msgstr "Rozlíšenie vyžšie ako {}x{} nemusí byť podporované vašim headsetom"
#: client/scenes/lobby_gui.cpp:711
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Zapnúť mikrofón"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Mikrofónu bez postrocesovaného zvuku"
msgstr "Mikrofónu bez procesovaného zvuku"
#: client/scenes/lobby_gui.cpp:726
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Vynúťené vypnutie zvukových filtrov, ako napríklad potlačenie okolného hluku"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Zapnúť sledovanie rúk"
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Táto fíčura nieje podporovaná vašim hedsetom"
msgstr "Táto funkcia nieje podporovaná vašim headsetom"
#: client/scenes/lobby_gui.cpp:745
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Zapnúť sledovanie očí"
#: client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Zapnúť sledovanie tváre"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Zapnúť sledovanie tela"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -236,27 +250,27 @@ msgid ""
msgstr ""
"Je potrebné 'Hand and body tracking' aby bolo zapnuté v Quest movement "
"tracking settings,\n"
"inak dáta o pozícii tela budú odhadované podla pozície hedsetu a ovládačov"
"inak dáta o pozícii tela budú odhadované podla pozície headsetu a ovládačov"
#: client/scenes/lobby_gui.cpp:799
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Zapnúť sledovanie spodnej části tela"
#: client/scenes/lobby_gui.cpp:805
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings"
msgstr ""
"Odhad polohy kĺbov dolnej časti tela pomocou Generative Legs\n"
"Vyžaduje, aby bolo v nastaveniach Quest movement "
"tracking povolené „Hand and body tracking“"
"Vyžaduje, aby bolo v nastaveniach Quest movement tracking povolené „Hand and "
"body tracking“"
#: client/scenes/lobby_gui.cpp:808
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Povoliť sledovanie pása"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -264,207 +278,175 @@ msgstr ""
"Platí len pri zapnutom sledovaní dolnej časti tela\n"
"Môže byť vhodné, ak sa používa iný zdroj sledovania pása"
#: client/scenes/lobby_gui.cpp:822
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Povoliť passthrough video v hlavnom menu"
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr ""
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "OpenXRPostprocesing"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
msgstr ""
"Zníženie blikania pri okrajoch z vysokým kontrastom.\n"
"Užitočné, keď je vstupné rozlíšenie vysoké v porovnaní s displejom hedsetu"
"Užitočné, keď je vstupné rozlíšenie vysoké v porovnaní s displejom headsetu"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Ostrosť"
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
msgstr ""
"Zlepšuje jasnosť pri okrajoch z vysokým kontrastom a potlačuje rozmazanie.\n"
"Užitočné, keď je vstupné rozlíšenie nízke v porovnaní s displejom hedsetu"
"Užitočné, keď je vstupné rozlíšenie nízke v porovnaní s displejom headsetu"
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Zapnúť Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:909
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
"Only enable if you know what you're doing."
msgstr ""
"V tomto headsete bolo toto nastavenie plne nahradené vyššie uvedeným natívnym"
"nastavením doostrenia.\n"
"Zapnite ho, len ak viete, čo robíte."
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Zvýšenie rozlíšenia a doostrenie na strane klienta zvyšuje náklady na výkon he"
"dsetu"
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Faktor upscalovania"
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Použitie smeru okrajov"
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Pridáva dodatočné náklady na výkon"
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Hraničná hodnota okrajov"
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Odporúčané: {:.1f}"
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Ostrosť okrajov"
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "CPU odozva"
#: client/scenes/lobby_gui.cpp:1075
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "CPU odozva [ms]"
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "GPU odozva"
#: client/scenes/lobby_gui.cpp:1089
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "GPU odozva [ms]"
#: client/scenes/lobby_gui.cpp:1132
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Zapnúť mikrofón?"
#: client/scenes/lobby_gui.cpp:1137
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Povolenie sledovania očí?"
#: client/scenes/lobby_gui.cpp:1142
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Povolenie sledovania tváre?"
#: client/scenes/lobby_gui.cpp:1147
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Povoliť sledovanie tela?"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Vitajte v WiVRn"
#: client/scenes/lobby_gui.cpp:1179
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Áno"
#: client/scenes/lobby_gui.cpp:1186
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Nie"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licencie"
#: client/scenes/lobby_gui.cpp:1519
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Mikrofón je zapnutý"
#: client/scenes/lobby_gui.cpp:1520
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Mikrofón je vypnutý"
#: client/scenes/lobby_gui.cpp:1529
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Sledovanie rúk je zapnuté"
#: client/scenes/lobby_gui.cpp:1530
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Sledovanie rúk je vypnuté"
#: client/scenes/lobby_gui.cpp:1539
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Sledovanie očí je zapnuté"
#: client/scenes/lobby_gui.cpp:1540
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Sledovanie očí je vypnuté"
#: client/scenes/lobby_gui.cpp:1553
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Sledovanie tváre je zapnuté"
#: client/scenes/lobby_gui.cpp:1554
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Sledovanie tváre je vypnuté"
#: client/scenes/lobby_gui.cpp:1564
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Sledovanie tela je zapnuté"
#: client/scenes/lobby_gui.cpp:1565
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Sledovanie tela je vypnuté"
#: client/scenes/lobby_gui.cpp:1581
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Pridať server"
#: client/scenes/lobby_gui.cpp:1826
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Zoznam serverov"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Nastavenia"
#: client/scenes/lobby_gui.cpp:1832
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Postprocesing"
#: client/scenes/lobby_gui.cpp:1836
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Ladenie"
#: client/scenes/lobby_gui.cpp:1841
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "O aplikácii"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Ukončiť"
#: client/scenes/lobby_gui.cpp:1864
msgid "Press the grip button or put your palm up\nto move the main window"
msgstr "Stlačte tlačidlo grip alebo zdvihnite dlaň\npre presunutie hlavného okna"
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Stlačte tlačidlo grip alebo zdvihnite dlaň\n"
"pre presunutie hlavného okna"
#: client/scenes/lobby_gui.cpp:1866
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Pre presunutie hlavného okna stlačte grip"
@@ -480,11 +462,11 @@ msgstr "blitovanie"
msgid "Network"
msgstr "Sieť"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Prijímanie"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Odosielanie"
@@ -525,66 +507,66 @@ msgstr "Zobrazený"
msgid "Predicted"
msgstr "Odhadovaný"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Odhadovaná odozva od pohybu po zobrazenie: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Pre presunutie okna stlačte grip"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pre zobrazenie WiVRn okna stlačte oba joysticky"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Odozva od pohybu po zobrazenie"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Prepísanie foveation centra"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Povoliť"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Výška: {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Vzdialenosť: {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Predvolené"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Zmeniť"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Pomocou joysticku nastavte foveation centrum"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Stlač A pre uloženie alebo B pre zrušenie"
msgstr "Stlačte A pre uloženie alebo B pre zrušenie"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Štatistiky"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Štatistiky na obrazovke"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Kompaktný vzhľad"
@@ -603,3 +585,41 @@ msgstr "Nie je možné overiť PIN"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Párovanie je na serveri vypnuté"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Zapnúť Snapdragon Game Super Resolution"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr ""
#~ "V tomto headsete bolo toto nastavenie plne nahradené vyššie uvedeným "
#~ "natívnym nastavením doostrenia.\n"
#~ "Zapnite ho, len ak viete, čo robíte."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Zvýšenie rozlíšenia a doostrenie na strane klienta zvyšuje náklady na "
#~ "výkon headsetu"
#~ msgid "Upscaling factor"
#~ msgstr "Faktor upscalovania"
#~ msgid "Use edge direction"
#~ msgstr "Použitie smeru okrajov"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Pridáva dodatočné náklady na výkon"
#~ msgid "Edge threshold"
#~ msgstr "Hraničná hodnota okrajov"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Odporúčané: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Ostrosť okrajov"
+943
View File
@@ -0,0 +1,943 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn-dashboard package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-12 15:54+0300\n"
"PO-Revision-Date: 2025-08-08 17:09+0300\n"
"Last-Translator: Hüseyin Fahri Uzun <fahri@uzun.pro>\n"
"Language-Team: \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.6\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
msgid "Downloading APK: %1 MB / %2 MB"
msgstr "APK indiriliyor: %1 MB / %2 MB"
#: dashboard/apk_installer.cpp:169
#, kde-format
msgid "Downloading APK: %1 MB"
msgstr "APK indiriliyor: %1 MB"
#: dashboard/apk_installer.cpp:178
#, kde-format
msgid "Download cancelled"
msgstr "İndirme iptal edildi"
#: dashboard/apk_installer.cpp:194
#, kde-format
msgid "Cannot download APK: %1"
msgstr "APK indirilemiyor: %1"
#: dashboard/apk_installer.cpp:217
#, kde-format
msgid "Installing APK"
msgstr "APK yükleniyor"
#: dashboard/apk_installer.cpp:221
#, kde-format
msgid "adb failed to start: %1"
msgstr "adb başlatılamadı: %1"
#: dashboard/apk_installer.cpp:231
#, kde-format
msgid "adb exited abnormally: %1"
msgstr "adb anormal şekilde çıktı: %1"
#: dashboard/apk_installer.cpp:239
#, kde-format
msgid "The 'adb install' command failed: exit code %1"
msgstr "'adb install' komutu başarısız oldu: çıkış kodu %1"
#: dashboard/apk_installer.cpp:244
#, kde-format
msgid "Installation successful"
msgstr "Yükleme başarılı"
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "WiVRn kontrol paneli"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
msgid "Install the WiVRn app on your headset"
msgstr "WiVRn uygulamasını gözlüğe yükle"
#: dashboard/qml/ApkInstallPage.qml:41 dashboard/qml/WizardPage.qml:157
#: dashboard/qml/WizardPage.qml:192
#, kde-format
msgid "Checking latest release..."
msgstr "En son sürüm kontrol ediliyor..."
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
#, kde-format
msgid "No precompiled APK is available for this version."
msgstr "Bu sürüm için önceden derlenmiş APK yok."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "ADB is not installed."
msgstr "ADB yüklü değil."
#: dashboard/qml/ApkInstallPage.qml:47
#, kde-format
msgid "Connect a headset and make sure developer mode is enabled."
msgstr ""
"Bir gözlük bağlayın ve geliştirici modunun etkinleştirildiğinden emin olun."
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
#, kde-format
msgid ""
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
"master/docs/building.md#client-headset\">documentation</a> to build your own "
"client."
msgstr ""
"Kendi istemcinizi oluşturmak için <a href=\"https://github.com/WiVRn/WiVRn/"
"blob/master/docs/building.md#client-headset\">belgelerdeki</a> talimatları "
"izleyin."
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:59
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "Geri"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
msgstr "Gözlüğünüzü seçin"
#: dashboard/qml/DeviceCard.qml:46
#, kde-format
msgid "WiVRn is already installed on this device"
msgstr "WiVRn bu aygıta zaten yüklü"
#: dashboard/qml/DeviceCard.qml:54
#, kde-format
msgid "Reinstall WiVRn"
msgstr "WiVRn'i yeniden yükle"
#: dashboard/qml/DeviceCard.qml:54
#, kde-format
msgid "Install WiVRn"
msgstr "WiVRn'i yükle"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "Gözlükler"
#: dashboard/qml/HeadsetsPage.qml:29
#, kde-format
msgid "Last connection: %1 second ago"
msgid_plural "Last connection: %1 seconds ago"
msgstr[0] "Son bağlantı: %1 saniye önce"
msgstr[1] "Son bağlantı: %1 saniye önce"
#: dashboard/qml/HeadsetsPage.qml:31
#, kde-format
msgid "Last connection: %1 minute ago"
msgid_plural "Last connection: %1 minutes ago"
msgstr[0] "Son bağlantı: %1 dakika önce"
msgstr[1] "Son bağlantı: %1 dakika önce"
#: dashboard/qml/HeadsetsPage.qml:33
#, kde-format
msgid "Last connection: %1 hour ago"
msgid_plural "Last connection: %1 hours ago"
msgstr[0] "Son bağlantı: %1 saat önce"
msgstr[1] "Son bağlantı: %1 saat önce"
#: dashboard/qml/HeadsetsPage.qml:35
#, kde-format
msgid "Last connection: %1 day ago"
msgid_plural "Last connection: %1 days ago"
msgstr[0] "Son bağlantı: %1 gün önce"
msgstr[1] "Son bağlantı: %1 gün önce"
#: dashboard/qml/HeadsetsPage.qml:40
#, kde-format
msgid "Rename headset"
msgstr "Gözlüğü yeniden adlandır"
#: dashboard/qml/HeadsetsPage.qml:48 dashboard/qml/HeadsetsPage.qml:116
#, kde-format
msgid "Rename"
msgstr "Yeniden Adlandır"
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "İptal"
#: dashboard/qml/HeadsetsPage.qml:64
#, kde-format
msgid "Headset name…"
msgstr "Gözlük adı…"
#: dashboard/qml/HeadsetsPage.qml:128
#, kde-format
msgid "Remove"
msgstr "Kaldır"
#: dashboard/qml/HeadsetsPage.qml:143
#, kde-format
msgid "Pairing enabled, PIN: %1"
msgstr "Eşleştirme etkin, PIN: %1"
#: dashboard/qml/HeadsetsPage.qml:148 dashboard/qml/TroubleshootPage.qml:42
#, kde-format
msgid "Disable pairing"
msgstr "Eşleştirmeyi devre dışı bırak"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Start the WiVRn app on your headset and use the PIN: %1"
msgstr "Gözlüğünüzde WiVRn uygulamasını başlatın ve PIN: %1'i kullanın"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Enable pairing to allow your headset to connect to this computer"
msgstr ""
"Gözlüğünüzün bu bilgisayara bağlanmasına izin vermek için eşleştirmeyi "
"etkinleştirin"
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:37
#, kde-format
msgid "Enable pairing"
msgstr "Eşleştirmeyi etkinleştir"
#: dashboard/qml/HeadsetsPage.qml:191
#, kde-format
msgid "Pair a new headset"
msgstr "Yeni bir gözlük eşleştir"
#: dashboard/qml/HeadsetStatsPage.qml:12
#, kde-format
msgid "Headset statistics"
msgstr "Gözlük istatistikleri"
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "Sunucunun CAP_SYS_NICE yetenekleri yok."
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Onar"
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "Sunucu yeniden başlatıldığında CAP_SYS_NICE yeteneği kullanılacak."
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Şimdi yeniden başlat"
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"NVIDIA GPU'lar en az 565.77 sürücü sürümünü gerektirir, geçerli sürüm %1"
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Daha fazla bilgi"
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
msgstr ""
"AMD GPU'lar için Mesa (radv) sürücüsünü kullanın\n"
"vaapi ile donanım kodlaması AMDVLK ve AMDGPU-PRO ile çalışmaz"
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"OpenVR uyumluluğu algılanmadı, Steam oyunları VR'ı yükleyemeyecek.\n"
"xrizer veya OpenComposite kurun."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Sunucu başlatılamadı"
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Sunucu günlüklerini aç"
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Çalışıyor"
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Eşleştirme"
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374
#, kde-format
msgid "Connect by USB"
msgstr "USB ile bağlan"
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr "Gözlük bağlı değil veya gözlüğünüz geliştirici modunda değil."
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Bağlantıyı kes"
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Uygulama"
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Steam bilgisi"
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "Sihirbaz"
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "Uygulamayı yükle"
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ayarlar"
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Sorun giderme"
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
msgid "None"
msgstr "Yok"
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Özel"
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
msgstr "Gözat"
#: dashboard/qml/SettingsPage.qml:40
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "El ile foveasyon"
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgid "Foveation strength:"
msgstr "Foveasyon gücü:"
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
msgid "%1 %"
msgstr "%%%1"
#: dashboard/qml/SettingsPage.qml:68
#, kde-format
msgid ""
"A stronger foveation makes the image sharper in the center than in the "
"periphery and makes the decoding faster. This is better for fast paced "
"games.\n"
"\n"
"A weaker foveation gives a uniform sharpness in the whole image.\n"
"\n"
"The recommended values are between 20% and 50% for headsets without eye "
"tracking and between 50% and 70% for headsets with eye tracking."
msgstr ""
"Daha güçlü bir foveasyon, görüntüyü merkezde çevreye göre daha keskin hale "
"getirir ve kod çözmeyi hızlandırır. Bu, hızlı tempolu oyunlar için daha "
"iyidir.\n"
"\n"
"Daha zayıf bir foveasyon, tüm görüntüde tek tip bir keskinlik sağlar.\n"
"\n"
"Önerilen değerler, göz izleme olmayan başlıklar için 20% ile 50% arasında, "
"göz izleme olan başlıklar için ise 50% ile 70% arasındadır."
#: dashboard/qml/SettingsPage.qml:74
#, kde-format
msgctxt "weaker foveation"
msgid "Weaker"
msgstr "Daha zayıf"
#: dashboard/qml/SettingsPage.qml:85
#, kde-format
msgctxt "stronger foveation"
msgid "Stronger"
msgstr "Daha güçlü"
#: dashboard/qml/SettingsPage.qml:95
#, kde-format
msgid "Bitrate:"
msgstr "Bit hızı:"
#: dashboard/qml/SettingsPage.qml:99 dashboard/qml/SettingsPage.qml:101
#, kde-format
msgctxt "bitrate"
msgid "%1 Mbit/s"
msgstr "Mbit/s %1"
#: dashboard/qml/SettingsPage.qml:111
#, kde-format
msgid "Encoder layout:"
msgstr "Kodlayıcı düzeni:"
#: dashboard/qml/SettingsPage.qml:114
#, kde-format
msgctxt "encoder preset"
msgid "Automatic"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:118
#, kde-format
msgctxt "encoder preset"
msgid "Manual"
msgstr "El ile"
#: dashboard/qml/SettingsPage.qml:122
#, kde-format
msgctxt "encoder preset"
msgid "Default preset"
msgstr "Varsayılan ön ayar"
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "Düşük gecikmeli ön ayar"
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "Güvenli ön ayar"
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
"Drag an edge to resize or remove encoders."
msgstr ""
"Yeni bir kodlayıcı eklemek için, mevcut bir kodlayıcıyı bir kenarın yakınına "
"tıklayarak bölün.\n"
"Kodlayıcıları yeniden boyutlandırmak veya kaldırmak için bir kenarı "
"sürükleyin."
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "Kodlayıcı:"
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPU'ları)"
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD ve Intel GPU'ları)"
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (yazılım kodlaması)"
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Otomatik\", mevcutsa donanım hızlandırmayı kullanacaktır"
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "Codec:"
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "Gelişmiş seçenekler"
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "Hata ayıklama penceresini etkinleştir"
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "SteamVR izlenen aygıt desteğini etkinleştir"
#: dashboard/qml/SettingsPage.qml:323
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
"Requires SteamVR to be installed.\n"
"Devices must be be powered on before connecting to WiVRn.\n"
"An external tool such as motoc is needed for calibration."
msgstr ""
"Deniz lighthouse tabanlı denetleyicilerin ve izleyicilerin kullanılmasına "
"izin verir.\n"
"SteamVR'nin kurulu olmasını gerektirir.\n"
"Aygıtlar WiVRn'e bağlanmadan önce açık olmalıdır.\n"
"Kalibrasyon için motoc gibi harici bir araç gereklidir."
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "Özel adb konumu"
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "Adb konumu:"
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Gözat"
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "Varsayılan"
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Özel"
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "Devre dışı"
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "OpenVR uyumluluk kitaplığı:"
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Yol: bin/linux64/vrclient.so hariç, kitaplık yolu"
#: dashboard/qml/SteamLaunchOptions.qml:8
#, kde-format
msgid ""
"For Steam games, right click on the game in Steam, go in Properties > "
"General and paste this in \"Launch options\":"
msgstr ""
"Steam oyunları için, Steam'de oyuna sağ tıklayın, Özellikler > Genel'e gidin "
"ve bunu \"Başlatma seçenekleri\" bölümüne yapıştırın:"
#: dashboard/qml/SteamLaunchOptions.qml:20
#, kde-format
msgid "Paste this in the Steam launch options for the app you want to start"
msgstr ""
"Başlatmak istediğiniz uygulama için bunu Steam başlatma seçeneklerine "
"yapıştırın"
#: dashboard/qml/SteamLaunchOptions.qml:26
#, kde-format
msgctxt "copy text to the clipboard"
msgid "Copy"
msgstr "Kopyala"
#: dashboard/qml/SteamLaunchOptions.qml:30
#, kde-format
msgid "Copied Steam launch command"
msgstr "Steam başlatma komutu kopyalandı"
#: dashboard/qml/TroubleshootPage.qml:20
#, kde-format
msgid "I cannot find the WiVRn app on my headset"
msgstr "Gözlüğümde WiVRn uygulamasını bulamıyorum"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
"\"unknown sources\" section."
msgstr ""
"Meta gözlüğüne USB üzerinden WiVRn'i kurduysanız, uygulama \"bilinmeyen "
"kaynaklar\" bölümündedir."
#: dashboard/qml/TroubleshootPage.qml:24
#, kde-format
msgid "I cannot see my computer in the WiVRn app"
msgstr "WiVRn uygulamasında bilgisayarımı göremiyorum"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
msgstr ""
"Sunucu görünür değilse veya bağlantı başarısız oluyorsa, güvenlik "
"duvarınızda 5353 (UDP) ve 9757 (TCP ve UDP) bağlantı noktalarının açık "
"olduğundan emin olun."
#: dashboard/qml/TroubleshootPage.qml:28
#, kde-format
msgid "I have an \"Incompatible WiVRn server\" error on my headset"
msgstr "Gözlüğümde \"Uyumsuz WiVRn sunucusu\" hatası alıyorum"
#: dashboard/qml/TroubleshootPage.qml:29
#, kde-format
msgid ""
"<p>The version of the headset app and the server on your computer must match."
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
"server version is <b>%1</b></li></ul>"
msgstr ""
"<p>Gözlük uygulamasının ve bilgisayarınızdaki sunucunun sürümü eşleşmelidir."
"</p><ul><li>Gözlük uygulaması sürümü \"Hakkında\" sayfasındadır</"
"li><li>Sunucu sürümü <b>%1</b>'dir</li></ul>"
#: dashboard/qml/TroubleshootPage.qml:32
#, kde-format
msgid "I have a \"Pairing is disabled\" error"
msgstr "Eşleştirme devre dışı\" hatası alıyorum"
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid ""
"If you have reinstalled the server or the client or if you want to connect "
"another headset, you must enable pairing before connecting."
msgstr ""
"Sunucuyu veya istemciyi yeniden yüklediyseniz veya başka bir gözlük bağlamak "
"istiyorsanız, bağlanmadan önce eşleştirmeyi etkinleştirmeniz gerekir."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid "Pairing is currently enabled with PIN %1."
msgstr "Eşleştirme şu anda PIN %1 ile etkin."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid "Pairing is currently disabled."
msgstr "Eşleştirme şu anda devre dışı."
#: dashboard/qml/TroubleshootPage.qml:49
#, kde-format
msgid "I have no sound on my headset"
msgstr "Gözlüğümde ses yok"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
"device for applications to use it."
msgstr ""
"Gözlük bağlıyken, uygulamaların kullanması için varsayılan ses çıkış aygıtı "
"olarak \"WiVRn\" seçin."
#: dashboard/qml/TroubleshootPage.qml:67
#, kde-format
msgid "Report an issue"
msgstr "Bir sorun bildir"
#: dashboard/qml/TroubleshootPage.qml:72
#, kde-format
msgid "Ask on Discord"
msgstr "Discord'da sor"
#: dashboard/qml/WizardPage.qml:14
#, kde-format
msgid "Getting started"
msgstr "Başlangıç"
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "Geri"
#: dashboard/qml/WizardPage.qml:64
#, kde-format
msgid "Welcome to WiVRn"
msgstr "WiVRn'e hoş geldiniz"
#: dashboard/qml/WizardPage.qml:69
#, kde-format
msgid ""
"This wizard will help you set up WiVRn on your headset and connect it to "
"your computer."
msgstr ""
"Bu sihirbaz, WiVRn'i gözlüğünüze kurmanıza ve bilgisayarınıza bağlamanıza "
"yardımcı olacaktır."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "İleri"
#: dashboard/qml/WizardPage.qml:112
#, kde-format
msgid "How to enable developer mode"
msgstr "Geliştirici modu nasıl etkinleştirilir"
#: dashboard/qml/WizardPage.qml:119
#, kde-format
msgid "Follow the manufacturer's instructions below:"
msgstr "Aşağıdaki üreticinin talimatlarını izleyin:"
#: dashboard/qml/WizardPage.qml:142
#, kde-format
msgid ""
"In order to use WiVRn, you will have to install the client app on your "
"headset.\n"
"You can either install it from the Meta store or directly over USB."
msgstr ""
"WiVRn'i kullanmak için, istemci uygulamasını gözlüğünüze kurmanız gerekir.\n"
"Uygulamayı Meta mağazasından veya doğrudan USB üzerinden kurabilirsiniz."
#: dashboard/qml/WizardPage.qml:148
#, kde-format
msgid "Install from the Meta store"
msgstr "Meta mağazasından yükle"
#: dashboard/qml/WizardPage.qml:152
#, kde-format
msgid ""
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
msgstr ""
"Quest 2, 3, 3S ve Pro için uygulamayı <a href=\"https://www.meta.com/"
"experiences/7959676140827574/\">Meta mağazasından</a> edinebilirsiniz."
#: dashboard/qml/WizardPage.qml:164
#, kde-format
msgid ""
"A newer release is available: %1 → %2, the client app on the Meta store may "
"not be compatible."
msgstr ""
"Daha yeni bir sürüm mevcut: %1 → %2, Meta mağazasındaki istemci uygulaması "
"uyumlu olmayabilir."
#: dashboard/qml/WizardPage.qml:171
#, kde-format
msgid ""
"This is a nightly build, the client app on the Meta store may not be "
"compatible."
msgstr ""
"Bu, gece derlemesidir, Meta mağazasındaki istemci uygulaması uyumlu "
"olmayabilir."
#: dashboard/qml/WizardPage.qml:181
#, kde-format
msgctxt "displayed between 'meta store' and 'install over USB' in the wizard"
msgid "Or"
msgstr "Veya"
#: dashboard/qml/WizardPage.qml:187
#, kde-format
msgid "Install over USB"
msgstr "USB üzerinden yükle"
#: dashboard/qml/WizardPage.qml:211
#, kde-format
msgid "ADB is not installed"
msgstr "ADB yüklü değil"
#: dashboard/qml/WizardPage.qml:219
#, kde-format
msgid ""
"<p>No headset detected. Make sure that:\n"
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
"href=\"#\">developer mode</a></li></ul></p>"
msgstr ""
"<p>Gözlük algılanmadı. Şunlardan emin olun:\n"
"<ul><li>ADB udev kuralları yüklü</li><li>Gözlük <a href=\"#\">geliştirici "
"modunda</a></li></ul></p>"
#: dashboard/qml/WizardPage.qml:280
#, kde-format
msgid "Select the application you want to start"
msgstr "Başlatmak istediğiniz uygulamayı seçin"
#: dashboard/qml/WizardPage.qml:286
#, kde-format
msgid ""
"The application you choose will be started automatically when you connect "
"your headset."
msgstr ""
"Seçtiğiniz uygulama, gözlüğünüzü bağladığınızda otomatik olarak "
"başlayacaktır."
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "Önemli bilgi"
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
"running."
msgstr ""
"WiVRn, SteamVR'nin yerini tamamen alır, WiVRn çalışırken SteamVR'yi "
"başlatmamalısınız."
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Gözlüğünüzde WiVRn uygulamasını başlatın"
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
"and enter PIN \"%2\"."
msgstr ""
"WiFi üzerinden bağlanmak için, gözlüğünüzde WiVRn uygulamasını başlatın, "
"\"%1\"e bağlanın ve \"%2\" PIN'ini girin."
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "USB üzerinden bağlanmak için \"USB ile bağlan\"a tıklayın."
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "Sorun giderme"
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "Atla"
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "Bağlantı kuruldu"
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "Gözlüğünüz şimdi bağlı."
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
"before connecting."
msgstr ""
"Başka bir gözlük bağlamak için, bağlanmadan önce kontrol panelinde "
"eşleştirmenin etkinleştirildiğinden emin olun."
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "Bitir"
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "Bitti"
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+629
View File
@@ -0,0 +1,629 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-09-12 17:35+0300\n"
"Last-Translator: Hüseyin Fahri Uzun <mail@fahriuzun.com>\n"
"Language-Team: \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.6\n"
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Desteklenen swapchain formatı yok"
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Uyumsuz WiVRn sunucusu: TXT dosyasında protokol alanı yok"
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Uyumsuz WiVRn sunucu protokolü (uçbirim: {}, sunucu: {})"
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Ana bilgisayar adı çözümlenemiyor: {}"
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Bağlanılamıyor {} ({}): {}"
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Bağlantı için bekleniyor"
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Kalite"
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Devre dışı"
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Bağlantıyı Kes"
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Kapat"
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Bağlantı"
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "{} Bağlan"
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Gösterilen PIN'i gösterge paneline giriniz"
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "WiVRn sunucusuna bağlanıldı"
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "{} bağlanıldı"
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Sunucuda bir uygulama başlatarak akışa başlayın."
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Bilgisayarınızda bir uygulama başlatın veya akış başlatmak için bir uygulama "
"seçin."
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"{} üzerinde bir uygulama başlatın veya akış başlatmak için bir tane seçin."
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Ad"
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Adres"
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Sadece TCP"
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "İptal"
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Kaydet"
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
msgstr ""
"Yerel ağınızda\n"
"bir WiVRn sunucusu başlatın"
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Oto Bağlan"
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Bağlan"
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Uyumsuz sunucu versiyonu"
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Sunucu mevcut değil"
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Türkçe"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr ""
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr ""
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Tazeleme oranı"
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Otomatik"
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
msgstr ""
"Ölçülen uygulama performansına göre yenileme hızını seçin.\n"
"Değişiklik olduğunda titremeye neden olabilir."
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Minimum tazeleme oranı"
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Çözünürlük ölçeği"
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "göz başına %d%% - {}x{}"
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"{}x{} 'den daha büyük çözünürlükler gözlük tarafından desteklenmeyebilir"
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Mikrofonu aktif et"
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "İşlenmemiş Mikrofon Sesi"
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Gürültü engelleme gibi ses filtrelerini zorla devre dışı bırak"
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "El izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir"
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Göz takibi aktif et"
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Yüz takibi aktif et"
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Vücut takibi aktif et"
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
"otherwise body data will be guessed from controller and headset positions"
msgstr ""
"Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin "
"etkinleştirilmesi gerekir,\n"
"aksi takdirde vücut verileri kontrol cihazı ve başlık konumlarından tahmin "
"edilecektir"
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Alt vücut izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings"
msgstr ""
"Generative Legs kullanarak alt vücut eklem pozisyonlarını tahmin edin\n"
"Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin "
"etkinleştirilmesi gerekir"
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Kalça izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
msgstr ""
"Sadece alt vücut izleme etkinleştirildiğinde geçerlidir\n"
"Başka bir kalça izleme kaynağı kullanıldığında tercih edilebilir"
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Lobide video geçişini etkinleştir"
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Akış penceresinde aktif et"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Oyun akışı yapılırken ayar penceresini aktif eder.\n"
"Aktif iken, pencere her iki başparmak tuşlarına basılınca açılır."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "OpenXR işlem sonrası"
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Süper örnekleme"
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
msgstr ""
"Yüksek kontrastlı kenarlarda titremeyi azaltın.\n"
"Giriş çözünürlüğü kulaklık ekranına kıyasla yüksek olduğunda kullanışlıdır"
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Keskinleştirme"
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
msgstr ""
"Yüksek kontrastlı kenarların netliğini artırın ve bulanıklığı giderin.\n"
"Giriş çözünürlüğü kulaklık ekranına kıyasla düşük olduğunda kullanışlıdır"
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "CPU zamanı"
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "CPU zamanı [ms]"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "GPU zamanı"
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "GPU zamanı [ms]"
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Mikrofonu aktif et?"
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Göz takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Yüz takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Vücut takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "WiVRn'e hoş geldiniz"
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Evet"
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Hayır"
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Lisanslar"
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Mikrofon aktif"
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Mikrofon devre dışı"
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "El takibi aktif"
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "El takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Göz takibi aktif"
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Göz takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Yüz takibi aktif"
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Yüz takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Vücut takibi aktif"
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Vücut takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Sunucu ekle"
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Sunucu listesi"
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Ayarlar"
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "İşlem sonrası"
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Hata ayıklama"
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Hakkında"
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Çıkış"
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Ana pencereyi hareket ettirmek için tutma düğmesine basın\n"
"veya avucunuzu yukarı kaldırın"
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Ana pencereyi hareket ettirmek için tutma düğmesine basın"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Yeniden yansıt"
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "Blit"
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Ağ"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "İndir"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Gönder"
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "Zaman [ms]"
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "Encode"
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "Gönder"
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "Al"
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "Decode"
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "Blitted"
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "Görüntülenen"
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "Tahmin edilen"
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Fotonlara tahmini hareket gecikmesi: {}ms"
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Pencereyi hareket ettirmek için tutma düğmesine basın"
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr ""
"WiVRn penceresini görüntülemek için her iki başparmak çubuklarınıda basın"
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Hareketin fotona ulaşma gecikmesi"
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Foveasyon merkezi geçersiz kılma"
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Aktif et"
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Boy {:.1f} deg"
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Uzaklık {:.2f} m"
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Varsayılan"
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Değiştir"
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Başparmak çubuklarını kullanarak odak merkezini hareket ettirin"
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Kaydetmek için A tuşuna, iptal etmek için B tuşuna basın"
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "İstatistikler"
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "İstatistik katmanı"
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Kompakt görünüm"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Zaman aşımı"
#: client/wivrn_client.cpp:149
msgid "Incorrect PIN"
msgstr "Geçersiz PIN"
#: client/wivrn_client.cpp:153
msgid "Unable to check PIN"
msgstr "PIN kontrol edilemiyor"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Bu sunucuda eşleşme devre dışı"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Snapdragon Oyun Süper Çözünürlüğü'nü etkinleştirin"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr ""
#~ "Bu kulaklıkta, bu ayar yukarıdaki yerel Keskinleştirme ayarı ile tamamen "
#~ "değiştirilmiştir.\n"
#~ "Ne yaptığınızı biliyorsanız etkinleştirin."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "İstemci tarafında yükseltme ve keskinleştirme, kulaklıkta performans "
#~ "düşüşüne neden olur."
#~ msgid "Upscaling factor"
#~ msgstr "Yükseltme faktörü"
#~ msgid "Use edge direction"
#~ msgstr "Kenar yönünü kullan"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Ek bir performans düşüşü ekler"
#~ msgid "Edge threshold"
#~ msgstr "Kenar eşiği"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Önerilen: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Kenar keskinliği"
@@ -1,7 +1,7 @@
From 18e184e504d9f55dbba3f02c87f96410b2ce04ab Mon Sep 17 00:00:00 2001
From 84758f77a11a31e144d2120a465a954287eb0f67 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 22 Oct 2024 15:23:19 +0200
Subject: [PATCH 01/10] c/multi: early wake of compositor
Subject: [PATCH 1/7] c/multi: early wake of compositor
---
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
@@ -10,10 +10,10 @@ Subject: [PATCH 01/10] c/multi: early wake of compositor
3 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
index 553565db4..789a2d042 100644
index 94cea110e..88347a092 100644
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
+++ b/src/xrt/compositor/multi/comp_multi_compositor.c
@@ -232,7 +232,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
@@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
os_mutex_lock(&mc->slot_lock);
slot_move_and_clear_locked(mc, &mc->scheduled, &mc->progress);
os_mutex_unlock(&mc->slot_lock);
@@ -128,5 +128,5 @@ index be763d1c1..22c801f65 100644
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
// Make sure there is at least some sort of valid frame data here.
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From b31b5aa4e7e890ae079ae2953a1ce3fc2e47b954 Mon Sep 17 00:00:00 2001
From b73d7a32daa626ae401543e1c3ed8fd8d8290f8d Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 2 Apr 2024 17:14:42 +0200
Subject: [PATCH 02/10] ipc/server: Always listen to stdin
Subject: [PATCH 2/7] ipc/server: Always listen to stdin
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
@@ -21,5 +21,5 @@ index d364fbed3..ad6b473b7 100644
// default.
// This polls stdin.
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From 46cacda03c5552ffb70601dd89e0abe38e97c1d3 Mon Sep 17 00:00:00 2001
From a85beae795aba8f82abab849e9e5c2ce74511357 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 03/10] Use extern socket fd
Subject: [PATCH 3/7] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
@@ -34,5 +34,5 @@ index ad6b473b7..ea6fad65b 100644
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.50.1
2.51.0
@@ -1,25 +0,0 @@
From 90c3842f38985e0f8f06bb51d0e58cccf437526f Mon Sep 17 00:00:00 2001
From: galister <3123227-galister@users.noreply.gitlab.com>
Date: Mon, 19 Aug 2024 18:51:45 +0900
Subject: [PATCH 04/10] c/render: Add storage usage to distortion mesh
---
src/xrt/compositor/render/render_distortion.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xrt/compositor/render/render_distortion.c b/src/xrt/compositor/render/render_distortion.c
index 8ac24db8e..5a7e400c3 100644
--- a/src/xrt/compositor/render/render_distortion.c
+++ b/src/xrt/compositor/render/render_distortion.c
@@ -42,7 +42,7 @@ create_distortion_image_and_view(struct vk_bundle *vk,
vk, // vk_bundle
extent, // extent
format, // format
- VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, // usage
+ VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, // usage
&device_memory, // out_device_memory
&image); // out_image
VK_CHK_AND_RET(ret, "vk_create_image_simple");
--
2.50.1
@@ -1,7 +1,7 @@
From 9e2288bc85a5be9bb0228a42dc5a9419c4357eb8 Mon Sep 17 00:00:00 2001
From f472a02f86bd98e0cb88847fd8c9104bbd5c74f5 Mon Sep 17 00:00:00 2001
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
Date: Sat, 23 Nov 2024 02:42:12 +0900
Subject: [PATCH 05/10] change environment blend mode selection logic
Subject: [PATCH 4/7] change environment blend mode selection logic
---
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
@@ -53,5 +53,5 @@ index 22c801f65..1155bc67e 100644
}
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From 53d8509dff69caccecdc38b443864b1a755486dd Mon Sep 17 00:00:00 2001
From 7c01c47b2a1c4da040e0d25f4b9cb760ae88aa25 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 09/10] st/oxr: forward 0 refresh rate
Subject: [PATCH 5/7] st/oxr: forward 0 refresh rate
---
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
@@ -29,5 +29,5 @@ index 9c5889f12..c4cdaf8c3 100644
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
found = true;
--
2.50.1
2.51.0
File diff suppressed because it is too large Load Diff
@@ -1,94 +0,0 @@
From 5a791919ce1e01f2cb0034e4055bf22767a41121 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sun, 3 Nov 2024 13:40:00 +0100
Subject: [PATCH 07/10] store alpha channel in layer 1
---
src/xrt/compositor/shaders/clear.comp | 4 ++--
src/xrt/compositor/shaders/distortion.comp | 18 ++++++++++++------
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/xrt/compositor/shaders/clear.comp b/src/xrt/compositor/shaders/clear.comp
index 036da401a..db8e5178e 100644
--- a/src/xrt/compositor/shaders/clear.comp
+++ b/src/xrt/compositor/shaders/clear.comp
@@ -10,7 +10,7 @@
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
-layout(set = 0, binding = 2) uniform writeonly restrict image2D target;
+layout(set = 0, binding = 2) uniform writeonly restrict image2DArray target;
layout(set = 0, binding = 3) uniform restrict Config
{
ivec4 views[2];
@@ -35,5 +35,5 @@ void main()
vec4 colour = vec4(from_linear_to_srgb(vec3(0.1)), 1.0);
- imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour);
+ imageStore(target, ivec3(offset.x + ix, offset.y + iy, 0), colour);
}
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
index e1dd1cb58..9ce46fe6f 100644
--- a/src/xrt/compositor/shaders/distortion.comp
+++ b/src/xrt/compositor/shaders/distortion.comp
@@ -18,7 +18,7 @@ layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
layout(set = 0, binding = 0) uniform sampler2D source[2];
layout(set = 0, binding = 1) uniform sampler2D distortion[6];
-layout(set = 0, binding = 2) uniform writeonly restrict image2D luma;
+layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
layout(set = 0, binding = 3, std140) uniform restrict Config
{
ivec4 views[2];
@@ -26,7 +26,7 @@ layout(set = 0, binding = 3, std140) uniform restrict Config
vec4 post_transform[2];
mat4 transform[2];
} ubo;
-layout(set = 0, binding = 4) uniform writeonly restrict image2D chroma;
+layout(set = 0, binding = 4) uniform writeonly restrict image2DArray chroma;
const mat3 color_space = mat3(
// clang-format off
@@ -122,6 +122,7 @@ void main()
ivec2 offset = ivec2(ubo.views[iz].xy);
ivec2 extent = ivec2(ubo.views[iz].zw);
vec2 cbcrs[4];
+ vec4 alpha;
for (int k = 0; k < 2; k += 1) {
uint iy = gl_GlobalInvocationID.y * 2 + k;
for (int j = 0; j < 2; j += 1) {
@@ -136,15 +137,16 @@ void main()
uv = transform_uv(uv, iz);
// Sample the source
- vec3 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5)).rgb;
+ vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5));
- colour = rgb_to_ycbcr(from_linear_to_srgb(colour));
+ colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
int i = k * 2 + j;
cbcrs[i] = colour.yz;
+ alpha[i] = colour.a;
if (ix < extent.x && iy < extent.y) {
- imageStore(luma, ivec2(offset.x + ix, offset.y + iy), vec4(colour.x));
+ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
}
}
}
@@ -152,5 +154,9 @@ void main()
return;
}
vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
- imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0));
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0));
+
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0));
+ alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5));
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
}
--
2.50.1
@@ -1,82 +0,0 @@
From 877709160be24c4bd504b8d8cd04197cc2bf2b69 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Thu, 27 Feb 2025 22:45:36 +0100
Subject: [PATCH 08/10] c/main: allow custom pacing app factory
---
src/xrt/compositor/main/comp_compositor.c | 10 ++++++----
src/xrt/compositor/main/comp_main_interface.h | 4 ++++
src/xrt/targets/common/target_instance.c | 2 +-
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
index 819c2c8b3..a42d25869 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c
@@ -987,6 +987,7 @@ compositor_init_renderer(struct comp_compositor *c)
xrt_result_t
comp_main_create_system_compositor(struct xrt_device *xdev,
const struct comp_target_factory *ctf,
+ struct u_pacing_app_factory *upaf,
struct xrt_system_compositor **out_xsysc)
{
COMP_TRACE_MARKER();
@@ -1185,10 +1186,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev,
}
// Standard app pacer.
- struct u_pacing_app_factory *upaf = NULL;
- xrt_result_t xret = u_pa_factory_create(&upaf);
- assert(xret == XRT_SUCCESS && upaf != NULL);
- (void)xret;
+ if (upaf == NULL) {
+ xrt_result_t xret = u_pa_factory_create(&upaf);
+ assert(xret == XRT_SUCCESS && upaf != NULL);
+ (void)xret;
+ }
return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc);
}
diff --git a/src/xrt/compositor/main/comp_main_interface.h b/src/xrt/compositor/main/comp_main_interface.h
index 0f0678358..f60568b43 100644
--- a/src/xrt/compositor/main/comp_main_interface.h
+++ b/src/xrt/compositor/main/comp_main_interface.h
@@ -15,6 +15,7 @@
#include "xrt/xrt_compositor.h"
struct comp_target_factory;
+struct u_pacing_app_factory;
#ifdef __cplusplus
extern "C" {
@@ -31,11 +32,14 @@ extern "C" {
* @param xdev The head device
* @param ctf A compositor target factory to force the output device, must remain valid for the lifetime of the
* compositor. If NULL, factory is automatically selected
+ * @param upaf A pacing app factory to customize the application pacer, compositor takes ownership.
+ * If NULL, a default factory is used
* @param out_xsysc The output compositor
*/
xrt_result_t
comp_main_create_system_compositor(struct xrt_device *xdev,
const struct comp_target_factory *ctf,
+ struct u_pacing_app_factory *upaf,
struct xrt_system_compositor **out_xsysc);
diff --git a/src/xrt/targets/common/target_instance.c b/src/xrt/targets/common/target_instance.c
index 617561c37..e10ba8358 100644
--- a/src/xrt/targets/common/target_instance.c
+++ b/src/xrt/targets/common/target_instance.c
@@ -109,7 +109,7 @@ t_instance_create_system(struct xrt_instance *xinst,
#ifdef XRT_MODULE_COMPOSITOR_MAIN
if (xret == XRT_SUCCESS && xsysc == NULL) {
- xret = comp_main_create_system_compositor(head, NULL, &xsysc);
+ xret = comp_main_create_system_compositor(head, NULL, NULL, &xsysc);
}
#else
if (!use_null) {
--
2.50.1
@@ -1,700 +0,0 @@
From 1bc74f74b613cce9d32c0f4bf16de70ddb7fb482 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Mon, 2 Jun 2025 14:51:11 +0200
Subject: [PATCH 10/10] Replace distortion with pixel-aligned foveation
---
src/xrt/compositor/CMakeLists.txt | 2 +-
src/xrt/compositor/render/render_compute.c | 181 ++-----------------
src/xrt/compositor/render/render_interface.h | 33 ++--
src/xrt/compositor/render/render_resources.c | 71 +-------
src/xrt/compositor/shaders/distortion.comp | 134 ++++----------
src/xrt/compositor/util/comp_render_cs.c | 33 +---
6 files changed, 76 insertions(+), 378 deletions(-)
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
index 1ba5ec438..f1defe77a 100644
--- a/src/xrt/compositor/CMakeLists.txt
+++ b/src/xrt/compositor/CMakeLists.txt
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
${SHADER_HEADERS}
render/render_buffer.c
render/render_compute.c
- render/render_distortion.c
+ # render/render_distortion.c implemented in wivrn
render/render_gfx.c
render/render_interface.h
render/render_resources.c
diff --git a/src/xrt/compositor/render/render_compute.c b/src/xrt/compositor/render/render_compute.c
index fd04801d4..5cd5a1726 100644
--- a/src/xrt/compositor/render/render_compute.c
+++ b/src/xrt/compositor/render/render_compute.c
@@ -167,8 +167,8 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
VkSampler src_samplers[XRT_MAX_VIEWS],
VkImageView src_image_views[XRT_MAX_VIEWS],
uint32_t distortion_binding,
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS],
- VkImageView distortion_image_views[3 * XRT_MAX_VIEWS],
+ VkDeviceSize foveation_size,
+ VkBuffer foveation_buffer,
uint32_t target_binding_y,
uint32_t target_binding_cbcr,
VkImageView target_image_view_y,
@@ -186,12 +186,11 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
src_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
}
- VkDescriptorImageInfo distortion_image_info[3 * XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < 3 * view_count; ++i) {
- distortion_image_info[i].sampler = distortion_samplers[i];
- distortion_image_info[i].imageView = distortion_image_views[i];
- distortion_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
- }
+ VkDescriptorBufferInfo foveation_buffer_info = {
+ .buffer = foveation_buffer,
+ .offset = 0,
+ .range = foveation_size,
+ };
VkDescriptorImageInfo target_image_y_info = {
.imageView = target_image_view_y,
@@ -222,9 +221,9 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
.dstSet = descriptor_set,
.dstBinding = distortion_binding,
- .descriptorCount = 3 * view_count,
- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
- .pImageInfo = distortion_image_info,
+ .descriptorCount = 1,
+ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
+ .pBufferInfo = &foveation_buffer_info,
},
{
.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
@@ -483,146 +482,6 @@ render_compute_layers(struct render_compute *render,
1); // groupCountZ
}
-void
-render_compute_projection_timewarp(struct render_compute *render,
- VkSampler src_samplers[XRT_MAX_VIEWS],
- VkImageView src_image_views[XRT_MAX_VIEWS],
- const struct xrt_normalized_rect src_norm_rects[XRT_MAX_VIEWS],
- const struct xrt_pose src_poses[XRT_MAX_VIEWS],
- const struct xrt_fov src_fovs[XRT_MAX_VIEWS],
- const struct xrt_pose new_poses[XRT_MAX_VIEWS],
- VkImage target_image,
- VkImageView target_image_view_y,
- VkImageView target_image_view_cbcr,
- const struct render_viewport_data views[XRT_MAX_VIEWS])
-{
- assert(render->r != NULL);
-
- struct vk_bundle *vk = vk_from_render(render);
- struct render_resources *r = render->r;
-
-
- /*
- * UBO
- */
-
- struct xrt_matrix_4x4 time_warp_matrix[XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- render_calc_time_warp_matrix( //
- &src_poses[i], //
- &src_fovs[i], //
- &new_poses[i], //
- &time_warp_matrix[i]); //
- }
-
- struct render_compute_distortion_ubo_data *data =
- (struct render_compute_distortion_ubo_data *)r->compute.distortion.ubo.mapped;
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- data->views[i] = views[i];
- data->pre_transforms[i] = r->distortion.uv_to_tanangle[i];
- data->transforms[i] = time_warp_matrix[i];
- data->post_transforms[i] = src_norm_rects[i];
- }
-
- /*
- * Source, target and distortion images.
- */
-
- VkImageSubresourceRange subresource_range = {
- .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
- .baseMipLevel = 0,
- .levelCount = VK_REMAINING_MIP_LEVELS,
- .baseArrayLayer = 0,
- .layerCount = VK_REMAINING_ARRAY_LAYERS,
- };
-
- vk_cmd_image_barrier_gpu_locked( //
- vk, //
- r->cmd, //
- target_image, //
- 0, //
- VK_ACCESS_SHADER_WRITE_BIT, //
- VK_IMAGE_LAYOUT_UNDEFINED, //
- VK_IMAGE_LAYOUT_GENERAL, //
- subresource_range); //
-
- VkSampler sampler = r->samplers.clamp_to_edge;
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- distortion_samplers[3 * i + 0] = sampler;
- distortion_samplers[3 * i + 1] = sampler;
- distortion_samplers[3 * i + 2] = sampler;
- }
-
- update_compute_shared_descriptor_set( //
- vk, //
- r->compute.src_binding, //
- src_samplers, //
- src_image_views, //
- r->compute.distortion_binding, //
- distortion_samplers, //
- r->distortion.image_views, //
- r->compute.target_binding_y, //
- r->compute.target_binding_cbcr, //
- target_image_view_y, //
- target_image_view_cbcr, //
- r->compute.ubo_binding, //
- r->compute.distortion.ubo.buffer, //
- VK_WHOLE_SIZE, //
- render->shared_descriptor_set, //
- render->r->view_count); //
-
- vk->vkCmdBindPipeline( //
- r->cmd, //
- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint
- r->compute.distortion.timewarp_pipeline); // pipeline
-
- vk->vkCmdBindDescriptorSets( //
- r->cmd, //
- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint
- r->compute.distortion.pipeline_layout, // layout
- 0, // firstSet
- 1, // descriptorSetCount
- &render->shared_descriptor_set, // pDescriptorSets
- 0, // dynamicOffsetCount
- NULL); // pDynamicOffsets
-
-
- uint32_t w = 0, h = 0;
- calc_dispatch_dims_views(views, render->r->view_count, &w, &h);
- assert(w != 0 && h != 0);
-
- vk->vkCmdDispatch( //
- r->cmd, //
- w, // groupCountX
- h, // groupCountY
- 2); // groupCountZ
-
- VkImageMemoryBarrier memoryBarrier = {
- .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
- .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT,
- .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT,
- .oldLayout = VK_IMAGE_LAYOUT_GENERAL,
- .newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
- .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
- .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
- .image = target_image,
- .subresourceRange = subresource_range,
- };
-
- vk->vkCmdPipelineBarrier( //
- r->cmd, //
- VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, //
- VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, //
- 0, //
- 0, //
- NULL, //
- 0, //
- NULL, //
- 1, //
- &memoryBarrier); //
-}
-
void
render_compute_projection(struct render_compute *render,
VkSampler src_samplers[XRT_MAX_VIEWS],
@@ -673,22 +532,14 @@ render_compute_projection(struct render_compute *render,
VK_IMAGE_LAYOUT_GENERAL, //
subresource_range); //
- VkSampler sampler = r->samplers.clamp_to_edge;
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- distortion_samplers[3 * i + 0] = sampler;
- distortion_samplers[3 * i + 1] = sampler;
- distortion_samplers[3 * i + 2] = sampler;
- }
-
update_compute_shared_descriptor_set( //
vk, //
r->compute.src_binding, //
src_samplers, //
src_image_views, //
r->compute.distortion_binding, //
- distortion_samplers, //
- r->distortion.image_views, //
+ VK_WHOLE_SIZE, //
+ r->distortion.buffer, //
r->compute.target_binding_y, //
r->compute.target_binding_cbcr, //
target_image_view_y, //
@@ -804,13 +655,9 @@ render_compute_clear(struct render_compute *render,
VkSampler sampler = r->samplers.mock;
VkSampler src_samplers[XRT_MAX_VIEWS];
VkImageView src_image_views[XRT_MAX_VIEWS];
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS];
for (uint32_t i = 0; i < render->r->view_count; ++i) {
src_samplers[i] = sampler;
src_image_views[i] = r->mock.color.image_view;
- distortion_samplers[3 * i + 0] = sampler;
- distortion_samplers[3 * i + 1] = sampler;
- distortion_samplers[3 * i + 2] = sampler;
}
update_compute_shared_descriptor_set( //
@@ -819,8 +666,8 @@ render_compute_clear(struct render_compute *render,
src_samplers, //
src_image_views, //
r->compute.distortion_binding, //
- distortion_samplers, //
- r->distortion.image_views, //
+ VK_WHOLE_SIZE, //
+ r->distortion.buffer, //
r->compute.target_binding_y, //
r->compute.target_binding_cbcr, //
target_image_view_y, //
diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h
index 2f8ce5287..d74ec78dd 100644
--- a/src/xrt/compositor/render/render_interface.h
+++ b/src/xrt/compositor/render/render_interface.h
@@ -74,12 +74,8 @@ extern "C" {
#define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS)
#define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count)
-//! Distortion image dimension in pixels
-#define RENDER_DISTORTION_IMAGE_DIMENSIONS (128)
-
-//! How many distortion images we have, one for each channel (3 rgb) and per view.
-#define RENDER_DISTORTION_IMAGES_SIZE (3 * XRT_MAX_VIEWS)
-#define RENDER_DISTORTION_IMAGES_COUNT(RENDER_RESOURCES) (3 * RENDER_RESOURCES->view_count)
+//! Foveation buffer dimension in pixels (including past-the end pixel)
+#define RENDER_FOVEATION_BUFFER_DIMENSIONS (4096 + 1)
//! The binding that the layer projection and quad shader have their UBO on.
#define RENDER_BINDING_LAYER_SHARED_UBO 0
@@ -519,9 +515,6 @@ struct render_resources
//! Doesn't depend on target so is static.
VkPipeline pipeline;
- //! Doesn't depend on target so is static.
- VkPipeline timewarp_pipeline;
-
//! Target info.
struct render_buffer ubo;
} distortion;
@@ -543,17 +536,11 @@ struct render_resources
//! Transform to go from UV to tangle angles.
struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS];
- //! Backing memory to distortion images.
- VkDeviceMemory device_memories[RENDER_DISTORTION_IMAGES_SIZE];
-
- //! Distortion images.
- VkImage images[RENDER_DISTORTION_IMAGES_SIZE];
+ //! Backing memory to foveation buffers.
+ VkDeviceMemory device_memory;
- //! The views into the distortion images.
- VkImageView image_views[RENDER_DISTORTION_IMAGES_SIZE];
-
- //! Whether distortion images have been pre-rotated 90 degrees.
- bool pre_rotated;
+ //! Foveation buffer.
+ VkBuffer buffer;
} distortion;
};
@@ -1298,6 +1285,14 @@ struct render_compute_distortion_ubo_data
struct xrt_matrix_4x4 transforms[XRT_MAX_VIEWS];
};
+struct render_compute_distortion_foveation_data
+{
+ // For each output pixel: index of the first pixel to read.
+ // contains 1 additional value at the end for past-the end pixel
+ uint32_t x[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS];
+ uint32_t y[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS];
+};
+
/*!
* Init struct and create resources needed for compute rendering.
*
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
index 5b9addd59..7d4d9cddb 100644
--- a/src/xrt/compositor/render/render_resources.c
+++ b/src/xrt/compositor/render/render_resources.c
@@ -258,8 +258,8 @@ create_compute_distortion_descriptor_set_layout(struct vk_bundle *vk,
},
{
.binding = distortion_binding,
- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
- .descriptorCount = 6,
+ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
+ .descriptorCount = 1,
.stageFlags = VK_SHADER_STAGE_COMPUTE_BIT,
},
{
@@ -309,12 +309,6 @@ struct compute_layer_params
uint32_t image_array_size;
};
-struct compute_distortion_params
-{
- uint32_t distortion_texel_count;
- VkBool32 do_timewarp;
-};
-
XRT_CHECK_RESULT static VkResult
create_compute_layer_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
@@ -359,35 +353,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
VkShaderModule shader,
VkPipelineLayout pipeline_layout,
- const struct compute_distortion_params *params,
VkPipeline *out_compute_pipeline)
{
-#define ENTRY(ID, FIELD) \
- { \
- .constantID = ID, \
- .offset = offsetof(struct compute_distortion_params, FIELD), \
- sizeof(params->FIELD), \
- }
-
- VkSpecializationMapEntry entries[2] = {
- ENTRY(0, distortion_texel_count),
- ENTRY(1, do_timewarp),
- };
-#undef ENTRY
-
- VkSpecializationInfo specialization_info = {
- .mapEntryCount = ARRAY_SIZE(entries),
- .pMapEntries = entries,
- .dataSize = sizeof(*params),
- .pData = params,
- };
return vk_create_compute_pipeline( //
vk, // vk_bundle
pipeline_cache, // pipeline_cache
shader, // shader
pipeline_layout, // pipeline_layout
- &specialization_info, // specialization_info
+ NULL, // specialization_info
out_compute_pipeline); // out_compute_pipeline
}
@@ -849,9 +823,9 @@ render_resources_init(struct render_resources *r,
struct vk_descriptor_pool_info compute_pool_info = {
.uniform_per_descriptor_count = 1,
// layer images
- .sampler_per_descriptor_count = r->compute.layer.image_array_size + RENDER_DISTORTION_IMAGES_COUNT(r),
+ .sampler_per_descriptor_count = r->compute.layer.image_array_size,
.storage_image_per_descriptor_count = 1,
- .storage_buffer_per_descriptor_count = 0,
+ .storage_buffer_per_descriptor_count = 1,
.descriptor_count = compute_descriptor_count,
.freeable = false,
};
@@ -971,39 +945,16 @@ render_resources_init(struct render_resources *r,
VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout,
"render_resources compute distortion pipeline layout");
- struct compute_distortion_params distortion_params = {
- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS,
- .do_timewarp = false,
- };
-
ret = create_compute_distortion_pipeline( //
vk, // vk_bundle
r->pipeline_cache, // pipeline_cache
r->shaders->distortion_comp, // shader
r->compute.distortion.pipeline_layout, // pipeline_layout
- &distortion_params, // params
&r->compute.distortion.pipeline); // out_compute_pipeline
VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false);
VK_NAME_PIPELINE(vk, r->compute.distortion.pipeline, "render_resources compute distortion pipeline");
- struct compute_distortion_params distortion_timewarp_params = {
- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS,
- .do_timewarp = true,
- };
-
- ret = create_compute_distortion_pipeline( //
- vk, // vk_bundle
- r->pipeline_cache, // pipeline_cache
- r->shaders->distortion_comp, // shader
- r->compute.distortion.pipeline_layout, // pipeline_layout
- &distortion_timewarp_params, // params
- &r->compute.distortion.timewarp_pipeline); // out_compute_pipeline
- VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false);
-
- VK_NAME_PIPELINE(vk, r->compute.distortion.timewarp_pipeline,
- "render_resources compute distortion timewarp pipeline");
-
size_t distortion_ubo_size = sizeof(struct render_compute_distortion_ubo_data);
ret = render_buffer_init( //
@@ -1056,15 +1007,8 @@ render_resources_init(struct render_resources *r,
* Compute distortion textures, not created until later.
*/
- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) {
- r->distortion.image_views[i] = VK_NULL_HANDLE;
- }
- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) {
- r->distortion.images[i] = VK_NULL_HANDLE;
- }
- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) {
- r->distortion.device_memories[i] = VK_NULL_HANDLE;
- }
+ r->distortion.buffer = VK_NULL_HANDLE;
+ r->distortion.device_memory = VK_NULL_HANDLE;
/*
@@ -1141,7 +1085,6 @@ render_resources_fini(struct render_resources *r)
D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout);
D(Pipeline, r->compute.distortion.pipeline);
- D(Pipeline, r->compute.distortion.timewarp_pipeline);
D(PipelineLayout, r->compute.distortion.pipeline_layout);
D(Pipeline, r->compute.clear.pipeline);
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
index 9ce46fe6f..f3be617bd 100644
--- a/src/xrt/compositor/shaders/distortion.comp
+++ b/src/xrt/compositor/shaders/distortion.comp
@@ -7,17 +7,17 @@
#include "srgb.inc.glsl"
-
-// The size of the distortion texture dimensions in texels.
-layout(constant_id = 0) const int distortion_texel_count = 2;
-
-// Should we do timewarp.
-layout(constant_id = 1) const bool do_timewarp = false;
-
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
+#define MAX_DIM 4097
+
layout(set = 0, binding = 0) uniform sampler2D source[2];
-layout(set = 0, binding = 1) uniform sampler2D distortion[6];
+layout(set = 0, binding = 1, std430) buffer restrict Foveation
+{
+ uint x[2*MAX_DIM];
+ uint y[2*MAX_DIM];
+} foveation;
+
layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
layout(set = 0, binding = 3, std140) uniform restrict Config
{
@@ -41,109 +41,40 @@ vec3 rgb_to_ycbcr(vec3 color)
return transpose(color_space) * color + vec3(0, 0.5, 0.5);
}
-vec2 position_to_uv(ivec2 extent, uint ix, uint iy)
-{
- // Turn the index into floating point.
- vec2 xy = vec2(float(ix), float(iy));
-
- // The inverse of the extent of the target image is the pixel size in [0 .. 1] space.
- vec2 extent_pixel_size = vec2(1.0 / float(extent.x), 1.0 / float(extent.y));
-
- // Per-target pixel we move the size of the pixels.
- vec2 dist_uv = xy * extent_pixel_size;
-
- // Emulate a triangle sample position by offset half target pixel size.
- dist_uv = dist_uv + extent_pixel_size / 2.0;
-
-
- // To correctly sample we need to put position (0, 0) in the
- // middle of the (0, 0) texel in the distortion textures. That's why we
- // offset with half the texel size, pushing all samples into the middle
- // of each texels, a kin to a vertex buffer. We need to put uv coord
- // (1, 1) in the middle of the last texel, that pixel is (size - 1)
- // texels away from the first texel. So we need to scale [0 .. 1] to
- // [0 .. size - 1].
-
-#define DIM (float(distortion_texel_count))
-#define STRETCH ((DIM - 1.0) / DIM)
-#define OFFSET (1.0 / (DIM * 2.0))
-
- dist_uv = (dist_uv * STRETCH) + OFFSET;
-
- return dist_uv;
-}
-
-vec2 transform_uv_subimage(vec2 uv, uint iz)
-{
- vec2 values = uv;
-
- // To deal with OpenGL flip and sub image view.
- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy;
-
- // Ready to be used.
- return values.xy;
-}
-
-vec2 transform_uv_timewarp(vec2 uv, uint iz)
-{
- vec4 values = vec4(uv, -1, 1);
-
- // From uv to tan angle (tangent space).
- values.xy = values.xy * ubo.pre_transform[iz].zw + ubo.pre_transform[iz].xy;
- values.y = -values.y; // Flip to OpenXR coordinate system.
-
- // Timewarp.
- values = ubo.transform[iz] * values;
- values.xy = values.xy * (1.0 / max(values.w, 0.00001));
-
- // From [-1, 1] to [0, 1]
- values.xy = values.xy * 0.5 + 0.5;
-
- // To deal with OpenGL flip and sub image view.
- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy;
-
- // Done.
- return values.xy;
-}
-
-vec2 transform_uv(vec2 uv, uint iz)
-{
- if (do_timewarp) {
- return transform_uv_timewarp(uv, iz);
- } else {
- return transform_uv_subimage(uv, iz);
- }
-}
-
void main()
{
uint iz = gl_GlobalInvocationID.z;
ivec2 offset = ivec2(ubo.views[iz].xy);
ivec2 extent = ivec2(ubo.views[iz].zw);
- vec2 cbcrs[4];
- vec4 alpha;
+ vec3 cbcra = vec3(0);
for (int k = 0; k < 2; k += 1) {
uint iy = gl_GlobalInvocationID.y * 2 + k;
+ uint ymin = foveation.y[MAX_DIM * iz + iy];
+ uint ymax = foveation.y[MAX_DIM * iz + iy + 1];
+ if (ymin > ymax)
+ {
+ uint tmp = ymin;
+ ymin = ymax;
+ ymax = tmp;
+ }
for (int j = 0; j < 2; j += 1) {
uint ix = gl_GlobalInvocationID.x * 2 + j;
- vec2 dist_uv = position_to_uv(extent, ix, iy);
+ uint xmin = foveation.x[MAX_DIM * iz + ix];
+ uint xmax = foveation.x[MAX_DIM * iz + ix + 1];
- vec2 uv = texture(distortion[iz + 0], dist_uv).xy;
- vec2 lod = texture(distortion[iz + 2], dist_uv).xy;
-
- // Do any transformation needed.
- uv = transform_uv(uv, iz);
-
- // Sample the source
- vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5));
-
- colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
+ vec4 colour = vec4(0);
+ for (uint y = ymin ; y < ymax; y += 1) {
+ for (uint x = xmin ; x < xmax; x += 1) {
+ colour += texelFetch(source[iz], ivec2(x, y), 0);
+ }
+ }
+ colour /= (xmax - xmin) * (ymax - ymin);
+ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
- int i = k * 2 + j;
- cbcrs[i] = colour.yz;
- alpha[i] = colour.a;
+ cbcra.xy += colour.yz;
+ cbcra.z += colour.a;
if (ix < extent.x && iy < extent.y) {
imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
@@ -153,10 +84,7 @@ void main()
if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) {
return;
}
- vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0));
-
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcra.x, cbcra.y, 0, 0) / 4);
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(cbcra.z, 0, 0, 0) / 4);
imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0));
- alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5));
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
}
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
index b2d3ce10d..69429dc97 100644
--- a/src/xrt/compositor/util/comp_render_cs.c
+++ b/src/xrt/compositor/util/comp_render_cs.c
@@ -466,30 +466,15 @@ crc_distortion_fast_path(struct render_compute *render,
world_poses[i] = world_pose;
}
- if (!d->do_timewarp) {
- render_compute_projection( //
- render, //
- src_samplers, //
- src_image_views, //
- src_norm_rects, //
- d->target.cs.image, //
- d->target.cs.storage_view_y, //
- d->target.cs.storage_view_cbcr, //
- target_viewport_datas); //
- } else {
- render_compute_projection_timewarp( //
- render, //
- src_samplers, //
- src_image_views, //
- src_norm_rects, //
- src_poses, //
- src_fovs, //
- world_poses, //
- d->target.cs.image, //
- d->target.cs.storage_view_y, //
- d->target.cs.storage_view_cbcr, //
- target_viewport_datas); //
- }
+ render_compute_projection( //
+ render, //
+ src_samplers, //
+ src_image_views, //
+ src_norm_rects, //
+ d->target.cs.image, //
+ d->target.cs.storage_view_y, //
+ d->target.cs.storage_view_cbcr, //
+ target_viewport_datas); //
}
--
2.50.1

Some files were not shown because too many files have changed in this diff Show More