Table of Contents

Simulation run

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

Preparations

Mega Studio is a Unity-side development component provided by EasyAR, including map browsing and positioning simulation features. 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.

Downloading Mega Studio

Mega Studio is provided in the form of a Unity plugin. You need to download the EasyAR Sense Unity Plugin (for Mega) from the EasyAR download page, then import it into Unity for use.

Downloading Mega Studio

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

Downloading Mega Studio

File extraction: Unzip the downloaded file to achieve the structure shown below.

Downloading Mega Studio

Creating a Unity project

Run Unity and create a project.

  • Click "New Project"

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

  • Click "Create project"

    Creating a Unity project Creating a Unity project

Tip

Versions after Unity 6000 require downloading the 3D (Built-In Render Pipeline) component first.

Installing Mega Studio

  1. Click "Window" on the menu bar.

  2. Select "Package Manager."

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

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

  5. Install the sense and mega packages sequentially.

  6. After successful installation, it will appear as shown below.

    Installing Studio

Starting the simulation run

The simulation positioning test allows you to directly view the overlay rendering effect without needing a complete application development process. By replaying EIF data within Mega Studio, sending positioning requests, and overlaying rendered Mesh, you can preview the positioning results. The following is the specific operation process:

Loading the map

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

    Using Studio

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

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

  4. Click "Login."

    Using Studio

    If you need to log in using a service, refer to Unity Login Component.

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

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

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

    Using Studio

Loading EIF

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

    Using Studio

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

    Using Studio

  2. Click the load button as shown below, select the EIF file used for your test, click "Open," and the EIF will automatically play, allowing you to view the positioning effect.

    Using Studio

Displaying positioning content

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

Using Studio

Function description:

  1. Play/Pause
  2. Stop
  3. Forward 5s (available for new format data, except when recording stopped abnormally)
  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 when recording stopped abnormally)
  7. Open EIF file
  8. Current time/Total time
  9. Current playback speed
  10. Playback progress (draggable for new format data, except when recording stopped abnormally)

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

Using Studio

In the positioning display control area, you can view the positioning status:

  1. Show/Hide video background

  2. Show/Hide annotation data

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

  4. Show/Hide button names

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

    Using Studio

Next steps