arXiv:2610.31565cs.CVOct 2026

Manuscript Offprint

arXiv:2610.31565

Squaring-the-Sphere: Distortion-Free and Seamless Panorama Generation via CubeAtlas

Xuhui Zuo, Chenjie Cao, Tengfei Wang, Junta Wu, Yisu Zhang, Chunchao Guo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generating 360° panoramas requires both local perspective fidelity and global spherical continuity. Existing representations face a trade-off: equirectangular projection (ERP) enables seamless panorama modeling but suffers from severe distortion and a domain gap to pre-trained image generators, whereas cubemaps preserve perspective geometry but often produce inconsistent faces and visible seams. We present SQUARING-THE-SPHERE, a panoramic image generation framework built on a novel representation CubeAtlas, which unfolds all cubemap faces into a single compact canvas. By arranging orientation-aligned, rotated polar regions alongside the equatorial faces, this representation preserves the perspective geometry of cubemaps while organizing the cross-face relationships required for seamless panorama assembly. It further enables a pretrained diffusion transformer to model the complete panorama jointly in a single pass, without altering the backbone architecture or positional encoding. While CubeAtlas has a token count comparable to ERP, its structured layout makes many dense attention interactions unnecessary. We therefore introduce a layout-aware sparse attention mask that preserves the interactions required for panorama continuity while removing geometrically irrelevant token pairs. As a result, CubeAtlas achieves better quality than ERP modeling with lower attention computation. Furthermore, we introduce a training-free super-resolution technique and a fusion scheme that enhance fine details in distortion-free perspective space before achieving the final ERP panorama. Experiments on various benchmarks demonstrate that our method improves geometric fidelity, cross-view consistency, and high-resolution visual quality over previous methods.

1 INTRODUCTION

360° panoramas serve as a fundamental visual medium for a broad range of immersive applications, including virtual and augmented reality, gaming, telepresence, and 3D world modeling (Hunyuan-World et al., 2025; HY-World Team et al., 2026; World Labs, 2025; Ji et al., 2026; Jia et al., 2026). Recent advances in image generative models have substantially improved the realism, diversity, and controllability of perspective image synthesis (Esser et al., 2024; Black Forest Labs, 2024; Wu et al., 2025; Cao et al., 2025). However, how to transfer the powerful generative priors learned in perspective space to panorama generation remains an open challenge, as a panorama must simultaneously preserve local perspective fidelity and maintain globally coherent, seamless content over the entire sphere (Figure 1).

In this paper, we identify the key challenge as selecting a panoramic representation compatible with pre-trained image priors. The two most common choices are equirectangular projection (ERP) and cubemaps. ERP represents the scene on a single equirectangular canvas, facilitating joint modeling of the entire panorama (Zhang et al., 2024; Feng et al., 2023; Wu et al., 2026; Huang et al., 2026). However, its non-uniform spherical projection severely stretches polar regions, introduces geometric distortion, and departs from the perspective-image distribution learned by modern generators (Liang et al., 2026). Cubemaps avoid ERP's polar stretching by decomposing the sphere into six perspective faces (Tang et al., 2023; Kalischek et al., 2025). Although methods such as CubeDiff jointly model these faces through cross-face attention, preserving spatial continuity across face boundaries remains challenging. Therefore, unifying ERP's global coherence with cubemaps' perspective fidelity remains a central problem for high-quality panorama generation.

(a) Sphere Panorama

(b) Equirectangular Panorama

Figure

(c) Cube Map

(d) CubeAtlas (Ours)

Zenith (Polar)

Cross-Face Boundary

Zenith (Polar)

Cross-Face Boundary

Figure 1: SQUARING-THE-SPHERE reconciles global panorama continuity with perspective-face geometry. Upper: ERP represents the full panorama on a single canvas but severely stretches the polar regions; cubemaps preserve perspective geometry but introduce disconnected face boundaries. CubeAtlas packs the four equatorial faces and rotated half-polar regions into a compact canvas, making their geometric adjacencies local for joint generation. Lower: SQUARING-THE-SPHERE produces seamless, geometrically coherent panoramas across diverse indoor and outdoor scenes, shown as ERP renderings with perspective crops.

To address this trade-off, we propose SQUARING-THE-SPHERE, a framework built on a new panorama representation termed CubeAtlas. Rather than generating an ERP image or six independent cube faces, SQUARING-THE-SPHERE unfolds the complete cubemaps into a single image-like grid and enables a diffusion transformer (DiT) (Peebles & Xie, 2023) to model the entire panorama jointly in one forward pass, as illustrated by the CubeAtlas layout in the upper part of Figure 1. By combining half-polar rotation and packing for seam-aware yet compact face alignment with layout-aware sparse attention for efficient token interactions, SQUARING-THE-SPHERE promotes cross-view continuity without the cost of dense global attention. Crucially, our representation is compatible with existing DiT-based image generators without modifying their backbone architectures or positional encodings, thereby inheriting large-scale 2D image priors with minimal adaptation.

Concretely, CubeAtlas re-arranges the six cubemap faces into a compact three-band, four-column layout, as detailed in Figure 2. For each equatorial orientation, it retains only the equator-adjacent half of the upper and lower faces, rotated to align with the corresponding equatorial view. This half-polar layout retains the local context needed to connect each polar region to its neighboring equatorial faces while avoiding redundant polar tokens; complementary rotated copies are later combined to reconstruct the complete polar faces. Polar rotation aligns polar content with the corresponding equatorial views, turning otherwise discontinuous cross-face relationships into locally organized neighborhoods within the grid, thereby facilitating seamless grid-to-ERP assembly. We further introduce layout-aware sparse attention that preserves the intra-face and continuity-related interactions required for panorama generation while masking irrelevant token pairs. Specifically, full attention is retained within each latitude band for horizontal consistency, while cross-latitude communication is mediated solely by the equatorial band: upper and lower regions never interact directly, and each equatorial region attends only to the polar regions on the same left–right or front–back axis. Finally, we reproject the ERP into overlapping perspective cube views and apply a training-free 4×4\times super-resolution model (Lu et al., 2026a) to each view. Low-frequency correction preserves coherent color and illumination in the final ERP, while linear blending of overlaps solves discontinuities.

We summarize three contributions of this paper as follows:

Figure

Figure 2: CubeAtlas representation. Four equatorial faces are unfolded into the central band. The upper and lower faces are rotated into orientation-aligned half-polar copies and placed next to their corresponding equatorial faces, forming a compact layout for joint generation.

• CubeAtlas representation is proposed that unfolds an entire cubemap into a single compact canvas with orientation-aligned half-polar regions. It retains only the equator-adjacent portions of rotated polar copies to reduce redundant polar tokens while preserving the context required for full polar reconstruction. The representation preserves the perspective geometry of cubemaps, while resolving cross-face discontinuities, enabling seamless panorama generation and direct reuse of 2D image priors from pre-trained DiT generators.

• Layout-aware sparse attention retains full attention within each latitude band while restricting cross-band interactions according to the spatial structure of CubeAtlas. This structured connectivity preserves the interactions needed for joint panorama modeling while avoiding unnecessary all-to-all attention among target tokens.

• Comprehensive evaluation. We evaluate panorama generation from complementary perspectives, including distributional fidelity, ERP and cubemap boundary continuity, equatorial and polar perceptual quality, geometric distortion, text adherence, and human preference. Extensive comparisons and controlled ablations across diverse benchmarks demonstrate consistent gains in cross-face continuity and spherical geometric fidelity.

References (38)