Table of Contents

Simulate 3D content effects

Annotation data is structured data files created using the Mega Studio tool, primarily used to record spatial positioning information such as the 3D coordinates and pose parameters of target objects in a scene. During simulated positioning tests, this annotation data can also serve as a reference benchmark to validate the accuracy of actual positioning 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 positioning, you can use the annotation component for annotation. Before this, you should have completed EIF data collection and followed the instructions in simulation run to complete the preparation of the software environment configuration.

Annotation data process

  1. Right-click on 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 the 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 positioning 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 position where annotation is needed to create an annotation cube

      Using studio

    • Create a 3D object through the right-click menu. Note that the 3D object needs 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 positioning service" on the left

    Using studio

  12. Click the "+" symbol in the upper right corner to create an annotation data package

  13. Enter the name of the annotation data package

  14. Click the "√" symbol to confirm

  15. Click "OK" to save the annotation data package

    Using studio

Note

If you need to save the 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 the saving of the annotation data package

Using studio

View positioning effect with labeled data

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

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

    Use studio

    You can also start it via the button on the Unity toolbar

    Use studio

  2. Open and automatically play the EIF

    Use studio

  3. You can control playback as needed. The effect will usually look like this

    You can also completely hide the Block model, so the effect is consistent with what you see in the real scene

  4. Stop the run via the tool button

    Use studio

Summary and best practices

Finally, if you need to develop your own application, and if you need to run your own program on the editor, you need to disable the validation tool (only effective for the editor, it will not affect the effect on the mobile phone).

Using studio

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