TL;DR
This paper introduces sumo3Dviz, a lightweight, open-source Python pipeline for generating high-quality 3D visualizations of SUMO traffic simulations. It addresses the need for intuitive, human-perceivable traffic scenarios, bridging the gap between abstract 2D representations and complex, resource-intensive game engine solutions, enabling better communication and user studies.
What Problem Does This Paper Address?
Traffic microsimulation software like SUMO generates vast amounts of spatio-temporal data describing individual vehicle movements and interactions. While this data is invaluable for technical analysis, its raw output and standard 2D visualizations are often insufficient for applications requiring intuitive understanding, effective communication, or human-centered evaluation. Specifically, fields like mobility psychology, acceptance research, and virtual experience stated-preference experiments demand realistic 3D visualizations that accurately reflect how traffic scenarios are perceived by humans. Existing 3D visualization tools often fall into two categories: those that are too abstract (2D or simplified 3D) or those that are overly complex, requiring significant setup, proprietary software, and are not easily integrated into automated workflows. This leaves a gap for a tool that is both visually rich and easily accessible for scripting and reproducible research.
Methods
sumo3Dviz is a Python-based pipeline that directly processes standard SUMO simulation output logs (vehicle trajectories and signal states) to generate 3D renderings. Key methodological contributions include:
- Direct Processing: It avoids the need for co-simulation or complex data conversion by directly reading SUMO's
.rou.xml(trajectory) and.rou.xml(signal states) files. - Lightweight Rendering: It utilizes a Python framework for rendering, eschewing heavy game engines, which contributes to its speed and ease of installation.
- Trajectory Interpolation and Orientation Smoothing: A crucial technical challenge addressed is creating visually coherent motion from discrete simulation outputs. This involves:
- Angle Unwrapping: Correcting discontinuities in vehicle orientation angles around the 0°/360° boundary.
- Linear Interpolation: Upsampling the low temporal resolution of simulation data to a higher frame rate.
- Rolling-Window Smoothing: Applying a centered moving average to both position and orientation to create smoother, more natural vehicle movements.
- Velocity-Based Orientation Estimation: A refined method for estimating vehicle orientation based on movement direction, particularly for larger displacements, to ensure realistic turning behavior.
- Configurable Scene Graph: The 3D scene is built upon a customizable graph including cameras, lights, sky, ground, road network, static objects (buildings, trees, traffic lights), and moving objects (vehicles).
- Multiple Rendering Modes: Supports Eulerian (fixed external camera), Lagrangian (ego-centric, following a vehicle), Cinematic (predefined camera path), and Interactive (user-controlled navigation) modes.
Datasets
Not discussed in the paper. The paper focuses on a visualization pipeline that uses existing SUMO simulation outputs. A case study uses a demand-calibrated SUMO simulation of the Ronda de Dalt metropolitan highway in Barcelona, with data derived from Barcelona's Open Data portal BCN.
Key Insights and Ideas
- Bridging the Visualization Gap: The core insight is that there's a significant need for a tool that offers high-quality 3D visualization without the steep learning curve or resource demands of game engines.
sumo3Dvizfills this niche by being scriptable, platform-independent, and easily installable via pip. - Perceptual Relevance is Key: The paper strongly emphasizes that for human-centered studies (e.g., in mobility psychology), visualizations must go beyond abstract data representation to mimic real-world perception. This justifies the focus on realistic rendering and smooth, naturalistic vehicle motion.
- Smooth Motion is Non-Trivial: The detailed explanation of trajectory interpolation and orientation smoothing highlights that achieving visually convincing vehicle movement from discrete simulation steps is a significant technical challenge. The proposed multi-step smoothing process is a key contribution.
- Reproducibility and Automation: By being Python-based and configurable via YAML files,
sumo3Dvizis designed for integration into automated workflows and ensures reproducible results, which is vital for scientific research.
Key Results
- Functional Pipeline:
sumo3Dvizsuccessfully converts SUMO simulation outputs into high-quality 3D rendered videos. - Lightweight and Accessible: The tool is installable via pip, runs on multiple operating systems (Windows, macOS, Linux), and does not rely on proprietary software or game engines.
- Visually Coherent Motion: The trajectory interpolation and orientation smoothing techniques result in smooth, natural-looking vehicle movements, crucial for perceptual realism.
- Flexible Rendering: Supports various camera perspectives (external, ego-centric, cinematic, interactive) and is optimized for batch video generation.
- Case Study Demonstration: A case study on the Ronda de Dalt highway in Barcelona effectively showcases the tool's capabilities across different rendering modes and its application to realistic traffic scenarios. Rendering times are reported as 100-500 seconds per frame on a conventional laptop.
Limitations and Future Work
- Limitations:
- The paper acknowledges that the visual realism is dependent on the quality of provided 3D models and textures.
- While optimized for batch processing, the rendering time per frame (100-500s) might still be a bottleneck for very large-scale or real-time applications.
- The current implementation focuses on basic environmental context; more complex urban environments might require further development.
- Future Work:
- The authors suggest extending the tool with more advanced rendering features, such as dynamic lighting, weather effects, and more sophisticated vehicle models.
- Further integration with other simulation tools or real-time data streams could expand its applicability.
- Exploring more advanced techniques for procedural content generation could enhance the visual richness of simulated environments.
Summary updated