Table of Contents

Simulating 3D content effects

Annotation data is structured data files created using the Mega Studio tool, primarily used to record spatial positioning information such as location coordinates and pose parameters of target objects within a scene. During simulated positioning tests, this annotation data can also serve as a benchmark reference to verify the accuracy of actual positioning effects.

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 recording and followed the instructions in Simulation run to complete the configuration preparations for the software environment.

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 position needing annotation to create an annotation cube

      Using studio

    • Create 3D objects via the right-click menu. Note that 3D objects must 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

  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 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

Viewing positioning 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 the button 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, making the effect consistent with what is seen in a real scene

  4. Stop the run via the tool button

    Using studio

Summary and best practices

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

Using studio

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