playcanvas--supersplat
98 行
3.8 KiB
Markdown
98 行
3.8 KiB
Markdown
<!-- WEHUB_ZH_README -->
|
||
> [!NOTE]
|
||
> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
|
||
> [English](./README.en.md) · [原始项目](https://github.com/playcanvas/supersplat) · [上游 README](https://github.com/playcanvas/supersplat/blob/HEAD/README.md)
|
||
> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
|
||
|
||
# SuperSplat Editor
|
||
|
||
[](https://github.com/playcanvas/supersplat/releases)
|
||
[](https://github.com/playcanvas/supersplat/blob/main/LICENSE)
|
||
[](https://discord.gg/RSaMRzg)
|
||
[](https://www.reddit.com/r/PlayCanvas)
|
||
[](https://x.com/intent/follow?screen_name=playcanvas)
|
||
|
||
| [SuperSplat Editor](https://superspl.at/editor) | [User Guide](https://developer.playcanvas.com/user-manual/gaussian-splatting/editing/supersplat/) | [Blog](https://blog.playcanvas.com) | [Forum](https://forum.playcanvas.com) |
|
||
|
||
SuperSplat Editor 是一款免费开源工具,用于检查、编辑、优化和发布 3D Gaussian Splats(3D 高斯泼溅)。它基于 Web 技术构建,在浏览器中运行,因此无需下载或安装任何内容。
|
||
|
||
该工具的在线版本可在以下地址访问:https://superspl.at/editor
|
||
|
||

|
||
|
||
要了解更多 SuperSplat 的使用方法,请参阅 [用户指南](https://developer.playcanvas.com/user-manual/gaussian-splatting/editing/supersplat/).
|
||
|
||
## 本地开发
|
||
|
||
要为 SuperSplat 搭建本地开发环境,请确保已安装 [Node.js](https://nodejs.org/) 18 或更高版本。请按以下步骤操作:
|
||
|
||
1. 克隆仓库:
|
||
|
||
```sh
|
||
git clone https://github.com/playcanvas/supersplat.git
|
||
cd supersplat
|
||
```
|
||
|
||
2. 安装依赖:
|
||
|
||
```sh
|
||
npm install
|
||
```
|
||
|
||
3. 构建 SuperSplat 并启动本地 Web 服务器:
|
||
|
||
```sh
|
||
npm run develop
|
||
```
|
||
|
||
4. 打开浏览器标签页,并确保在 Network 面板中禁用网络缓存,同时清除其他应用缓存:
|
||
|
||
- 在 Safari 中,可使用 `Cmd+Option+e` 或 开发(Develop)→ 清空缓存(Empty Caches)。
|
||
- 在 Chrome 中,请在 Application(应用)→ Service workers 标签页中启用 "Update on reload"(重新加载时更新)和 "Bypass for network"(绕过网络)选项:
|
||
|
||
<img width="846" alt="Screenshot 2025-04-25 at 16 53 37" src="https://github.com/user-attachments/assets/888bac6c-25c1-4813-b5b6-4beecf437ac9" />
|
||
|
||
5. 访问 `http://localhost:3000`
|
||
|
||
当检测到源代码变更时,SuperSplat 会自动重新构建。只需刷新浏览器即可查看你的更改。
|
||
|
||
## 本地化 SuperSplat Editor
|
||
|
||
当前支持的语言可在此处查看:
|
||
|
||
https://github.com/playcanvas/supersplat/tree/main/static/locales
|
||
|
||
### 添加新语言
|
||
|
||
1. 在 `static/locales` 目录中添加新的 `<locale>.json` 文件。
|
||
|
||
2. 在此处将 locale 添加到列表中:
|
||
|
||
https://github.com/playcanvas/supersplat/blob/main/src/ui/localization.ts
|
||
|
||
### 测试翻译
|
||
|
||
要测试你的翻译:
|
||
|
||
1. 运行开发服务器:
|
||
|
||
```sh
|
||
npm run develop
|
||
```
|
||
|
||
2. 打开浏览器并访问:
|
||
|
||
```
|
||
http://localhost:3000/?lng=<locale>
|
||
```
|
||
|
||
将 `<locale>` 替换为你的语言代码(例如 `fr`、`de`、`es`)。
|
||
|
||
## 贡献者
|
||
|
||
SuperSplat 离不开我们出色的开源社区:
|
||
|
||
<a href="https://github.com/playcanvas/supersplat/graphs/contributors">
|
||
<img src="https://contrib.rocks/image?repo=playcanvas/supersplat" />
|
||
</a>
|