{"version":"1.0","provider_name":"Geckode!","provider_url":"https:\/\/www.youbiquo.eu\/geckode","author_name":"alessandroionni","author_url":"https:\/\/www.youbiquo.eu\/geckode\/author\/alessandroionni\/","title":"VR\/MR - Leonardo XR SDK - Geckode!","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"riMDYT1s3H\"><a href=\"https:\/\/www.youbiquo.eu\/geckode\/en\/vr-mr-leonardo-xr-sdk-2\/\">VR\/MR &#8211; Leonardo XR SDK<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/www.youbiquo.eu\/geckode\/en\/vr-mr-leonardo-xr-sdk-2\/embed\/#?secret=riMDYT1s3H\" width=\"600\" height=\"338\" title=\"&#8220;VR\/MR &#8211; Leonardo XR SDK&#8221; &#8212; Geckode!\" data-secret=\"riMDYT1s3H\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/\/# sourceURL=https:\/\/www.youbiquo.eu\/geckode\/wp-includes\/js\/wp-embed.min.js\n<\/script>\n","description":"VR\/MR &#8211; LeonardoXR SDK VR\/MR \u2014 LeonardoXR SDK VR\/MR \u2014 LeonardoXR SDK Version:\u00a01.0.2Target Device:\u00a0Youbiquo Leonardo XRBase SDK:\u00a0Snapdragon Spaces 1.0.4 Manual Configuration It&#8217;s recommended to use the Configuration Tool for initial project setup (see Getting Started). This guide describes the equivalent manual steps for those who prefer direct control over the settings. Configuration of Project Settings Navigate to Edit &gt; Project Settings &gt; XR Plug-in Management, then open the Android tab. Enable the OpenXR plug-in and the Snapdragon Spaces feature group. Click the red exclamation mark next to OpenXR to open the OpenXR Project Validation window. Select Fix for each listed issue. Apply the Enable Both Input Systems setting last, as it requires restarting the Editor. Play In Editor: For additional settings related to the workflow in the editor see the dedicated section in Getting Started. Enable Space Features Enable features that should be active at runtime in OpenXR Settings. Each feature corresponds to an AR Foundation Manager and an XR Subsystem: Feature AR Foundation Manager XR Subsystem Base Runtime AR Session XRSessionSubsystem Camera Frame Access AR Camera Manager XRCameraSubsystem Hit Testing AR Raycast Manager XRRaycastSubsystem Image Tracking AR Tracked Image Manager XRImageTrackingSubsystem Plane Detection AR Plane Manager XRPlaneSubsystem Spatial Anchors AR Anchor Manager XRAnchorSubsystem Spatial Meshing AR Mesh Manager XRMeshSubsystem Add Feature Usage Data to the Android Manifest Navigate to Edit &gt; Project Settings &gt; Snapdragon Spaces Launcher Settings to declare the features required or supported by the application for: Hand Tracking,\u00a0Eye Tracking,\u00a0Passthrough,\u00a0Controllers\u00a0e\u00a0Room Scale. Attention: By default, all uses-feature values are set to true. Set features not used by your application to false to avoid false requirements in the manifest. Import the Samples Open Window &gt; Package Manager, select the Snapdragon Spaces package. Click Import on Core Samples. Add all scenes to the build via Window &gt; XR &gt; Snapdragon Spaces &gt; Add Scenes to Build Settings. Important:\u00a0 The Camera Frame Access sample requires unsafe mode enabled in Player Settings &gt; Android &gt; Other Settings &gt; Script Compilation &gt; Allow &#8216;unsafe&#8217; Code. Passthrough Setup Passthrough allows you to view your physical environment as an image overlay on VR devices. It&#8217;s available on compatible devices on LeonardoXR. It is activated via the Extend Content panel in the in-app UI (visible only on Passthrough-compatible devices). It can also be activated with the X and A buttons on the controller. The enable fuction is OnPassthroughToggle()\u00a0in\u00a0MainMenuSampleController, which sets PassthroughToggle on BaseRuntimeFeature. ATTENTIO: LThe session camera must have the Background Alpha channel set to 0 to use Passthrough correctly. An automatic warning is logged if the settings are incorrect. The delegate OnSpacesAppSpaceChange\u00a0in\u00a0BaseRuntimeFeaturenotifies when the device performs a recenter (activated by holding down the menu button for 2 seconds on the VRX). Scene Setup Note: This guide assumes prior knowledge of AR Foundation and OpenXR. Consult the official AR Foundation and OpenXR documentation for basic concepts. Minimum Scene Hierarchy To enable positional head tracking on LeonardoXR you need the following items: AR Session XR Origin \u2514\u2500\u2500 Camera Offset \u2514\u2500\u2500 Main Camera (tagged as \"MainCamera\") Create them by right-clicking in the Hierarchy and selecting XR &gt; AR Session or XR &gt; XR Origin. Attention: Disable the AR Camera Manager component if you are not fetching RGB frames from the camera, to avoid lifecycle issues. Important: Disable the AR Camera Background component \u2013 it is not supported and will be automatically disabled at runtime. Application Lifecycle \u2014 Compatibility with Previous Runtimes The library Older Runtime Compatibility Prevents the application from launching when the SDK is not compatible with the OpenXR runtime installed on the device. Two entries are added to the Android manifest at startup: targetAPI \u2014 corresponds to the version of the OpenXR runtime included in the SDK. minAPI \u2014 the minimum runtime version that each feature supports. Versione: Starting with Snapdragon Spaces 1.0.4, the minAPI for all the features is 0.22.0. Compatibility Results Risultato Descrizione Success Nessuna incompatibilit\u00e0 rilevata. Error Runtime Failure Errore del runtime OpenXR. Error Validation Failure Errore nella validazione Older Runtime Compatibility. Error Uninitialized System Errore per mancanza di inizializzazione. Error Runtime Too Old For Application Il runtime installato \u00e8 troppo vecchio per l&#8217;SDK. Error Application Too Old For Runtime L&#8217;SDK \u00e8 troppo vecchio per il runtime installato. When an incompatibility is detected, a pop-up appears with an error message and a Quit button. For apps with Dual Render Fusion, the user is notified, but the application can still launch. Common Issues \u2014 VR\/MR on LeonardoXR For issues not listed here, see the general Snapdragon Spaces platform known issues. Gradle Build Issue Adding a custom controller repository can cause Gradle caching errors. Delete the folder. Temp &gt; gradleOut usually solves the problem. AR Foundation Issues AR Raycast Hit restituisce Trackable ID errato\u00a0\u2014\u00a0ARRaycastHit.trackableId always gives back 0-0. Plane Detection blocked \u2014 Mesh triangulation enters an infinite loop in AR Foundation 6.2.1. XRIT Issues AR Raycast Manager added automatically \u2014 XRIT 3.x adds anAR Raycast Manager when there is a XR Raycast Interactor, enabling Spatial Meshing regardless of the flag EnableARRaycasting. This may reduce performance. Propriet\u00e0 AR Mesh Manager not supported \u2014 Using unsupported properties generates runtime warnings. AR Camera Manager \/ AR Camera Background Issues\u00a0\u2014 Spostarsi tra scene con\u00a0AR Camera Manager\u00a0abilitato pu\u00f2 causare freeze. Disabilita\u00a0AR Camera Background\u00a0per evitare problemi di rendering. Play In Editor Known Issues Memory Leak in Camera Access Simulation \u2014 Risolved in AR Foundation 6.0+. AR Mesh Manager crash senza Normals \u2014Update AR Foundation or enable normals. QR Code Tracking non caricato in Simulation \u2014 There is no simulation subsystem; it bypasses the checks in the build editors. ScriptableSingleton Warning \u2014 Resolved in AR Foundation 5.1.2+."}