North Star + StardustXR

Hello! I have monado-git and openxr-git installed from the AUR. I'm running kwin wayland. I have a North Star plugged in via USB/DP and stardust-xr-server installed via the documentation instructions. When I run cargo run I get the server window on my main monitor. Ideally I want it on the headset, how do I make Stardust talk to Monado and do the things ā„¢ļø ? New to most of this as coming from Unity development, so be gentoo with me šŸ˜‰ Perhaps this is a bit more of a Monado question, as I dont think I have things running properly with that yet. I don't mind not running in direct mode, which is apparently not possible with wayland anyway. Any pointers from North Star running devs here?
118 Replies
Nova
Novaā€¢2y ago
that is weird, send a full log of the server's output it should connect to Monado instantly
sam bilbow
sam bilbowOPā€¢2y ago
Oh, sorry monado-service wasn't running
Nova
Novaā€¢2y ago
hahaha :p does it work now?
sam bilbow
sam bilbowOPā€¢2y ago
It makes the grey screen black? I suppose thats progress It's still on my main monitor, and really small, so I guess its not building for north_star
Nova
Novaā€¢2y ago
that's perfect try it with an HDRI file at ~/.config/stardust/sky.hdr
sam bilbow
sam bilbowOPā€¢2y ago
i.e. cargo run ~/.config/stardust/sky.hdr?
Nova
Novaā€¢2y ago
no just put an hdr file in that spot
sam bilbow
sam bilbowOPā€¢2y ago
Hmm still black Whats the quickest way to do this?
Nova
Novaā€¢2y ago
show me the inside of ~/.config/stardust like using tree
sam bilbow
sam bilbowOPā€¢2y ago
No description
Nova
Novaā€¢2y ago
oh shoot i meant skytex.hdr not sky.hdr
sam bilbow
sam bilbowOPā€¢2y ago
Nice
No description
Nova
Novaā€¢2y ago
nicee it work you can also make a script at ~/.config/stardust/startup to run anything you want at startup
sam bilbow
sam bilbowOPā€¢2y ago
Awesome, I'm still not 100% (even 10%) sure what I might want to do/what that means but its good to know šŸ™‚ My main hurdle right now is getting it to go on the NS screen with a wayland compositor (I assume theres a config file that lets me do this)
Nova
Novaā€¢2y ago
oh that's def a monado question then
sam bilbow
sam bilbowOPā€¢2y ago
Also, building for north_star with monado Cuz right now im SIMULATED asf šŸ˜„
Nova
Novaā€¢2y ago
yep, you got it to connect so now you just gotta get monado working with NS ask on their server
sam bilbow
sam bilbowOPā€¢2y ago
Will do, thanks @Nova :stardustxr:
Nova
Novaā€¢2y ago
no problem!
sam bilbow
sam bilbowOPā€¢2y ago
@Nova I reinstalled monado, and openxr and have it pointing to the right display now. After logging out/in, when I do cargo run now it runs its own window rather than attaching to monado-service:
>>> z stardust

