I’m currently using an extended version of the point gaussian mapper.
Unfortunately, the current mapper on VTK master uses the geometry shader but it should be fairly easy to migrate to an instancing approach (it could be more performant too).
Other than that I’m also planning to use a compute shader to sort the index buffer by depth.
It’s much more performant to do it on the GPU to modify the IBO in place and avoid a reupload.
Alternatively, this step could be done on the CPU (and there’s already a vtkDepthSortPolyData
for that), but for cases with several millions of points (there’s 6M+ points in the video) that’s not an acceptable solution.