百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

DynGsplat-unity

> 编程语言
开源

用于渲染和播放动态高斯电镀序列的Unity包.

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于渲染和播放动态高斯电镀序列的Unity包.

DynGsplat

This repository contains code for compressing 3DGS PLY sequences and a Unity package for rendering and playing the compressed sequences in Unity. The Unity package depends on wuyize25/gsplat-unity, which is also included in the repository as a submodule.

TODO

  • RGB & SH compression based on codebook
  • Position compression based on Draco
  • Video based compression

Changelog

v1.1.1 - 2025/10/21

  • Lowered the Unity version requirement to 2021.

v1.1.0 - 2025/09/12

  • Added a streaming option that, when enabled, no longer loads all frame data into memory.
  • The DGS file format has been changed. The old file version is no longer supported.

v1.0.0 - 2025/09/10

  • The initial release

Compress

Setup

Our provided install method is based on Conda package and environment management:

Create a new environment.

bash
conda create -n compress python=3.9
conda activate compress

First install CUDA and PyTorch, our code is evaluated on CUDA 12.1 and PyTorch 2.1.2. Then install the following dependencies:

bash
cd CompressScripts/
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121
pip install weighted_distance/             
pip install -r requirements.txt

Run

We split the PLY sequence into blocks at fixed intervals. For each block, we learn RGB and SH codebooks via vector quantization and obtain indices. Using the first frame’s indices as the baseline, later frames store only sparse differences as (index, value) pairs.

Note that our method adopts only part of the compression scheme described in DualGS Paper Section 4 COMPRESSION, specifically the module for compressing RGB and SH attributes, which accounts for roughly one-third of the full algorithm.

bash
python compress.py \
  --data_path  \
  --output_path  \
  --st 0 \
  --ed 99 \
  --codebook_size 2**14+1 \
  --len_block 20 \
  --data_name Bass

Core Parameters

Parameter Type Description
--st int Start frame number.
--ed int End frame number.
--len_block int Block size. A block contains how many frames.
--codebook_size int Number of entries in the codebook. Must not exceed the index dtype’s max value.
--data_name str Name of the .dgs file

It will compress the PLY sequences into DGS format, which consists of a .dgs metadata file and a Data folder.

Usage of the Unity Package

Install and Setup

The unity package DynGsplat depends on wuyize25/gsplat-unity, please install and setup the Gsplat package following Gsplat/README.md. Then install the DynGsplat package (DynGsplat/package.json). DynGsplat also depends on Unity's Addressables package. If you haven't installed it before, Addressables will be installed automatically when you install DynGsplat. However, you need to complete the initial configuration for Addressables before using DynGsplat: click Window > Asset Management > Addressables > Groups, and then click "Create Addressables Settings" in the window that appears.

Import Assets

Copy or drag & drop the folder containing the .dgs file to any location within your Unity project's Assets folder (except for a Resources folder). This package will then automatically read the files and import the .dgs file as a Dyn Gsplat Asset and .dgsblk files as Dyn Gsplat Block Assets. The imported assets will be automatically added to an Addressables Group named "DynGsplat Assets". This group is automatically configured to be included in the build, so no extra configuration is needed for packaging.

Add Dyn Gsplat Renderer

Create a new Game Object in the scene, then add and configure the Dyn Gsplat Renderer component for it. Please note, to ensure that a Dyn Gsplat Renderer truly occupies only two blocks of memory when Streaming is enabled, you need to make sure the Bundle Mode for the DynGsplat Assets Addressables Group is set to "Pack Separately". The new version will automatically set this when creating the DynGsplat Assets Addressables Group.

Property Description
Asset Ref Assign the Dyn Gsplat Asset to be played.
Async Loading Toggles asynchronous loading on or off.
Streaming When disabled, all frame data is loaded into memory at runtime; when enabled, it uses at most the memory size of two blocks.
Is Playing Plays/Pauses the playback.
Gamma To Linear Coverts color space. See Gsplat/README.md.

License

This project is released under the DynGsplat-unity LICENSE. It is built upon several other open-source projects:

  • wuyize25/gsplat-unity, MIT License (c) 2025 Yize Wu
  • KeKsBoTer/c3dgs

Citation

If you find this code useful for your research, please cite us using the following BibTeX entry.

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言