StyleCity: Large-Scale 3D Urban Scenes Stylization with Vision-and-Text Reference via Progressive Optimization

Yingshu Chen, Huajian Huang, Tuan-Anh Vu, Ka-Chun Shum, Sai-Kit YeungarXiv 2024

TL;DR

StyleCity is the first vision-and-text-driven framework designed specifically to stylize large-scale 3D urban scenes. By leveraging a neural texture field and a progressive, semantics-aware optimization strategy, it transforms raw 3D city meshes into visually captivating environments—complete with style-consistent, high-resolution 360-degree skies—while maintaining structural photorealism.

What Problem Does This Paper Address?

Creating high-quality virtual urban environments is a cornerstone of modern video games, VR, and virtual production. However, the traditional workflow is a bottleneck: it requires laborious manual material design and meticulous lighting setups for every single building and street.

While 2D style transfer (like turning a photo into a Van Gogh) is well-established, lifting this to 3D is notoriously difficult, especially at the scale of a city. Existing 3D stylization methods typically focus on single objects or indoor rooms. When applied to large-scale urban scenes, they often fail due to:

  1. Scalability: Explicitly optimizing high-resolution textures for thousands of buildings is computationally prohibitive.
  2. View Planning: Simple "orbit" camera paths don't cover the complex occlusions of a city grid.
  3. Semantic Mismatch: Global style transfer might accidentally apply "sky" colors to "roads" or "windows," leading to a messy, unrealistic look.

Methods

The authors introduce StyleCity, a pipeline that moves away from explicit texture optimization toward a more flexible Neural Texture Field.

1. Neural Texture Field Representation

Instead of a massive image file, the scene's appearance is modeled as a continuous function using a Multi-Layer Perceptron (MLP) with hash grid-based feature encoding. This representation is compact (achieving ~90% compression) and supports arbitrary resolution rendering.

2. Pivot-Based View Planning

To ensure every nook and cranny of the city is stylized, the system samples camera positions along the faces of the scene's bounding box, pointing them at centroids of subdivided sub-regions. This "pivot" approach provides much better surface coverage than standard methods.

3. Multi-Scale Progressive Optimization

A key innovation is the "zoom-in" training strategy. The system starts with a wide Field of View (FoV) to capture global atmosphere and progressively narrows the FoV to focus on high-frequency details like window frames and logos.

4. Semantics-Aware Style Loss

To prevent "style bleeding," StyleCity uses 2D-to-3D semantic segmentation. It ensures that "buildings" in the 3D scene only pull style features from "buildings" in the reference image. If a class (like "trees") is missing in the style reference, the system uses a Semantic Hierarchical Re-match to find the closest logical match (e.g., matching "trees" to "road" luminance).

5. Style-Aligned Sky Synthesis

Finally, the framework uses a modified Stable Diffusion pipeline to generate a style-consistent, 360-degree omnidirectional sky, providing a harmonic background for the stylized foreground.

Fig. 1: 3D city stylization in magic times of a day. Our proposed novel StyleCity framework can automatically stylize the textured meshes of large-scale urban scenes and generate harmonic omnidirectional sky backgrounds in a controllable manner with input style prompts, i.e., image and text references. Our effective solution has many potential applications, such as making city exploration in Google Earth a more per- sonalized and visually captivating experience.

Datasets

The researchers evaluated StyleCity on UV-textured models of five major cities—London, Sydney, New York, Hong Kong, and Singapore—collected via the Google 3D Tiles API. Each model spans roughly 0.5km x 0.5km. For style references, they used city-view evaluation datasets and text-guided synthesis models to generate diverse prompts like "Cyberpunk 2077" or "Neo-Impressionism."

Key Insights and Ideas

  • Progressive Scaling is Essential: Without the progressive zoom-in during optimization, the resulting textures remain blurry. The multi-scale approach is what allows the model to "learn" fine-grained details like lit windows.
  • Semantic Hierarchy Solves Data Gaps: You can't always find a style image that contains every object in your 3D scene. The hierarchy graph (e.g., cars and people sharing road illumination) allows the system to remain robust even with imperfect references.
  • Neural Fields > Explicit Textures: By treating texture as a coordinate-based neural function, the system avoids the "out-of-memory" issues that plague high-resolution mesh stylization.

Key Results

StyleCity was compared against state-of-the-art baselines including StyleMesh, ARF, and InstructN2N.

  • Quantitative: StyleCity achieved the highest scores in edge-SSIM (0.623) and CLIP-based style matching (0.244), significantly outperforming baselines that often produced blurry or non-photorealistic results.
  • Qualitative: User studies showed a strong preference for StyleCity, with scores of 4.58/5 for content preservation and 4.57/5 for style matching.
  • Efficiency: The neural texture field allows for high-quality results that can be "baked" back into standard UV maps for real-time rendering in conventional engines.

Limitations and Future Work

While powerful, StyleCity has a few hurdles:

  • Abstract Prompts: The system sometimes struggles with highly abstract text prompts that don't map clearly to visual features.
  • Mesh Quality: The final output is still dependent on the quality of the input 3D reconstruction; if the original mesh is broken, the stylization can only do so much to hide it.
  • Future Directions: The authors suggest exploring more complex material properties (like PBR maps) rather than just RGB textures to further enhance realism for virtual production.

Summary updated

BibTeX
@misc{chen2024stylecity,
  author = {Yingshu Chen and Huajian Huang and Tuan-Anh Vu and Ka-Chun Shum and Sai-Kit Yeung},
  title = {{StyleCity: Large-Scale 3D Urban Scenes Stylization with Vision-and-Text Reference via Progressive Optimization}},
  year = {2024},
  eprint = {2404.10681},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.10681},
}
Figure