UnityTriangleSplatting is a Unity package for visualizing triangle splats from COFF files, inspired by the Triangle Splatting project. It supports chunked loading, frustum culling, and optional mesh collider generation for interactive exploration of large triangle datasets.
- Load and render
.off
(COFF) triangle files - Chunk-based loading for performance
- Frustum culling for real-time optimization
- Optional mesh collider generation
- Vertex color support for per-vertex shading
💡 You can drag and drop the TriangleSplatRenderer prefab in your scene and your file will be loaded at runtime.
- Clone this repository:
git clone https://github.com/KillianCartelier/UnityTriangleSplatting.git
- Open your Unity project.
- Download the
TriangleSplatUnity.unitypackage
file from the repository. - In Unity, go to
Assets > Import Package > Custom Package...
- Select the downloaded
.unitypackage
file and import all assets.
- Drag and drop the TriangleSplatRenderer prefab in your scene.
- Set the path to your
.off
file. - Press Play to visualize the triangle splats in the scene.
- Unity 2022.3+ (tested with Unity 6 beta)
- A COFF file with triangle and color data
- Runtime
.off
file loader via UI - Support for mesh Export
This project is licensed under the MIT License.
Contributions are welcome! Feel free to:
- Open issues for bugs or suggestions
- Submit pull requests with improvements
- Share your use cases and feedback