Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

Marker-Based Scene Alignment APIs (PC VR)

LBSS provides several application programming interfaces (APIs) to assist in Marker-Based Scene Alignment.
Note:

This API can only be used with PC VR applications. For APIs designed for use with compatible AIO applications developed with the VIVE Wave VR SDK, see Marker-Based Scene Alignment APIs (AIO).

Configure marker ID and dictionary

Configures the marker ID and dictionary for one or two ArUco markers by retrieving the marker settings from the JSON file saved on your PC and sending them to the app or game you're using. Scene alignment only starts after users scan the secondary marker when configuring two markers.

string key = "‍ GetParameters PLAYER00InitMA"‍;
// default path: C:\Users\{USERNAME}\Data\markers_list.json
string filePath =
Environment.ExpandEnvironmentVariables(@"‍%USERPROFILE%\Data
\markers_list.json"‍);
string setting = File.ReadAllText(filePath);
setting = setting.Replace("‍\n"‍, "‍"‍).Replace("‍ "‍, "‍"‍); // Spaces must be removed from the setting string.
key += setting;
uint RETURN_SIZE = 256;
StringBuilder value = new StringBuilder("‍"‍,
Convert.ToInt32(RETURN_SIZE));
OpenVR.Debug.DriverDebugRequest((uint)DeviceType.HMD, key,
value, RETURN_SIZE);
string result = value.ToString();
if (string.Compare(result, "‍InitMAErr"‍) == 0)
{
// Write your error handling code here.
 }
Note: Make sure to insert the correct file path for the JSON file associated with your ArUco markers.
Submit
Thank you! Your feedback helps others to see the most helpful information.