TABI: Tight and Balanced Interactive Atlas Packing
Floria Gu, Nicholas Vining, Alla Sheffer
TL;DR
TABI targets the problem of packing 2D charts into fixed-size atlases at interactive frame rates while minimizing downscaling. It introduces a GPU-based fold-and-push method that achieves both tightness and balance by (i) using two chart shape proxies to compact horizontal gaps and (ii) employing knee-aware, dynamic folding to balance atlas usage. The approach yields packings with significantly reduced downscaling compared to prior interactive methods and approaches offline quality, while maintaining interactive runtimes (around 5 ms on average and under 15 ms for the vast majority of inputs). On a large corpus of 8,386 chart sets, TABI reduces the stretch gap to offline solutions by about 48% on average, and remains orders of magnitude faster than offline alternatives, enabling high-quality texture atlases for interactive applications.
Abstract
Atlas packing is a key step in many computer graphics applications. Packing algorithms seek to arrange a set of charts within a fixed-size atlas with as little downscaling as possible. Many packing applications such as content creation tools, dynamic atlas generation for video games, and texture space shading require on-the-fly interactive atlas packing. Unfortunately, while many methods have been developed for generating tight high-quality packings, they are designed for offline settings and have running times two or more orders of magnitude greater than what is required for interactive performance. While real-time GPU packing methods exist, they significantly downscale packed charts compared to offline methods. We introduce a GPU packing method that targets interactive speeds, provides packing quality approaching that of offline methods, and supports flexible user control over the tradeoff between performance and quality. We observe that current real-time packing methods leave large gaps between charts and often produce asymmetric, or poorly balanced, packings. These artifacts dramatically degrade packing quality. Our Tight And Balanced method eliminates these artifacts while retaining Interactive performance. TABI generates tight packings by compacting empty space between irregularly shaped charts both horizontally and vertically, using two approximations of chart shape that support efficient parallel processing. We balance packing outputs by automatically adjusting atlas row widths and orientations to accommodate varying chart heights. We show that our method significantly reduces chart downscaling compared to existing interactive methods while remaining orders of magnitude faster than offline alternatives.