>>> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/stardust-xr-server`
[SK diagnostic] Initializing StereoKit v0.3.7-preview.9 Linux x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
[SK diagnostic] [sk_gpu] EGL version 1.5
[SK diagnostic] [sk_gpu] Using OpenGL: OpenGL ES 3.2 Mesa 23.0.2
[SK diagnostic] [sk_gpu] Device: AMD Radeon RX 6800 XT (navi21, LLVM 15.0.7, DRM 3.49, 6.2.10-arch1-1)
[SK diagnostic] Starting a stereo display
Error [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - failed to determine active runtime file path for this environment
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - unknown error
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_api_dump
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_core_validation
Error [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - failed to determine active runtime file path for this environment
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - unknown error
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : Failed loading runtime information
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
[SK info] Couldn't create OpenXR instance [XR_ERROR_RUNTIME_UNAVAILABLE], is OpenXR installed and set as the active runtime?
[SK info] Couldn't create a stereo display, falling back to flatscreen
[SK diagnostic] Starting a flatscreen display
[SK diagnostic] Initializing Audio
[SK info] Using audio backend: PulseAudio
[SK diagnostic] Initializing Defaults
[SK diagnostic] Initializing World
[SK diagnostic] Initializing Sprites
[SK diagnostic] Initializing Lines
[SK diagnostic] Initializing UI
[SK diagnostic] Initializing Renderer
[SK diagnostic] Initializing Physics
[SK diagnostic] Initializing Input
[SK info] Initialization successful
>>> z stardust

>>> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/stardust-xr-server`
[SK diagnostic] Initializing StereoKit v0.3.7-preview.9 Linux x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
[SK diagnostic] [sk_gpu] EGL version 1.5
[SK diagnostic] [sk_gpu] Using OpenGL: OpenGL ES 3.2 Mesa 23.0.2
[SK diagnostic] [sk_gpu] Device: AMD Radeon RX 6800 XT (navi21, LLVM 15.0.7, DRM 3.49, 6.2.10-arch1-1)
[SK diagnostic] Starting a stereo display
Error [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - failed to determine active runtime file path for this environment
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - unknown error
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_api_dump
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_core_validation
Error [GENERAL | | OpenXR-Loader] : RuntimeManifestFile::FindManifestFiles - failed to determine active runtime file path for this environment
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - unknown error
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : Failed loading runtime information
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
[SK info] Couldn't create OpenXR instance [XR_ERROR_RUNTIME_UNAVAILABLE], is OpenXR installed and set as the active runtime?
[SK info] Couldn't create a stereo display, falling back to flatscreen
[SK diagnostic] Starting a flatscreen display
[SK diagnostic] Initializing Audio
[SK info] Using audio backend: PulseAudio
[SK diagnostic] Initializing Defaults
[SK diagnostic] Initializing World
[SK diagnostic] Initializing Sprites
[SK diagnostic] Initializing Lines
[SK diagnostic] Initializing UI
[SK diagnostic] Initializing Renderer
[SK diagnostic] Initializing Physics
[SK diagnostic] Initializing Input
[SK info] Initialization successful
Looks like I missed something up with openxr/monado?
Nova
Novaā€¢2y ago
it failed to find an active runtime make sure monado is the active runtime or use XR_RUNTIME_JSON env variable
sam bilbow
sam bilbowOPā€¢2y ago
Thanks, fixed that still a black screen even with skytex.hdr
>>> z stardust
>>> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/stardust-xr-server`
[SK diagnostic] Initializing StereoKit v0.3.7-preview.9 Linux x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
[SK diagnostic] [sk_gpu] EGL version 1.5
[SK diagnostic] [sk_gpu] Using OpenGL: OpenGL ES 3.2 Mesa 23.0.2
[SK diagnostic] [sk_gpu] Device: AMD Radeon RX 6800 XT (navi21, LLVM 15.0.7, DRM 3.49, 6.2.10-arch1-1)
[SK diagnostic] Starting a stereo display
[SK diagnostic] available: XR_KHR_binding_modification
[SK diagnostic] available: XR_KHR_composition_layer_cube
[SK diagnostic] available: XR_KHR_composition_layer_cylinder
[SK diagnostic] available: XR_KHR_composition_layer_equirect
[SK diagnostic] available: XR_KHR_composition_layer_equirect2
[SK diagnostic] available: XR_KHR_opengl_enable
[SK diagnostic] available: XR_KHR_swapchain_usage_input_attachment_bit
[SK diagnostic] available: XR_KHR_vulkan_enable
[SK diagnostic] available: XR_KHR_vulkan_enable2
[SK diagnostic] available: XR_EXT_dpad_binding
[SK diagnostic] available: XR_EXT_samsung_odyssey_controller
[SK diagnostic] available: XR_FB_display_refresh_rate
[SK diagnostic] available: XR_ML_ml2_controller_interaction
[SK diagnostic] available: XR_MND_headless
[SK diagnostic] available: XR_MND_swapchain_usage_input_attachment_bit
[SK diagnostic] available: XR_MNDX_force_feedback_curl
[SK diagnostic] available: XR_EXT_debug_utils
[SK diagnostic] REQUESTED: XR_KHR_composition_layer_depth
[SK diagnostic] REQUESTED: XR_KHR_convert_timespec_time
[SK diagnostic] REQUESTED: XR_KHR_opengl_es_enable
[SK diagnostic] REQUESTED: XR_EXT_hand_tracking
[SK diagnostic] REQUESTED: XR_EXT_hp_mixed_reality_controller
[SK diagnostic] REQUESTED: XR_EXTX_overlay
[SK diagnostic] REQUESTED: XR_MNDX_egl_enable
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_api_dump
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_core_validation
LOG in xrCreateInstance: Instance created
createInfo->applicationInfo.applicationName: Stardust XR
createInfo->applicationInfo.applicationVersion: 1
createInfo->applicationInfo.engineName: StereoKit
createInfo->applicationInfo.engineVersion: 12295
appinfo.detected.engine.name: (null)
appinfo.detected.engine.version: 0.0.0
quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
Head: 'North Star'
Left: '<none>'
Right: '<none>'
Hand-Tracking Left: '<none>'
Hand-Tracking Right: '<none>'
[SK diagnostic] Found OpenXR runtime: Monado(XRT) by Collabora et al 'v21.0.0-3070-g0efb0084' 21.0.0
[SK diagnostic] OpenXR requires GLES v2.0.0 - v3.2.1023
[SK diagnostic] System name: Monado: North Star
[SK diagnostic] Platform does not support single-pass rendering
[SK diagnostic] Creating view: PrimaryStereo color:rgba32_sRGB depth:depth32 blend:Additive
[SK diagnostic] Set view: PrimaryStereo to 2015x2240@1msaa
[SK diagnostic] Bounds updated: 0.00x0.00 at (-0.0,-1.6,-0.0) (0.00,0.00,0.00,1.00)
[SK diagnostic] Initializing Audio
[SK info] Using audio backend: PulseAudio
[SK diagnostic] Initializing Defaults
[SK diagnostic] Initializing World
[SK diagnostic] Initializing Sprites
[SK diagnostic] Initializing Lines
[SK diagnostic] Initializing UI
[SK diagnostic] Initializing Renderer
[SK diagnostic] Initializing Physics
[SK diagnostic] Initializing Input
[SK info] Initialization successful
[SK diagnostic] OpenXR session begin.
>>> z stardust
>>> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/stardust-xr-server`
[SK diagnostic] Initializing StereoKit v0.3.7-preview.9 Linux x64...
[SK diagnostic] Initializing Assets
[SK diagnostic] Initializing Platform
[SK diagnostic] [sk_gpu] EGL version 1.5
[SK diagnostic] [sk_gpu] Using OpenGL: OpenGL ES 3.2 Mesa 23.0.2
[SK diagnostic] [sk_gpu] Device: AMD Radeon RX 6800 XT (navi21, LLVM 15.0.7, DRM 3.49, 6.2.10-arch1-1)
[SK diagnostic] Starting a stereo display
[SK diagnostic] available: XR_KHR_binding_modification
[SK diagnostic] available: XR_KHR_composition_layer_cube
[SK diagnostic] available: XR_KHR_composition_layer_cylinder
[SK diagnostic] available: XR_KHR_composition_layer_equirect
[SK diagnostic] available: XR_KHR_composition_layer_equirect2
[SK diagnostic] available: XR_KHR_opengl_enable
[SK diagnostic] available: XR_KHR_swapchain_usage_input_attachment_bit
[SK diagnostic] available: XR_KHR_vulkan_enable
[SK diagnostic] available: XR_KHR_vulkan_enable2
[SK diagnostic] available: XR_EXT_dpad_binding
[SK diagnostic] available: XR_EXT_samsung_odyssey_controller
[SK diagnostic] available: XR_FB_display_refresh_rate
[SK diagnostic] available: XR_ML_ml2_controller_interaction
[SK diagnostic] available: XR_MND_headless
[SK diagnostic] available: XR_MND_swapchain_usage_input_attachment_bit
[SK diagnostic] available: XR_MNDX_force_feedback_curl
[SK diagnostic] available: XR_EXT_debug_utils
[SK diagnostic] REQUESTED: XR_KHR_composition_layer_depth
[SK diagnostic] REQUESTED: XR_KHR_convert_timespec_time
[SK diagnostic] REQUESTED: XR_KHR_opengl_es_enable
[SK diagnostic] REQUESTED: XR_EXT_hand_tracking
[SK diagnostic] REQUESTED: XR_EXT_hp_mixed_reality_controller
[SK diagnostic] REQUESTED: XR_EXTX_overlay
[SK diagnostic] REQUESTED: XR_MNDX_egl_enable
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_api_dump
[SK diagnostic] OpenXR layer found: XR_APILAYER_LUNARG_core_validation
LOG in xrCreateInstance: Instance created
createInfo->applicationInfo.applicationName: Stardust XR
createInfo->applicationInfo.applicationVersion: 1
createInfo->applicationInfo.engineName: StereoKit
createInfo->applicationInfo.engineVersion: 12295
appinfo.detected.engine.name: (null)
appinfo.detected.engine.version: 0.0.0
quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
Head: 'North Star'
Left: '<none>'
Right: '<none>'
Hand-Tracking Left: '<none>'
Hand-Tracking Right: '<none>'
[SK diagnostic] Found OpenXR runtime: Monado(XRT) by Collabora et al 'v21.0.0-3070-g0efb0084' 21.0.0
[SK diagnostic] OpenXR requires GLES v2.0.0 - v3.2.1023
[SK diagnostic] System name: Monado: North Star
[SK diagnostic] Platform does not support single-pass rendering
[SK diagnostic] Creating view: PrimaryStereo color:rgba32_sRGB depth:depth32 blend:Additive
[SK diagnostic] Set view: PrimaryStereo to 2015x2240@1msaa
[SK diagnostic] Bounds updated: 0.00x0.00 at (-0.0,-1.6,-0.0) (0.00,0.00,0.00,1.00)
[SK diagnostic] Initializing Audio
[SK info] Using audio backend: PulseAudio
[SK diagnostic] Initializing Defaults
[SK diagnostic] Initializing World
[SK diagnostic] Initializing Sprites
[SK diagnostic] Initializing Lines
[SK diagnostic] Initializing UI
[SK diagnostic] Initializing Renderer
[SK diagnostic] Initializing Physics
[SK diagnostic] Initializing Input
[SK info] Initialization successful
[SK diagnostic] OpenXR session begin.
Is that expected?
Nova
Novaā€¢2y ago
oh righttt it's north star so the blend mode is additive so yes
sam bilbow
sam bilbowOPā€¢2y ago
Great šŸ™‚
Nova
Novaā€¢2y ago
try launching a stardust client maybe comet?
sam bilbow
sam bilbowOPā€¢2y ago
kk This needs stardust-xr-server running in the background right? if so, screen still black
>>> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/comet`
>>> cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/comet`
Nova
Novaā€¢2y ago
you should see a red pen
sam bilbow
sam bilbowOPā€¢2y ago
Does this require 6dof? Don't see one šŸ˜¦ Here is my monado-service output
>>> XRT_COMPOSITOR_XCB_FULLSCREEN=1 XRT_COMPOSITOR_XCB_DISPLAY=2 monado-service
DEBUG [try_get_ipd] IPD returned is 0.064000 meters
INFO [try_get_fov] No key `fov` in your config file. Guessing you want 0.7 radian half-angles.
INFO [ns_optical_config_parse] Using Polynomial 2D display distortion correction!
INFO [p_create_system] Creating system:
Builders:
rift_s: Oculus Rift S
rgb_tracking: RGB tracking based devices (PSVR, PSMV, ...)
simulated: Simulated devices builder
simula: SimulaVR headset
lighthouse: Lighthouse-tracked (Vive, Index, Tundra trackers, etc.) devices builder
remote: Remote simulation devices builder
north_star: North Star headset
wmr: Windows Mixed Reality
legacy: Legacy probing system
No builder selected in config (or wasn't compiled in)
Selected north_star because it was certain it could create a head
Using builder north_star: North Star headset
Got devices:
0: North Star
In roles:
head: North Star
left: <none>
right: <none>
gamepad: <none>
hand_tracking.left: <none>
hand_tracking.right: <none>
Result: XRT_SUCCESS
D WARN [log_frame_time_diff] Frame late by 16.67ms!it 0x556a7106e460
WARN [log_frame_time_diff] Frame late by 16.67ms!queue with QUEUE_GLOBAL_PRIORITY_MEDIUM.
WARN [log_frame_time_diff] Frame late by 33.33ms!
WARN [log_frame_time_diff] Frame late by 33.33ms!
vendor: 0x1002
product: 0x73bf
apiVersion: 1.3.238
driverVersion: 0x05c00002
INFO [vk_print_features_info] Features:
timestamp_compute_and_graphics: true
timestamp_period: 10.000000
timestamp_valid_bits: 64
timeline_semaphore: true
INFO [vk_print_external_handles_info] Supported images:
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT:
color import=true export=true
depth import=true export=true
INFO [vk_print_external_handles_info] Supported fences:
VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT: true
VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT: true
INFO [vk_print_external_handles_info] Supported semaphores:
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT(binary): true
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT(binary): true
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT(timeline): false
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT(timeline): true
INFO [comp_target_swapchain_create_images] Not using vblank event thread!
INFO [comp_vulkan_formats_log] Supported formats:
VK_FORMAT_R16G16B16A16_UNORM: true
VK_FORMAT_R16G16B16A16_SFLOAT: true
VK_FORMAT_R16G16B16_UNORM: false
VK_FORMAT_R16G16B16_SFLOAT: false
VK_FORMAT_R8G8B8A8_SRGB: true
VK_FORMAT_B8G8R8A8_SRGB: true
VK_FORMAT_R8G8B8_SRGB: false
VK_FORMAT_R8G8B8A8_UNORM: true
VK_FORMAT_B8G8R8A8_UNORM: true
VK_FORMAT_R8G8B8_UNORM: false
VK_FORMAT_B8G8R8_UNORM: false
VK_FORMAT_R5G6B5_UNORM_PACK16: true
VK_FORMAT_R32_SFLOAT: true
VK_FORMAT_D32_SFLOAT: true
VK_FORMAT_D16_UNORM: true
VK_FORMAT_X8_D24_UNORM_PACK32: false
VK_FORMAT_D24_UNORM_S8_UINT: false
VK_FORMAT_D32_SFLOAT_S8_UINT: true
VK_FORMAT_S8_UINT: true
N INFO [comp_target_swapchain_create_images] Not using vblank event thread!
>>> XRT_COMPOSITOR_XCB_FULLSCREEN=1 XRT_COMPOSITOR_XCB_DISPLAY=2 monado-service
DEBUG [try_get_ipd] IPD returned is 0.064000 meters
INFO [try_get_fov] No key `fov` in your config file. Guessing you want 0.7 radian half-angles.
INFO [ns_optical_config_parse] Using Polynomial 2D display distortion correction!
INFO [p_create_system] Creating system:
Builders:
rift_s: Oculus Rift S
rgb_tracking: RGB tracking based devices (PSVR, PSMV, ...)
simulated: Simulated devices builder
simula: SimulaVR headset
lighthouse: Lighthouse-tracked (Vive, Index, Tundra trackers, etc.) devices builder
remote: Remote simulation devices builder
north_star: North Star headset
wmr: Windows Mixed Reality
legacy: Legacy probing system
No builder selected in config (or wasn't compiled in)
Selected north_star because it was certain it could create a head
Using builder north_star: North Star headset
Got devices:
0: North Star
In roles:
head: North Star
left: <none>
right: <none>
gamepad: <none>
hand_tracking.left: <none>
hand_tracking.right: <none>
Result: XRT_SUCCESS
D WARN [log_frame_time_diff] Frame late by 16.67ms!it 0x556a7106e460
WARN [log_frame_time_diff] Frame late by 16.67ms!queue with QUEUE_GLOBAL_PRIORITY_MEDIUM.
WARN [log_frame_time_diff] Frame late by 33.33ms!
WARN [log_frame_time_diff] Frame late by 33.33ms!
vendor: 0x1002
product: 0x73bf
apiVersion: 1.3.238
driverVersion: 0x05c00002
INFO [vk_print_features_info] Features:
timestamp_compute_and_graphics: true
timestamp_period: 10.000000
timestamp_valid_bits: 64
timeline_semaphore: true
INFO [vk_print_external_handles_info] Supported images:
VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT:
color import=true export=true
depth import=true export=true
INFO [vk_print_external_handles_info] Supported fences:
VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT: true
VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT: true
INFO [vk_print_external_handles_info] Supported semaphores:
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT(binary): true
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT(binary): true
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT(timeline): false
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT(timeline): true
INFO [comp_target_swapchain_create_images] Not using vblank event thread!
INFO [comp_vulkan_formats_log] Supported formats:
VK_FORMAT_R16G16B16A16_UNORM: true
VK_FORMAT_R16G16B16A16_SFLOAT: true
VK_FORMAT_R16G16B16_UNORM: false
VK_FORMAT_R16G16B16_SFLOAT: false
VK_FORMAT_R8G8B8A8_SRGB: true
VK_FORMAT_B8G8R8A8_SRGB: true
VK_FORMAT_R8G8B8_SRGB: false
VK_FORMAT_R8G8B8A8_UNORM: true
VK_FORMAT_B8G8R8A8_UNORM: true
VK_FORMAT_R8G8B8_UNORM: false
VK_FORMAT_B8G8R8_UNORM: false
VK_FORMAT_R5G6B5_UNORM_PACK16: true
VK_FORMAT_R32_SFLOAT: true
VK_FORMAT_D32_SFLOAT: true
VK_FORMAT_D16_UNORM: true
VK_FORMAT_X8_D24_UNORM_PACK32: false
VK_FORMAT_D24_UNORM_S8_UINT: false
VK_FORMAT_D32_SFLOAT_S8_UINT: true
VK_FORMAT_S8_UINT: true
N INFO [comp_target_swapchain_create_images] Not using vblank event thread!
Nova
Novaā€¢2y ago
that's fine
sam bilbow
sam bilbowOPā€¢2y ago
Even though it says <none> for my hands?
Nova
Novaā€¢2y ago
it should still show
sam bilbow
sam bilbowOPā€¢2y ago
hmm, so i have 3 active terminal windows, one running monado-service, the other running stardust-xr-server and the other running comet. Is that right? the last two are via cargo run
Nova
Novaā€¢2y ago
yep
sam bilbow
sam bilbowOPā€¢2y ago
monado-service is running in xwayland
Nova
Novaā€¢2y ago
no problem
sam bilbow
sam bilbowOPā€¢2y ago
:thonking:
Nova
Novaā€¢2y ago
wait a moment
sam bilbow
sam bilbowOPā€¢2y ago
:waiting:
Nova
Novaā€¢2y ago
are you testing this with 6DoF head tracking?
sam bilbow
sam bilbowOPā€¢2y ago
i have an intel t261 on it not sure i've told it anywhere yet that i actually want to use it. its mentioned in my NS_CONFIG but if it was trying to use it i'd expect it to be in the output of monado-service ... lots of assumptions there though
Nova
Novaā€¢2y ago
can you check if it is working using xrgears or some test app?
sam bilbow
sam bilbowOPā€¢2y ago
i can try šŸ™‚ its on my NS displays but theres no hand tracking or 6dof (not sure if theres meant to be) also the cat is not in the middle, as if the screens are in the wrong order
Nova
Novaā€¢2y ago
you should have 6dof
sam bilbow
sam bilbowOPā€¢2y ago
ah ok
Nova
Novaā€¢2y ago
so that's a monado issue and you also should have hands
sam bilbow
sam bilbowOPā€¢2y ago
Cool thanks šŸ™‚ Got this working, @moshi provided a newer ns config. Hand tracking, ive downloaded and extracted the openxr-layer-ultraleap deb from the UL repo and installed it. Deleted the v2 leap entry in the config_v0.json and hoped for the best but still no v5 tracking. Will try again tomorrow. Maybe what im trying isnt supported yet?
moshi
moshiā€¢2y ago
So (also cc @Nova) we're totally in the clear to publish and try to merge the v5 driver Can at least unprivate that repo and open a draft MR, but last I checked the code/licenses were kinda rough But yeah it's really odd that you don't have hand tracking with the layer, that should work
Nova
Novaā€¢2y ago
you need to start the ultraleap service and check that it works
sam bilbow
sam bilbowOPā€¢2y ago
Okay it might be that the service needed restarting
Nova
Novaā€¢2y ago
ah yea maybe oh neat, but why would we need that with the layer?
sam bilbow
sam bilbowOPā€¢2y ago
@Nova is there anywhere where I need to activate it? its currently sitting in usr/share/openxr/1/api_layers/explicit.d/XrApiLayer_Ultraleap.json and I've set some default config in a .json as per https://docs.ultraleap.com/openxr/
moshi
moshiā€¢2y ago
mainly so you can control sensor offsets
sam bilbow
sam bilbowOPā€¢2y ago
Still not seeming to work
>>> openxr_runtime_list
LOG in xrCreateInstance: Instance created
createInfo->applicationInfo.applicationName: List
createInfo->applicationInfo.applicationVersion: 1
createInfo->applicationInfo.engineName: List Engine
createInfo->applicationInfo.engineVersion: 1
appinfo.detected.engine.name: (null)
appinfo.detected.engine.version: 0.0.0
quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
Head: 'North Star'
Left: '<none>'
Right: '<none>'
Hand-Tracking Left: '<none>'
Hand-Tracking Right: '<none>'
Evaluating system
name: 'Monado: North Star'
vendorId: 0x2a
systemId: 0x1
systemName: Monado: North Star
List instance extensions
XR_KHR_binding_modification 1
XR_KHR_composition_layer_cube 8
XR_KHR_composition_layer_cylinder 4
XR_KHR_composition_layer_depth 6
XR_KHR_composition_layer_equirect 3
XR_KHR_composition_layer_equirect2 1
XR_KHR_convert_timespec_time 1
XR_KHR_opengl_enable 10
XR_KHR_opengl_es_enable 8
XR_KHR_swapchain_usage_input_attachment_bit 3
XR_KHR_vulkan_enable 8
XR_KHR_vulkan_enable2 2
XR_EXT_dpad_binding 1
XR_EXT_hand_tracking 4
XR_EXT_hp_mixed_reality_controller 1
XR_EXT_samsung_odyssey_controller 1
XR_FB_display_refresh_rate 1
XR_ML_ml2_controller_interaction 1
XR_MND_headless 2
XR_MND_swapchain_usage_input_attachment_bit 2
XR_EXTX_overlay 5
XR_MNDX_egl_enable 1
XR_MNDX_force_feedback_curl 1
XR_EXT_debug_utils 4
List API layer properties
XR_APILAYER_LUNARG_api_dump 1.0.0 1 API Layer to record api calls as they occur
XR_APILAYER_LUNARG_core_validation 1.0.0 1 API Layer to perform validation of api calls and parameters as they occur
XR_APILAYER_ULTRALEAP_hand_tracking 1.0.0 1 Ultraleap OpenXR Hand Tracking
>>> openxr_runtime_list
LOG in xrCreateInstance: Instance created
createInfo->applicationInfo.applicationName: List
createInfo->applicationInfo.applicationVersion: 1
createInfo->applicationInfo.engineName: List Engine
createInfo->applicationInfo.engineVersion: 1
appinfo.detected.engine.name: (null)
appinfo.detected.engine.version: 0.0.0
quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
Head: 'North Star'
Left: '<none>'
Right: '<none>'
Hand-Tracking Left: '<none>'
Hand-Tracking Right: '<none>'
Evaluating system
name: 'Monado: North Star'
vendorId: 0x2a
systemId: 0x1
systemName: Monado: North Star
List instance extensions
XR_KHR_binding_modification 1
XR_KHR_composition_layer_cube 8
XR_KHR_composition_layer_cylinder 4
XR_KHR_composition_layer_depth 6
XR_KHR_composition_layer_equirect 3
XR_KHR_composition_layer_equirect2 1
XR_KHR_convert_timespec_time 1
XR_KHR_opengl_enable 10
XR_KHR_opengl_es_enable 8
XR_KHR_swapchain_usage_input_attachment_bit 3
XR_KHR_vulkan_enable 8
XR_KHR_vulkan_enable2 2
XR_EXT_dpad_binding 1
XR_EXT_hand_tracking 4
XR_EXT_hp_mixed_reality_controller 1
XR_EXT_samsung_odyssey_controller 1
XR_FB_display_refresh_rate 1
XR_ML_ml2_controller_interaction 1
XR_MND_headless 2
XR_MND_swapchain_usage_input_attachment_bit 2
XR_EXTX_overlay 5
XR_MNDX_egl_enable 1
XR_MNDX_force_feedback_curl 1
XR_EXT_debug_utils 4
List API layer properties
XR_APILAYER_LUNARG_api_dump 1.0.0 1 API Layer to record api calls as they occur
XR_APILAYER_LUNARG_core_validation 1.0.0 1 API Layer to perform validation of api calls and parameters as they occur
XR_APILAYER_ULTRALEAP_hand_tracking 1.0.0 1 Ultraleap OpenXR Hand Tracking
The bottom of this looks promising (I assume that means its accessing the UL layer
Nova
Novaā€¢2y ago
remind me what's not working?
sam bilbow
sam bilbowOPā€¢2y ago
but comet isnt showing me muh hands
Nova
Novaā€¢2y ago
oh
sam bilbow
sam bilbowOPā€¢2y ago
I have 6dof working, just not v5 hands
Nova
Novaā€¢2y ago
stardust itself should show you hands that is weird :S uhhh
sam bilbow
sam bilbowOPā€¢2y ago
I see a red line above me to the right
Nova
Novaā€¢2y ago
send a screen recording of the gui and all that's comet alright
sam bilbow
sam bilbowOPā€¢2y ago
Is that your fabled pen~
Nova
Novaā€¢2y ago
this is a screen recording of comet
sam bilbow
sam bilbowOPā€¢2y ago
It looks funky, i'd like to use that pen
Nova
Novaā€¢2y ago
so you know what to look for
sam bilbow
sam bilbowOPā€¢2y ago
Okay so I have a black screen and the pen is above me to the right, thats all. No sky
Nova
Novaā€¢2y ago
the sky is from atmosphere the TV is poltergeist and the rings are magnetar so don't worry
sam bilbow
sam bilbowOPā€¢2y ago
I run cargo run on stardust-xr-server and the same on comet just no hands
Nova
Novaā€¢2y ago
you should see pitch black and then your hands and comet
sam bilbow
sam bilbowOPā€¢2y ago
despite
No description
Nova
Novaā€¢2y ago
that means they're not getting through properly hmm ok
sam bilbow
sam bilbowOPā€¢2y ago
Youre on a lmc right?
Nova
Novaā€¢2y ago
so that is def weird rigel, but it doesn't matter
sam bilbow
sam bilbowOPā€¢2y ago
Sure, so maybe its my installation of openxr-layer-ultraleap Youre on arch right?
sam bilbow
sam bilbowOPā€¢2y ago
so you must have taken this out the .deb?
No description
Nova
Novaā€¢2y ago
there's also a pkgbuild for it
sam bilbow
sam bilbowOPā€¢2y ago
am I missing any steps after that? I assume not since openxr_runtime_list shows me the layer
Nova
Novaā€¢2y ago
here's the 2 packages i have
sam bilbow
sam bilbowOPā€¢2y ago
oh fuck LOL
Nova
Novaā€¢2y ago
let's do a sanity check try some other openxr app that uses hands another stereokit app
sam bilbow
sam bilbowOPā€¢2y ago
is the sanity check me deciding to download binaries off you nova
Nova
Novaā€¢2y ago
wait shoot there's barely any apps that use hands still oh these aren't binaries they're pkgbuild files
sam bilbow
sam bilbowOPā€¢2y ago
oh i didnt see that šŸ˜‰ lol
sam bilbow
sam bilbowOPā€¢2y ago
No description
sam bilbow
sam bilbowOPā€¢2y ago
well it looks like i did ok
Nova
Novaā€¢2y ago
actually that's great
sam bilbow
sam bilbowOPā€¢2y ago
yeah
Nova
Novaā€¢2y ago
because that means it must have installed something else still, hand tracking should have worked hmmm
sam bilbow
sam bilbowOPā€¢2y ago
doesnt this mean it didnt install anything? cuz i already put them in the right place manually?
Nova
Novaā€¢2y ago
the shared object files are only 1 piece of an api layer
sam bilbow
sam bilbowOPā€¢2y ago
oh hold on, this pkgbuild puts the json in my implicit.d but the .deb says explicit.d
Nova
Novaā€¢2y ago
no clue what that means
sam bilbow
sam bilbowOPā€¢2y ago
The actual xrapilayer_ultraleap.json config
sam bilbow
sam bilbowOPā€¢2y ago
No description
Nova
Novaā€¢2y ago
ohh
sam bilbow
sam bilbowOPā€¢2y ago
i'm just gonna remove everything i did and do the pkg build again
Nova
Novaā€¢2y ago
makes sense
sam bilbow
sam bilbowOPā€¢2y ago
Hmm still no dice Do you mind showing me your tree /usr/share/openxr/
Nova
Novaā€¢2y ago
āÆ tree /usr/share/openxr/
/usr/share/openxr/
ā””ā”€ā”€ 1
ā”œā”€ā”€ api_layers
ā”‚Ā Ā  ā”œā”€ā”€ explicit.d
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ XrApiLayer_api_dump.json
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ XrApiLayer_core_validation.json
ā”‚Ā Ā  ā””ā”€ā”€ implicit.d
ā”‚Ā Ā  ā””ā”€ā”€ XrApiLayer_Ultraleap.json
ā””ā”€ā”€ openxr_monado.json

5 directories, 4 files
āÆ tree /usr/share/openxr/
/usr/share/openxr/
ā””ā”€ā”€ 1
ā”œā”€ā”€ api_layers
ā”‚Ā Ā  ā”œā”€ā”€ explicit.d
ā”‚Ā Ā  ā”‚Ā Ā  ā”œā”€ā”€ XrApiLayer_api_dump.json
ā”‚Ā Ā  ā”‚Ā Ā  ā””ā”€ā”€ XrApiLayer_core_validation.json
ā”‚Ā Ā  ā””ā”€ā”€ implicit.d
ā”‚Ā Ā  ā””ā”€ā”€ XrApiLayer_Ultraleap.json
ā””ā”€ā”€ openxr_monado.json

5 directories, 4 files
sam bilbow
sam bilbowOPā€¢2y ago
and the output of monado-service if you dont mind?
Nova
Novaā€¢2y ago
oof can't test that since no devices plugged in
sam bilbow
sam bilbowOPā€¢2y ago
no probs šŸ™‚
ā— ultraleap-hand-tracking-service.service - Ultraleap Tracking Service
Loaded: loaded (/usr/lib/systemd/system/ultraleap-hand-tracking-service.service; enabled; preset: disabled)
Active: active (running) since Thu 2023-04-13 14:49:52 BST; 8min ago
Main PID: 999 (leapd)
Tasks: 13 (limit: 38373)
Memory: 159.7M
CPU: 1.155s
CGroup: /system.slice/ultraleap-hand-tracking-service.service
ā””ā”€999 /usr/bin/leapd
Apr 13 14:53:21 core leapd[999]: [14:53:21.645298003] [1038] [server] handleAuthenticateRequest()#307: Client authenticated with protocol version 3.0.0, software version: 5.6.3, app name: stardust-xr-server
Apr 13 14:53:21 core leapd[999]: [14:53:21.691332360] [1068] [console] processQueue()#272: ImageStreaming has been Disabled
Apr 13 14:53:21 core leapd[999]: [14:53:21.691386208] [1068] [console] trackingLoop()#387: run_device_tracker receiving video frames
Apr 13 14:53:21 core leapd[999]: [14:53:21.947506436] [1068] [console] trackingLoop()#373: run_device_tracker error receiving video frames
Apr 13 14:54:03 core leapd[999]: [14:54:03.099098549] [1038] [console] handleAuthenticateRequest()#303: Starting 'ClientConnection' event
Apr 13 14:54:03 core leapd[999]: [14:54:03.099123348] [1038] [server] handleAuthenticateRequest()#307: Client authenticated with protocol version 3.0.0, software version: 5.6.3, app name: stardust-xr-server
Apr 13 14:54:03 core leapd[999]: [14:54:03.115254528] [1068] [console] processQueue()#272: ImageStreaming has been Disabled
Apr 13 14:56:13 core leapd[999]: [14:56:13.767826754] [1038] [console] handleAuthenticateRequest()#303: Starting 'ClientConnection' event
Apr 13 14:56:13 core leapd[999]: [14:56:13.767851957] [1038] [server] handleAuthenticateRequest()#307: Client authenticated with protocol version 3.0.0, software version: 5.6.3, app name: stardust-xr-server
Apr 13 14:56:13 core leapd[999]: [14:56:13.810538445] [1068] [console] processQueue()#272: ImageStreaming has been Disabled
ā— ultraleap-hand-tracking-service.service - Ultraleap Tracking Service
Loaded: loaded (/usr/lib/systemd/system/ultraleap-hand-tracking-service.service; enabled; preset: disabled)
Active: active (running) since Thu 2023-04-13 14:49:52 BST; 8min ago
Main PID: 999 (leapd)
Tasks: 13 (limit: 38373)
Memory: 159.7M
CPU: 1.155s
CGroup: /system.slice/ultraleap-hand-tracking-service.service
ā””ā”€999 /usr/bin/leapd
Apr 13 14:53:21 core leapd[999]: [14:53:21.645298003] [1038] [server] handleAuthenticateRequest()#307: Client authenticated with protocol version 3.0.0, software version: 5.6.3, app name: stardust-xr-server
Apr 13 14:53:21 core leapd[999]: [14:53:21.691332360] [1068] [console] processQueue()#272: ImageStreaming has been Disabled
Apr 13 14:53:21 core leapd[999]: [14:53:21.691386208] [1068] [console] trackingLoop()#387: run_device_tracker receiving video frames
Apr 13 14:53:21 core leapd[999]: [14:53:21.947506436] [1068] [console] trackingLoop()#373: run_device_tracker error receiving video frames
Apr 13 14:54:03 core leapd[999]: [14:54:03.099098549] [1038] [console] handleAuthenticateRequest()#303: Starting 'ClientConnection' event
Apr 13 14:54:03 core leapd[999]: [14:54:03.099123348] [1038] [server] handleAuthenticateRequest()#307: Client authenticated with protocol version 3.0.0, software version: 5.6.3, app name: stardust-xr-server
Apr 13 14:54:03 core leapd[999]: [14:54:03.115254528] [1068] [console] processQueue()#272: ImageStreaming has been Disabled
Apr 13 14:56:13 core leapd[999]: [14:56:13.767826754] [1038] [console] handleAuthenticateRequest()#303: Starting 'ClientConnection' event
Apr 13 14:56:13 core leapd[999]: [14:56:13.767851957] [1038] [server] handleAuthenticateRequest()#307: Client authenticated with protocol version 3.0.0, software version: 5.6.3, app name: stardust-xr-server
Apr 13 14:56:13 core leapd[999]: [14:56:13.810538445] [1068] [console] processQueue()#272: ImageStreaming has been Disabled
Looks like stardust-xr-server is trying to access leap I dont know if thats necessarily through openxr, though i'd imagine itd have to be?
Nova
Novaā€¢2y ago
technically the openxr layer's library is injected into stardust and it's trying to access it but yea openxr isn't a protocol, it's a specific ABI for a library that gets injected into your app at runtime
sam bilbow
sam bilbowOPā€¢2y ago
yeah i meant via openxr, would that terminology work? Working now šŸ™‚ but the pen is too far away from me :cryingLaughing:
Nova
Novaā€¢2y ago
oof it's at the point where you turned SLAM on or started Stardust
sam bilbow
sam bilbowOPā€¢2y ago
ah ok hmm i restarted monado but it seems to be high again, same with magnetar offsets maybe? also high with stardust restarted hmm
Nova
Novaā€¢2y ago
huh, that is weird
sam bilbow
sam bilbowOPā€¢2y ago
running poltergeist-orbit.sh gives me hands and 6dof but the terminal is on my flat screen Works fine if i start monado with my headset on the floor šŸ˜‚ It might be to do with the t265 offsets in the config @moshi gave me? Idk they run a standard deckx sensor position I also still get this on running monado-service ERROR [ns_open_system] T265 device config was invalid! I mean the config is working I supose, because the world is moving in openxr-simple-playground and VirtualGround, but everything rotates slightly when I move my head too do the tracking overrides in config_v0 overwrite those in the nsconfig?
moshi
moshiā€¢2y ago
No the tracking overrides in config_v0 don't do anything at all anymore what's the config I gave you? I suspect I forgot to set any offsets at all
sam bilbow
sam bilbowOPā€¢2y ago
Theyre the offsets from the original deckx-50cm file i think. This is it with my calibration subbed in
sam bilbow
sam bilbowOPā€¢2y ago
Also I cant seem to find this error anywhere in the source https://gitlab.freedesktop.org/monado/monado/-/blob/main/src/xrt/targets/common/target_builder_north_star.c I mean i cannot read c, but is this: P_middleofeyes_to_trackingcenter_oxr from my config to give me that error? :cringe:
moshi
moshiā€¢2y ago
oh yeah try:
"t265": {
"active": true,
"P_middleofeyes_to_imu_oxr": {
"position": {
"x": 0,
"y": -0.04824,
"z": 0.08609
},
"orientation": {
"x": -0.105,
"y": 0,
"z": 0,
"w": 0.995
}
}
},
"t265": {
"active": true,
"P_middleofeyes_to_imu_oxr": {
"position": {
"x": 0,
"y": -0.04824,
"z": 0.08609
},
"orientation": {
"x": -0.105,
"y": 0,
"z": 0,
"w": 0.995
}
}
},
something like that The offset in there seems bogus btw I'd expect to see a negative z value and positive y value in the translation so basically, if you try that, and it seems more wrong, that means you're on the right track
moshi
moshiā€¢2y ago
you should be able to get pretty good offsets by negating the position and messing around in https://quaternions.online for the orientation
Quaternions - Visualisation
Visualising Quaternions, Converting to and from Euler Angles, Explanation of Quaternions
sam bilbow
sam bilbowOPā€¢2y ago
my brain hurts P_middleofeyes_to_trackingcenter_oxr right? I think imu is what youre using for depthai
moshi
moshiā€¢2y ago
You can probably start by just negating the X value of the quaternion Oh yeah might be trackingcenter I'm on like 25 hours of no sleep
sam bilbow
sam bilbowOPā€¢2y ago
yo get some
moshi
moshiā€¢2y ago
can't, have to wait for my 3D printer to finish 10 more minutes
sam bilbow
sam bilbowOPā€¢2y ago
:print: ā©
Want results from more Discord servers?
Add your server