playcanvas / supersplat
PlayCanvas / SuperSplat
The SuperSplat Editor is a free and open source tool for inspecting, editing, optimizing and publishing 3D Gaussian Splats. It is built on web technologies and runs in the browser, so there’s nothing to download or install. A live version of this tool is available at: https://superspl.at/editor To learn more about using SuperSplat, please refer to the User Guide.
SuperSplat 编辑器是一款免费且开源的工具,用于检查、编辑、优化和发布 3D 高斯泼溅(3D Gaussian Splats)。它基于 Web 技术构建,直接在浏览器中运行,无需下载或安装。该工具的在线版本地址为:https://superspl.at/editor。如需了解更多关于使用 SuperSplat 的信息,请参阅用户指南。
Local Development
本地开发
To initialize a local development environment for SuperSplat, ensure you have Node.js 18 or later installed. Follow these steps:
Clone the repository: git clone https://github.com/playcanvas/supersplat.git
cd supersplat
Install dependencies: npm install
Build SuperSplat and start a local web server: npm run develop
要初始化 SuperSplat 的本地开发环境,请确保已安装 Node.js 18 或更高版本。请按照以下步骤操作:
克隆仓库:git clone https://github.com/playcanvas/supersplat.git
进入目录:cd supersplat
安装依赖:npm install
构建 SuperSplat 并启动本地 Web 服务器:npm run develop
Open a web browser tab and make sure network caching is disabled on the network tab and the other application caches are clear: On Safari you can use Cmd+Option+e or Develop->Empty Caches. On Chrome ensure the options “Update on reload” and “Bypass for network” are enabled in the Application->Service workers tab: Navigate to http://localhost:3000 When changes to the source are detected, SuperSplat is rebuilt automatically. Simply refresh your browser to see your changes.
打开浏览器标签页,确保网络选项卡中的网络缓存已禁用,并清除其他应用程序缓存: 在 Safari 上,可以使用 Cmd+Option+e 或通过“开发”->“清空缓存”。 在 Chrome 上,请确保在“应用程序”->“Service workers”选项卡中启用了“Update on reload”和“Bypass for network”选项。 访问 http://localhost:3000。 当检测到源代码更改时,SuperSplat 会自动重新构建。只需刷新浏览器即可查看更改。
Localizing the SuperSplat Editor
本地化 SuperSplat 编辑器
The currently supported languages are available here: https://github.com/playcanvas/supersplat/tree/main/static/locales
当前支持的语言列表可在此处查看:https://github.com/playcanvas/supersplat/tree/main/static/locales
Adding a New Language
Add a new <locale>.json file in the static/locales directory.
Add the locale to the list here: https://github.com/playcanvas/supersplat/blob/main/src/ui/localization.ts
添加新语言:
在 static/locales 目录下添加一个新的 <locale>.json 文件。
将该语言环境添加到此处的列表中:https://github.com/playcanvas/supersplat/blob/main/src/ui/localization.ts
Testing Translations
To test your translations:
Run the development server: npm run develop
Open your browser and navigate to: http://localhost:3000/?lng=<locale>
Replace <locale> with your language code (e.g., fr, de, es).
测试翻译:
要测试您的翻译,请执行以下操作:
运行开发服务器:npm run develop
打开浏览器并访问:http://localhost:3000/?lng=<locale>
将 <locale> 替换为您的语言代码(例如 fr, de, es)。
Contributors
贡献者
SuperSplat is made possible by our amazing open source community:
SuperSplat 的成功离不开我们出色的开源社区: