Bin Gaussian Splats Into Screen Tiles By Depth

Last updated: November 29, 2026

Quick Overview

Given projected Gaussian splats as (id, center_x, center_y, radius, depth) and a screen of width by height pixels split into square tiles, return for every touched tile the splat ids sorted front to back, skipping splats behind the camera or fully off screen.

Luma AI
Coding & Algorithms
Software Engineer
Luma AI
November 29, 2026
Software Engineer
Onsite
Coding & Algorithms
Medium

0

0

0 solved


Given projected Gaussian splats as (id, center_x, center_y, radius, depth) and a screen of width by height pixels split into square tiles, return for every touched tile the splat ids sorted front to back, skipping splats behind the camera or fully off screen.

Luma's 3D capture work uses Gaussian splatting, whose fast rasterizers bin splats into tiles and sort them by depth before alpha blending. The interviewer checks bounding-box to tile math, clipping, and whether you see why per-tile sorting enables front-to-back compositing with early termination.

What the Interviewer Expects
  • Convert a circle's bounding box into an inclusive tile range
  • Clip ranges to the screen and drop fully off-screen splats
  • Cull splats with non-positive depth
  • Sort each tile's list by depth with a stable tie rule
  • Explain the cost when splats are huge
Key Topics to Cover
Spatial binning
Sorting
Rasterization
Gaussian splatting
Clipping
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • How does the GPU version avoid per-tile Python lists (key = tile id and depth, one global radix sort)?
  • How would you use a tighter footprint than the bounding square of a 3-sigma ellipse?
  • Why does front-to-back order allow stopping once accumulated opacity is near 1?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

Inputs: splats (id, cx, cy, r, depth) in pixel space, screen width x height, tile size T. A splat touches every tile overlapping its square [cx-r, cx+r] x [cy-r, cy+r]. Output `{(tx, ty): [ids...

High-Level Design

For each visible splat compute the tile index range floor((cx-r)/T) .. floor((cx+r)/T) in x and the same in y, clamp to [0, tiles-1], and append (depth, id) to each tile. Then sort each tile. Us...


Submit Your Answer
Markdown supported

Related Questions