Table of Contents

Simulate 3D content effects

Annotation data is structured data files created through the Mega Studio tool, primarily used to record spatial positioning information of target objects in a scene, such as their 3D spatial coordinates and pose parameters. During simulated localization testing, these annotation data can similarly serve as benchmark references to verify the accuracy of actual localization results.

Preparation before annotation

Before starting to create annotations, you need to ensure that the corresponding environment and data are prepared.

If you need to display annotation data during localization, you can use the annotation component for annotation. Before this, you should have completed EIF data acquisition and configured the software environment as described in simulation run.

Annotation data process

  1. Right-click in the blank area of the left panel "Hierarchy" and import "Annotation Tool(Edit Mode)"

    Using studio

  2. Select "EasyAR.Mega.Annotation" in the left panel "Hierarchy"

  3. Enter your EasyAR account name and password in the right panel "Inspector"

  4. Click "Login"

    Using studio

  5. In the right panel "Inspector", click the icon after "Mega Cloud Service"

  6. In the opened window, select a "Mega Block localization service"

  7. Click "OK"

  8. In the right panel "Inspector", click "Load" to add the map to the Unity project

    Using studio

  9. Create annotation data

    • Press Ctrl and left mouse button simultaneously at the spatial location to be annotated to create an annotation cube

      Using studio

    • Create 3D objects through the right-click menu, note that 3D objects need to be placed under the Block node

      Using studio

    • Directly import pre-generated models

      Using studio

  10. Select "EasyAR.Mega.Annotation" in the left panel "Inspector", then click the icon after the annotation data package in the right "Inspector" panel

  11. In the opened window, select a "Mega Block localization service" on the left

![Using studio](https://doc-asset.easyar.com/mega/optimization/simulation-preview/media/create-anno-use-5.png)  
  1. Click the "+" symbol in the upper-right corner to create an annotation data package
  2. Enter the name of the annotation data package
  3. Click the "√" symbol to confirm
  4. Click "OK" to save the annotation data package
![Using studio](https://doc-asset.easyar.com/mega/optimization/simulation-preview/media/create-anno-use-6.png) 
Note

If you need to save annotation data, you can click below the annotation data package in the right "Inspector" panel and click the "∧" symbol

Finally, click "Yes" in the pop-up window to complete saving the annotation data package

Using studio

View localization effects using annotation data

This part of the operation is similar to simulation run. For more detailed steps, refer to the previous chapter.

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

    Using studio

    You can also start via buttons on the Unity toolbar

    Using studio

  2. Open and automatically play EIF

    Using studio

  3. Playback can be controlled as needed. The typical effect will look like this

    You can also completely hide the Block model, which matches the effect seen in real scenes

  4. Stop running via the tool button

    Using studio

Summary and best practices

Finally, if you need to develop your own application and run it in the editor, you need to disable the verification tool (only effective in the editor, does not affect mobile device performance).

Using studio

For more detailed operations on Mega Studio, refer to the Mega Studio operation manual.