View Qiyu domain LCC 3D Gaussian splatting data for Mega development
This document describes how to simultaneously load and view 3D textured mesh and LCC-format 3D Gaussian Splatting (3DGS) data in the Unity Editor, aligning both datasets to assist application development.
Important
This article applies only to users who need to simultaneously load and view Mesh and LCC 3DGS in the Unity Editor after collecting data with Qiyu devices and completing mapping. Mapping results from other devices do not contain LCC 3DGS data and cannot use the methods described in this document to load LCC 3DGS.
Before you begin
- Using XGRIDS devices to collect spatial data and export LCC files
- Viewing 3D textured mesh of mapping results in Unity
- LCC Unity SDK quickstart guide
Aligning LCC 3DGS with Mesh data
Load and render Mesh using Mega tools in the Unity Editor, while loading and rendering LCC 3DGS using the LCC SDK.
Loading 3D textured mesh
Load the 3D textured mesh of the target Block's mapping results.

Configuring LCC SDK components
Add components LCC Manager and LCC Renderer from the LCC Unity SDK to the Hierarchy.
Drag LCC Renderer under the corresponding Block node as its child, maintaining LCC 3DGS's Transform relative to the Block.
Then modify LCC Renderer's Transform:
Positionto(0, 0, 0)Rotationto(-90, 0, 0)Scaleto(-1, 1, 1)

Important
According to Qiyu's official documentation, due to differences in coordinate system definitions between underlying data and Unity, you must modify LCC Renderer's Transform Rotation and Scale as demonstrated in LCC's official Sample. Otherwise, 3DGS cannot align with Mesh.
Adding editor scene camera sync script to Camera
Add the script SceneGameCameraSync provided in the LCC Unity SDK Sample to the scene camera.

Important
In edit mode, this script is required to synchronize the editor scene camera's pose and FOV for 3DGS rendering. You must Disable this script in play mode.
After completing the above steps, both datasets will align when loaded simultaneously. While rendering both 3DGS and Mesh is possible, it is generally not recommended.

Viewing LCC 3D Gaussian splatting
In scenarios requiring LCC 3DGS viewing, it is advisable to hide the Mesh and display only 3DGS rendering results to avoid visual interference from the Mesh.
Click the Block's hide button to conceal the Mesh.

Then, in the LCC Renderer Inspector panel, enter the correct LCC file path and click the More (⋮) button in the upper-right corner > click Render to trigger 3DGS rendering.

Only 3DGS rendering results are now displayed.

Viewing 3D textured mesh
Viewing the 3D textured mesh facilitates operations like content annotation.
In the LCC Renderer Inspector panel, click the More (⋮) button in the upper-right corner > click unRender to stop 3DGS rendering.

Click the Block's show button to display the Mesh.

The editor now renders only the Mesh.
