Commit 6dce267
committed
3dgs-render: interactive 3DGS rendering pipeline, Filament+GUI integration
Compute shaders (GLSL -> SPIR-V/MSL via cmake/Open3DAddComputeShaders.cmake):
- gaussian_project.comp: project splats to 2D, emit tile sort entries with
subgroup-batched atomics; SH evaluation degree 1-2; visibility mask test
- gaussian_composite.comp: depth-aware rasterization; work-stealing tile
dispatch; binary-search tile boundaries; front-to-back alpha blend with
early transmittance exit; writes RGBA16F + depth
- gaussian_radix_sort_{histograms,scatter}.comp: 4-pass LSD radix sort using
subgroup prefix-sum (GL_KHR_shader_subgroup_arithmetic)
- gaussian_compute_dispatch_args.comp: GPU-side indirect dispatch args to
eliminate CPU readback stall after projection
GS rendering core (gaussian_splat/):
- GaussianSplatDataPacking: CPU->GPU packing (fp16 scales, snorm8 rotations,
sigmoid-preapplied opacity, bit-packed visibility mask)
- GaussianSplatPassRunner: backend-agnostic geometry + composite pass sequence
- GaussianSplatRenderer: per-view output lifecycle, Backend abstraction,
BeginFrame/RenderGeometryStage/RenderCompositeStage
- GaussianSplatVulkanBackend: Vulkan backend (Linux/Windows)
- GaussianSplatMetalBackend.mm: Metal backend (macOS)
- GaussianSplatDesign.md: design document
Filament integration (rendering/filament/):
- FilamentEngine: create GL shared context before Engine::create(); force GLX
on Linux (XWayland for Wayland sessions); pass native handle to Filament
- FilamentRenderer: GaussianSplatRenderer lifecycle; BeginFrame fire-and-forget
geometry stage; post-depth composite stage; Apple PostRedraw callback
- FilamentScene: per_object_gs_attrs_ / merged_gs_attrs_; RebuildMergedGaussianData();
HasNonGaussianVisibleGeometry(); ShowGeometry patches visibility mask in-place
- FilamentView: EnableViewCaching(); GetRenderTargetHandle()
- FilamentResourceManager: CreateImportedTexture() / CreateImportedMTLTexture()
for zero-copy GL/Metal texture import
- FilamentNativeInterop.mm: retrieve MTLDevice/MTLCommandQueue from PlatformMetal
- FilamentRenderToBuffer.h: forward-declare GaussianSplatRenderer member
(used by offscreen path in next PR)
- Remove GaussianSplatBuffers.cpp (replaced by GaussianSplatDataPacking)
GUI / visualizer:
- Application: pre-Engine GL context init; GLFW platform X11 force
- Window: Apple composite-complete callback -> PostRedraw()
- GuiVisualizer / O3DVisualizer: GS scene load, help dialog, fps HUD
- Draw.h/.cpp: GS-specific draw() options (sh_degree, antialias, RenderConfig)
- gui/CMakeLists.txt: open3d_add_compute_shaders() for GS shaders; remove
gaussianSplat.mat; add img_blit.mat
- visualization/CMakeLists.txt: add all GS source files to visualization_impl1 parent 6b969dd commit 6dce267
63 files changed
Lines changed: 6870 additions & 807 deletions
File tree
- cpp
- apps
- Open3DViewer
- open3d/visualization
- app
- gui
- Materials
- rendering
- filament
- gaussian_splat
- shaders
- utility
- visualizer
- python/open3d/visualization
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
226 | 237 | | |
227 | 238 | | |
228 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
56 | | - | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | | - | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | | - | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | | - | |
65 | | - | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | | - | |
68 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | | - | |
71 | | - | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | | - | |
74 | | - | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | | - | |
77 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | | - | |
80 | | - | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | | - | |
83 | | - | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | | - | |
86 | | - | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
93 | | - | |
94 | | - | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
98 | | - | |
| 104 | + | |
| 105 | + | |
99 | 106 | | |
100 | | - | |
| 107 | + | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
132 | | - | |
133 | | - | |
| 140 | + | |
134 | 141 | | |
135 | 142 | | |
136 | | - | |
| 143 | + | |
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
| |||
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
185 | | - | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
211 | 218 | | |
212 | 219 | | |
213 | 220 | | |
214 | | - | |
| 221 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | | - | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
88 | 113 | | |
89 | 114 | | |
90 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments