Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Sorting 3D splats using CUDA

This project is a small Python/CUDA experiment for learning one basic idea behind 3D Gaussian Splatting: sorting Gaussians by depth on the GPU.

The demo generates a small set of 3D Gaussians, computes their camera-space depth using CUDA, sorts them, and visualizes the result in Python.


Preview

Sorted 3D Gaussians


Pipeline

Python

  1. Generate 50 Gaussian centers in 3D.
  2. Assign each Gaussian a radius/scale and color.
  3. Send the data to the GPU using CuPy.

CUDA

  1. Compute the depth of each Gaussian from the camera.
  2. Sort the Gaussians by depth on the GPU.

Python

  1. Read the sorted data back.
  2. Visualize the sorted Gaussians.

Why This Matters

Depth sorting is important for splatting and transparency because farther Gaussians are usually drawn before nearer ones.

This toy example does not implement the full 3D Gaussian Splatting renderer. It only focuses on a beginner-friendly version of the data flow:

Generate Gaussians → Compute Depth on GPU → Sort → Visualize

About

Sorting 3D splats using CUDA

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages