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

Configuring the position of an ArUco marker in a virtual scene (Unity)

Create a virtual marker in Unity and place it in a position corresponding to the position of the ArUco marker in the physical environment.
  1. In Unity, open the virtual scene you plan to align with your play area.
  2. Create a virtual marker and place it in the scene where you plan to put the physical marker. Make sure the marker is in the correct position and aligned as illustrated in the picture below.
    Important:

    If the marker's axes don't match those shown in the image, your scene may not align correctly with the physical environment.

    Remember to calculate the position from the center of the marker. Make sure the height and the distance to the nearest boundary are the same.

  3. Make a note of the positional data, including the parallel transport and rotation in quaternion. You'll need to use this data when creating your ArUco markers.
  4. Configure the marker ID and dictionary of the virtual marker by using the Configure marker ID and dictionary API. See Marker-Based Scene Alignment APIs (AIO).
    Tip:

    Use the Retain alignment API to keep alignment results intact if you change environmental settings or switch VR apps. For details, see Marker-Based Scene Alignment APIs (AIO).

提交
谢谢!您的反馈可以帮助其他人了解最有用的信息。