Table of Contents

Simulated run

Overlay rendering is one of the core features of Mega, effectively addressing physical occlusion, deep fusion, and lighting consistency in complex scenes, ensuring seamless visual integration of virtual objects with the real environment. This feature is suitable for use before development, when application development is incomplete, or when on-site testing conditions are inconvenient.

Preparation

Mega Studio is a Unity development component provided by EasyAR, which includes map browsing and positioning simulation functions. It specifically includes the Block Viewer for Unity Developer, Block Viewer, and Annotation Tool tools. If you have already installed Mega Studio, you can skip this step.

Download Mega Studio

Mega Studio is provided as a Unity plugin. You need to download EasyAR Sense Unity Plugin (for Mega) from the EasyAR download page and import it into Unity for use.

Download Mega Studio

When downloading, you need to agree to the "Privacy Policy" and "Compliance Guidelines" and click "Download."

Download Mega Studio

Extract the file. After downloading, extract the file into the structure shown in the image below.

Download Mega Studio

Create a unity project

Run Unity and create a project.

  • Click "New project"

  • Select "3D(Built-In Render Pipeline)",

  • Click "Create project"

    Create a unity project Create a unity project

Tip

For Unity versions after 6000, you need to download the 3D (Built-In Render Pipeline) component first

Install Mega Studio

  1. Click on the "Window" in the menu bar

  2. Select "Package Manager"

  3. In the pop-up window, click the "+" symbol in the upper-left corner

  4. Select "Add package from tarball..."

  5. Install the sense and mega packages in sequence

  6. After successful installation, it should look like the following

    install studio

Start simulation run

The simulation positioning test allows you to directly view the overlay rendering effect without full application development. By playing back EIF data in Mega Studio, sending positioning requests, and previewing positioning results through overlay-rendered Mesh, you can achieve this. Here are the specific steps:

Load the map

  1. Right-click in the blank area of the left panel "Hierarchy", select "EasyAR Mega" -> "Tool" -> import "Annotation Tool (Edit Mode)"

    Use studio

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

  3. In the right panel "Inspector", select Account, and enter the EasyAR account name and password

  4. Click "Login"

    Use studio

    If you need to use service login, you can refer to Unity login component.

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

  6. In the opened window, select a "Mega Block positioning service", and click "OK"

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

    Use studio

Load EIF

  1. As shown in the figure below, click on "EasyAR.Mega.Annotation" in the left panel "Hierarchy", then check the validation tool by clicking "2" in the right panel "Inspector", and finally click the button "3" to play.

    Use studio

    After clicking the tab "4", the "Mega Validation Tool" window will be displayed separately.

    Use studio

  2. As shown in the figure below, click the load button, select the EIF file you want to test, and click "Open" to automatically play the EIF and view the positioning effect.

    Use studio

Locate content display

After loading the EIF, "EasyAR.Mega.Annotation" will automatically play the EIF and perform localization. In Game, you can view the effect of Mesh overlay. You can adjust the transparency of the model rendering to check the localization effect. You can also drag the progress bar to adjust the start time of playback.

Using studio

Feature description

  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 EIF file
  8. Current time/total time
  9. Current playback speed
  10. Playback progress (draggable for new format data, except for abnormal recording stops)

You can also click "Main Camera" in "Hierarchy" to view the real-time position of the camera during localization.

Using studio

In the localization display control area, you can check the status of localization:

  1. Show/hide video background

  2. Show/hide annotation data

  3. Show/hide Block model (in URP, the model in the Scene window will also be hidden)

  4. Show/hide button names

  5. Control Block model transparency (not available in URP)

    Using studio

Next steps