Blender V5.3
draw_gsplat_lib.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  draw::gsplat::AxisTuple
struct  draw::gsplat::Gaussian
struct  draw::gsplat::SplatShape
struct  draw::gsplat::PointShape
struct  draw::gsplat::ShapeResource

Namespaces

namespace  draw
namespace  draw::gsplat
namespace  draw::gsplat::detail

Functions

template<typename T>
void draw::gsplat::detail::swap (T &a, T &b)
template void draw::gsplat::detail::swap< float > (float &, float &)
template void draw::gsplat::detail::swap< float2 > (float2 &, float2 &)
float2 draw::gsplat::detail::pack_normal_octahedral (float3 N)
float3 draw::gsplat::detail::unpack_normal_octahedral (float2 p)
float4 draw::gsplat::detail::unpack_quaternion_3_to_4 (float3 v)
float3 draw::gsplat::detail::unpack_gaussian_mean (uint4 pack, ScalingRange data_range)
Quaternion draw::gsplat::detail::unpack_gaussian_rotation (uint4 pack)
float3 draw::gsplat::detail::unpack_gaussian_scale (uint4 pack, ScalingRange data_range)
float draw::gsplat::detail::unpack_gaussian_opacity (uint4 pack)
uint3 draw::gsplat::detail::slice_tuple_xyzn (uint t)
uint3 draw::gsplat::detail::slice_tuple_nxyz (uint t)
uint3 draw::gsplat::detail::slice_tuple_xnyz (uint t1, uint t2)
uint3 draw::gsplat::detail::slice_tuple_xynz (uint t1, uint t2)
uint draw::gsplat::detail::get_shape_id (uint vert_id)
bool draw::gsplat::detail::get_shape_winding_ccw (uint vert_id)
float2 draw::gsplat::detail::get_shape_offset (uint vert_id)
float3x3 draw::gsplat::get_rot_scale_mat (Quaternion rotation, float3 scale)
float3x3 draw::gsplat::get_covmat (Quaternion rotation, float3 scale)
float3 draw::gsplat::project_gaussian (ObjectMatrices object, ViewMatrices view, Gaussian gs)
AxisTuple draw::gsplat::covmat_to_axes (float3 covmat_2d_v)
float3 draw::gsplat::get_planar_normal (Quaternion rotation, float3 scale)
float draw::gsplat::evaluate_gaussian (float2 x_min_mu, float opacity)

Detailed Description

Draw interfaces, packing/unpacking and data loading code for drawing gsplats. For most compute work, refer to draw_gsplat.bsl.hh.

References:

[ewas2002] Matthias Zwicker et al. EWA Splatting IEEE TVCG 2002 https://www.cs.umd.edu/~zwicker/publications/EWASplatting-TVCG02.pdf

[octa2017] Rune Stubbe Octahedral Encoding https://www.shadertoy.com/view/Mtfyzl (link is not author's source)

[3dgs2023] Bernhard Kebl, Georgios Kopanas et al. 3D Gaussian Splatting for Real-Time Radiance Field Rendering ACM Transactions on Graphics (SIGGRAPH 2023) https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/

[kwok2024] Kevin Kwok WebGL 3D Gaussian Splat Viewer (MIT License) https://github.com/antimatter15/splat

[gspt2026] Joris Rijsdijk et al. Gaussian Point Splatting ACM Transactions on Graphics (SIGGRAPH 2026) https://jorisar.nl/gaussian_point_splatting/

Definition in file draw_gsplat_lib.bsl.hh.