Table of Contents

Validation Component

The validation component is used to simulate and verify Mega effects on a PC.

Note

When developing Unity applications, you should use the session validation tool.

Overview of the Interface in the Non-running State

When not running, the tool panel displays

validation

Overview of the Interface in the Running State

After running, the tool panel will display

validation

After opening the tool window, the tool window will display

validation

Explanation of the Tool Areas

  1. Runtime control area
  2. EIF playback area
  3. Positioning control area
  4. Display control area
  5. Status information area

Runtime Control Area

validation

  1. Use/disable the validation tool
  2. Start/stop the validation tool
  3. Select the positioning URL
  4. Open the runtime control window of the validation tool
  5. Open the session tool

EIF Playback Area

validation

  1. Play/pause
  2. Stop
  3. Forward 5s (available for new format data, except for abnormal recording stops)
  4. Slow down playback (available for new format data)
  5. Speed up playback (available for new format data)
  6. Backward 5s (available for new format data, except for abnormal recording stops)
  7. Open an EIF file
  8. Current time/total time
  9. Current speed
  10. Playback progress (draggable for new format data, except for abnormal recording stops)

Positioning Control Area

validation

  1. Start/Stop positioning (starts by default)
  2. Reset the tracking status

Display Control Area

validation

  1. Show/Hide the video background
  2. Show/Hide the Block model (the model in the Scene window will also be hidden under URP)
  3. Control the transparency of the Block model (not available under URP)

The transparency transformation effect of the Block model is as follows

validation

Status Information Area

validation

  1. Copy the content of the current positioning response to the clipboard.
  2. Response content indicator.
    • Green: The positioning process is normal, and a block is located.
    • White: The positioning process is normal, and no block is located.
    • Red: An exception occurred during the positioning process.
  3. Positioning response information

Usage Process

Prepare EIF Data

To verify the effect, EIF data is required. Please use the Simulated Data Recording Tool in Mega Toolbox to record EIF files. Depending on the selected recording format, the recording result will save a .mkveif file (or an .eif file and an .eif.json file, both of which are indispensable).

Prepare Package

Ensure that com.easyar.sense has been imported. If it hasn't been imported, you will see the following information:

validation

At this time, you need to use the Unity Package Manager to import the required package: com.easyar.sense-**.tgz.

Fill in the EasyAR Sense License Key

Log in to the EasyAR Development Center on the web to obtain the EasyAR Sense License Key.

validation

Open EasyAR > Sense > Configuration in the Unity menu.

validation

Then fill in the license key copied from the website in the opened Project Settings window.

validation

Connect to the Mega Positioning Service After adding the tool, you need to select the positioning service to be verified in the corresponding tool.

validation

Prepare Block Data (Optional)

To intuitively view the positioning effect, it is generally recommended to load the Block model data of the corresponding area. Please refer to the instructions of the Block data component for loading.

Prepare Annotation Data (Optional)

If you need to display annotation data during positioning, you can use the Annotation component to annotate or import annotations through the Annotation Data Package component.

validation

If both the Block and annotation data have been imported into the scene at this time, they will both be displayed in the scene.

validation

Prepare 3D Content (Optional)

You can create 3D objects through the mail menu. Note that the 3D objects need to be placed under the Block node.

validation

After creation, you can adjust the position, size, etc. as needed.

validation

Of course, you can also import your own models.

validation

Start the Tool

First, enable the tool, and then click the run button to start.

validation

You can also start it through the button on the Unity toolbar.

validation

After starting, there will be a prompt pop-up window. If you are developing a Unity application, please read it carefully.

validation

Open the EIF

The EIF will start playing automatically after being opened.

validation

View the Effect

You can control the playback according to your needs. Usually, the effect will be like this.

validation

You can also completely hide the Block model, so that the effect will be the same as what you see in the real scene.

validation

Stop Running and Restore the Application

Stop running through the tool button.

validation

Or you can also stop running through the button on the Unity toolbar.

validation

If you need to develop your own application and run your program on the editor, don't forget to disable the verification tool (it only takes effect on the editor and does not affect the effect on the mobile phone).

validation

Display Effects and Unity Usage Recommendations

Adjust Game window size

It is recommended to set the window size consistent with the EIF video frame size. Generally, a fixed size roughly equivalent to 1080P is suggested, such as 1080x1920 (1920x1080 in landscape orientation).

validation validation

If the window size has a significant difference from the EIF video frame, the complete video image cannot be viewed, and the tool will also display a warning message.

Adjust scene lighting

To better observe rendering effects, you can add and adjust lighting as needed. If there are no special requirements for Unity lighting, you can let Unity automatically generate ambient light.

validation validation

Simultaneously display Scene window and Game window

Sometimes it is necessary to view the contents of both the Scene window and the Game window simultaneously. In such cases, you can adjust the default Unity window layout and reposition the Scene window and Game window according to your needs.

validation

Points to Note in Unity Development

ARSession

When the tool starts, it will automatically create an ARSession and other necessary EasyAR components. If there is already an active ARSession in the scene, the tool will disable the original ARSession. However, dynamically created sessions will not be controlled, and an error will be reported if they are run.

Main Camera

When the tool is running, it will modify the Clear Flags and Background of the main camera. The Clear Flags will be changed to Solid Color, and the Background will be changed to black. These modifications will not be saved.

Center Mode

All supported center modes can be used when the tool is running. Generally, the First Target center mode is recommended.