Table of Contents

Simulation run

Overlay rendering is one of the core functions of Mega, effectively handling physical occlusion, deep fusion, and lighting consistency issues in complex scenes, thereby ensuring virtual objects seamlessly integrate visually 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.

Preparations

Mega Studio is a Unity development component provided by EasyAR, containing map browsing and localization simulation functions, specifically including 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 in the form of a Unity plugin. You need to download EasyAR Sense Unity Plugin (for Mega) from the EasyAR download page, and then 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

Unzip the file, extracting the downloaded file into the structure shown below

Download mega studio

Create unity project

Run Unity and create a project.

  • Click "New Project"

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

  • Click "Create Project"

    Create unity project Create unity project

Tip

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

Install mega studio

  1. Click "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 image below

    Install studio

Start simulation run

Simulation localization testing allows you to directly view overlay rendering effects without full application development. By replaying EIF data in Mega Studio, sending localization requests, and overlaying rendering Mesh, you can preview localization results. The specific operation process is as follows:

Load 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, enter 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 localization service", 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 "EasyAR.Mega.Annotation" in the left panel "Hierarchy", then in the right panel "Inspector", click "2" to check the verification tool, then click button "3" to play.

    Use studio

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

    Use studio

  2. Click the load button as shown below, select the EIF file for your test, and click "Open" to automatically play the EIF and view localization effects.

    Use studio

Run effect and control

After loading EIF, "EasyAR.Mega.Annotation" will automatically play EIF and perform localization. You can view the overlay effect of Mesh in Game.

You can adjust model rendering transparency to view localization effects. You can also drag the progress bar to adjust the start time of playback.

Use studio

Function description

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

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

Use studio

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

  1. Show/Hide video background

  2. Show/Hide annotation data

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

  4. Show/Hide button names

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

    Use studio

[Optional] Use lcc 3d gaussian splatting

Note

This section applies to usage scenarios where the domain device is used for collection and mapping is completed. Mapping results from other devices do not contain LCC 3DGS data.

If you use the LCC 3D Gaussian Splatting (domain LCC) function, you can simultaneously render 3DGS results during simulation to view the alignment effect between the model and 3DGS.

First, you need to load LCC data and align it with Mesh.

If there is a SceneGameCameraSync script on the Camera, you need to Disable it.

The effect of simulating operation by rendering 3DGS while playing the EIF file is as follows:

Next steps