请选择您的所在地
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
请选择您的所在地
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:

These APIs 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).

Connect to VIVE Business Streaming server

Initializes the connection between VIVE Business Streaming and your application.

private void OnEnable()
{
VS_Init();
pServerStatusCB = OnServerStatusUpdate;
pSettingChangeCB = OnSettingChange;
pSdkDebugLogCB = OnSdkDebugLog;
VS_SetCallbackFunction(pServerStatusCB, pSettingChangeCB, pSdkDebugLogCB);
OnVbsIsRunning += Testing_OnVbsIsRunning;
}

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 = "‍PLAYER00InitMA"‍;
// default path: C:\Users\{USER_NAME}\markers_list.json
string markerInfoPath =
Environment.ExpandEnvironmentVariables(@"‍%USERPROFILE%\markers_list.json"‍);

if (File.Exists(markerInfoPath))
{
string setting = File.ReadAllText(markerInfoPath);
setting = setting.Replace("‍\n"‍, "‍"‍).Replace("‍ "‍, "‍"‍);
key += setting;
}

bool result = VS_WVRGetParameters((int)DeviceType.HMD, key);
if (result == false)
{
// Write your error handling code here.
 }
Note: Make sure to insert the correct file path for the JSON file associated with your ArUco markers.
提交
谢谢!您的反馈可以帮助其他人了解最有用的信息。