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
November 29, 20260
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
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- 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 ProblemsSample 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...