Table of Contents

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

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.

Mesh

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:

  • Position to (0, 0, 0)
  • Rotation to (-90, 0, 0)
  • Scale to (-1, 1, 1)

LCC Components

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.

Add SceneGameCameraSync

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.

Mesh and 3DGS

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.

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

Render LCC

Only 3DGS rendering results are now displayed.

Display only 3DGS rendering results

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.

unRender LCC

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

Show Mesh

The editor now renders only the Mesh.

Mesh Only