3DGS Polygon File Format (PLY)
- is the standard file format for storing 3D Gaussian Splat data
- while PLY has been around since the 1990s as a format for storing 3D mesh data, its use in Gaussian Splatting represents a specialized application with unique characteristics and considerations
PLY File Contents
3DGS PLY files contain specialized properties for each Gaussian splat:
- Position (
x,y,z) - 3D location of the splat center - Scale (
scale_0,scale_1,scale_2) - size of the Gaussian along each axis - Rotation (
rot_0,rot_1,rot_2,rot_3) - quaternion representing splat orientation - Opacity - transparency/alpha value
- Spherical Harmonics Coefficients - view-dependent color encoding using two sets of properties:
- Direct Color Component (
f_dc_0,f_dc_1,f_dc_2) - the base color values (RGB) representing the 0th-order spherical harmonic coefficients. These define the primary color of the splat. - Higher-Order Coefficients (
f_rest_0throughf_rest_44) - additional spherical harmonic coefficients that encode how the color changes based on viewing direction. These 45 coefficients are distributed across higher-order bands:- 1st order - 3 coefficients × 3 color channels = 9 coefficients
- 2nd order - 5 coefficients × 3 color channels = 15 coefficients
- 3rd order - 7 coefficients × 3 color channels = 21 coefficients
- Direct Color Component (
PLY File Viewers
- https://playcanvas.com/viewer
- https://github.com/playcanvas/model-viewer
- https://sparkjs.dev/viewer/