高斯泼溅查看器
splat (WebGL Gaussian Splat Viewer),Kevin Kwok (antimatter15),2023 年

正在布展…
它是怎么做的
- 第 1 步每个高斯点存储位置、缩放、旋转四元数、颜色和不透明度,压缩成紧凑二进制
- 第 2 步Web Worker 根据相机视线方向对所有点做深度计数排序
- 第 3 步每个点以实例化四边形绘制,顶点着色器把 3D 协方差投影成屏幕上的 2D 椭圆
- 第 4 步片元着色器按高斯衰减计算 alpha,从后往前混合
- 第 5 步文件通过流式 fetch 分块读取,边加载边渲染
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Load a binary array of splats where each entry stores position, scale, rotation quaternion, RGBA colour. In a worker, compute each splat's 3D covariance from scale and rotation, and on every camera change sort splat indices by view depth with a 16-bit counting sort, then post the order back. Render one instanced quad per splat; in the vertex shader project the covariance with the Jacobian of the perspective projection to get a 2D ellipse and size the quad to about three sigma. In the fragment shader compute alpha as opacity times exp(-0.5 d^T Σ^-1 d) and blend back to front with premultiplied alpha.
档案
性能开销
视觉强度
实现难度
尺度为策展判断(1 到 5),用于比较和推荐。
核实记录:Opened https://antimatter15.com/splat/ (200, title 'WebGL Gaussian Splat Viewer'); repo antimatter15/splat exists, licence MIT via GitHub API.


