Introduction
The generation of large-scale, realistic 3D cities has long been a cornerstone of computer graphics and urban planning. However, extending these environments into the fourth dimension—time—introduces significant complexity. Generating "4D cities" requires not only high-fidelity static structures like skyscrapers and roads but also the seamless integration of dynamic elements, such as moving traffic, while maintaining temporal consistency across varying camera trajectories.
Existing generative models often struggle with three primary hurdles: the unbounded scale of urban environments, the structural sensitivity of human perception to architectural distortions (the "wobbly building" effect), and the difficulty of maintaining object permanence as time progresses. CityDreamer4D addresses these challenges by adopting a compositional approach, decoupling the scene into distinct, manageable components governed by specialized neural representations.
The Compositional Framework
CityDreamer4D moves away from treating the city as a monolithic entity. Instead, it utilizes a modular architecture designed to handle the unique geometric and textural properties of different urban elements.
Unbounded Layout and Traffic Generation
To achieve an "infinite" city, the model employs an Unbounded Layout Generator (ULG). Rather than generating 3D volumes directly, which is computationally expensive, the ULG uses a VQVAE and a transformer-based MaskGIT to produce 2D Bird’s-Eye-View (BEV) semantic maps and height fields. This 2D proxy allows for a sliding-window approach, enabling the generation of virtually endless urban layouts.
Building upon this layout, the Traffic Scenario Generator derives High-Definition (HD) maps to simulate realistic vehicle trajectories. By ensuring that vehicles adhere to lanes and intersections, the model creates a logically consistent flow of traffic that integrates naturally with the static environment.
Specialized Neural Fields
Once the layout is established, CityDreamer4D renders the scene using three specialized generators:
- City Background Generator: This module focuses on "stuff"—amorphous elements like roads, grass, and water. It utilizes generative hash grids, which provide an efficient method for mapping high-resolution textures across large-scale environments.
- Building Instance Generator (BIG): Architecture is characterized by repetitive patterns, such as windows and facades. To capture this, the BIG uses periodic positional embeddings, ensuring that buildings maintain structural regularity and realistic architectural details.
- Vehicle Instance Generator (VIG): To solve the problem of temporal flickering in dynamic objects, the VIG maps vehicles into a canonical feature space. By transforming 3D points into a local coordinate system before rendering, the model ensures that a vehicle's appearance remains consistent regardless of its movement or orientation.
Finally, a Compositor module merges these outputs into a single, coherent frame, handling the spatial relationships and occlusions between the background, buildings, and moving vehicles.
Data Strategy and Benchmarking
Training a model of this complexity requires diverse and high-quality data. The authors utilized a three-pronged data strategy:
- OSM Dataset: Real-world layouts and height fields from 80 cities were sourced from OpenStreetMap to provide a foundation for realistic urban planning.
- GoogleEarth: A collection of 24,000 real-world images with automated 3D instance annotations was used to train the model on realistic building textures and geometries.
- CityTopia: A new, high-quality synthetic dataset created in Unreal Engine 5. CityTopia includes 37,500 images with precise 2D/3D semantic and instance labels, providing a rigorous benchmark for 4D urban generation.
Results and Applications
CityDreamer4D demonstrates a significant leap in performance over previous state-of-the-art models like SceneDreamer and PersistentNature. In quantitative evaluations on the GoogleEarth dataset, CityDreamer4D achieved an FID of 96.83, a dramatic improvement over SceneDreamer’s 232.2. Furthermore, it attained a VBench score of 0.834, indicating superior motion smoothness and temporal stability in video generation.
Beyond simple generation, the model’s compositional nature enables advanced instance-level editing. Users can modify specific building heights, swap vehicle styles, or apply global stylizations (such as "Cyberpunk" or "Minecraft" themes) while maintaining perfect multi-view and temporal consistency.
Conclusion and Future Directions
CityDreamer4D represents a major advancement in the creation of digital twins and virtual environments. By decoupling static and dynamic elements and employing specialized neural representations, it achieves unprecedented scale and fidelity in 4D city generation. While current limitations include the computational overhead of rendering many individual instances and the lack of complex global illumination (e.g., dynamic reflections), the framework provides a robust foundation for future work. Expanding the diversity of dynamic agents to include pedestrians and cyclists will be a key step toward creating truly immersive, living digital cities.
Summary updated