Skip to content

Valdrada

A digital twin simulator of New York City

Valdrada is an explicit world model of New York City, compiled from public municipal records. Its state is the city as typed records: the 1,085,937 buildings of the five boroughs, the streets, lanes and signals, and the vehicles and pedestrians that move on them. It renders that state in real time in the browser and in Unreal Engine 5, returns ground truth rendered from that state through a Python API modelled on CARLA, and supplies the control channels that sim-to-real video models condition on.

Quick start Tutorials Python API Download Demo in the browser Compiled city

A simulator frame at W 125th St and Lenox Ave in Harlem, with its semantic segmentation and depth

An explicit world model

A neural world model learns the state of its world and the rules that advance it as one latent representation, from which it predicts the next observation; that state cannot be read out or edited. Valdrada takes the other approach. Its state is explicit and persistent, off-screen entities included. A building carries its footprint, height, floor count, use and wall material from the city's footprint, tax-lot and facade inspection records; a lane carries its width, direction and speed limit from the street centreline database; a vehicle carries its pose, speed and route on the lane graph, and a pedestrian its route on the sidewalk graph. The rules that advance the state, signal phases with amber, car following by the Intelligent Driver Model, lane changes and pedestrian routing, are code that can be read and changed. The semantic labels, instance masks, boxes and depth of a frame are rendered from the same records as its image rather than estimated from it.

Recent work on world models separates the evolution of an explicit, persistent world state from the generation of observations1. Valdrada is the explicit side of that division for the five boroughs of New York City: the same state can be observed through the three.js renderer, through Unreal Engine 5 or Blender Cycles, and through a generative model.

Sim-to-real with world foundation models



A drive up Amsterdam Avenue below West 120th Street recorded with the Unreal Engine 5 client through the Python API: the RGB frame (top left), metric depth shown as inverse depth (top right), semantic segmentation in Cityscapes colours (bottom left) and an edge map computed from the RGB frame (bottom right), from one pose per step. 121 frames at 30 frames per second.

Generative video models can take over the appearance of a simulated frame while the simulator keeps the geometry, the motion and the labels. NVIDIA's Cosmos 3 Sim-Transfer model generates photorealistic video conditioned on simulator-rendered depth, segmentation, edge or blur control videos and a text prompt2, and the Cosmos-Transfer1 report notes that depth and segmentation are freely available from a computer-graphics simulator3. Valdrada renders these channels from the same state as each RGB frame, in both of its renderers.



The same drive through Cosmos3-Nano-Sim-Transfer: the Valdrada frame (top left) and the model's output conditioned on Valdrada's depth (top right), on its semantic segmentation (bottom left) and on edges computed from its RGB frame (bottom right), one control at a time, with one structured caption of the scene. 121 frames at 30 frames per second and 832 × 480, four sampling steps, seed 2025; about one minute of generation per video on one NVIDIA RTX 6000 Ada GPU.

The generated videos follow the layout and motion of their controls: the sedan ahead, the kerb, the street tree with its fence and the pedestrians on the sidewalk keep their places, so the simulator's boxes, instance masks and depth label the generated frames to the extent that the frames follow their control. The controls constrain different parts of the image. The edge-conditioned video keeps the stone retaining wall on the left, which the depth-conditioned video turns into a building facade, and the segmentation-conditioned video adds a lane marking that the simulated road does not have.

One drive, many appearances

A recorded drive fixes the controls; the caption sets the appearance. In each loop below the top left tile is the Valdrada frame, the top right tile is Cosmos 3 conditioned on edges computed from that frame with a caption of the scene in daylight, and the two bottom tiles are Cosmos 3 conditioned on Valdrada's depth with captions for another time of day or weather. Depth carries the geometry and the motion but no lighting, so the light, the weather and the content of signs and billboards come from the model; the street, the buildings' masses and the traffic come from the simulation.



Seventh Avenue through Times Square, driving south. Valdrada (top left); edges, daylight (top right); depth, blue hour (bottom left); depth, night after rain (bottom right).


Park Avenue toward the Helmsley Building, driving south behind a taxi. Valdrada (top left); edges, daylight (top right); depth, snowfall (bottom left); depth, golden hour (bottom right).


A residential street in Harlem near Lenox Avenue and West 125th Street. Valdrada (top left); edges, daylight (top right); depth, golden hour (bottom left); depth, rainy evening (bottom right). Each video: Cosmos3-Nano-Sim-Transfer, 121 frames at 30 frames per second, 832 × 480, four sampling steps, seed 2025.
world.apply_settings(valdrada.WorldSettings(synchronous_mode=True, fixed_delta_seconds=1 / 30))
lib = world.get_blueprint_library()
cameras = {kind: world.spawn_actor(lib.find(f"sensor.camera.{kind}"), pose)
           for kind in ("rgb", "depth", "semantic_segmentation")}

How it works

Public records, the compiled city, the real-time render and its ground truth for one block of Harlem

The city is compiled from public records. Building footprints come from NYC Building Footprints and are joined to the tax-lot database (PLUTO) for floors, use and year of construction, and to the facade inspection filings for the wall material. Each building is classified into a facade typology and dressed procedurally: windows on the recorded floor count, cornices, storefronts, fire escapes, stoops and rooftop equipment. Streets come from the city's centreline database with their recorded widths, lane counts, directions and speed limits. They become carriageways, kerbs, crosswalks, lane paint, bus lanes, and the lane and sidewalk graphs that traffic and pedestrians move on.

The compiler is a Node.js pipeline and the renderer is three.js on WebGL2, so nothing needs an engine build. Changing how the city looks or behaves is an edit to a JavaScript module and a page reload, and the city can be recompiled from the public records (Building from source).

Ground truth

RGB, semantic segmentation, instance segmentation with visible and amodal boxes, and depth for one step at W 120th St and Amsterdam Ave

Each synchronous step can return RGB, semantic segmentation in Cityscapes-compatible classes, instance segmentation with visible and amodal boxes, occlusion ratios and 3D poses, and metric depth. The labels are rendered from the same scene state as the image, so they need no annotation. The Python package writes COCO detection files directly, and the tutorials go from a first connection to a recorded dataset.

The five boroughs, streamed

The buildings of the five boroughs shaded by height, with the tile grid and the streaming radii around a camera in Harlem

The compiled city holds the buildings of the five boroughs, 1,085,937 in 3,532 tiles of 512 m. The client keeps the highest level of detail around the camera and draws coarser far-field tiles beyond it, so the city can be rendered on a laptop GPU.

Areas modelled in detail

Some areas go beyond the compiled records. On 125th Street, from Twelfth Avenue to the Harlem River, the frontages are built from per-building specifications (storeys, bays, materials, storefronts and signs) with a facade kit and a library of 35 CC0 material sets; the street surface, furniture and street life are laid out along the corridor. The Riverside Drive viaduct follows its published 1900 design, and the Manhattan Valley viaduct, the 1 train's 125th Street station, the Park Avenue Viaduct and the bridge approaches at the Harlem River are modelled to their documented dimensions, with the 1 train and Metro-North running on them. In Central Park, the relief comes from USGS 3DEP and the water bodies, paths and landmarks from OpenStreetMap; tree crowns are segmented by watershed on a vegetation index from NAIP near-infrared imagery, and the resulting 16,951 trees are assigned to 33 species groups fitted to the park's published composition. Towers over 45 m are rebuilt near the camera by a tower kit on the facade shader's grid, among them 111 West 57th with its ten setbacks and fluted piers. The Metropolitan Museum of Art, the American Museum of Natural History with the Rose Center and the Gilder Center, and the Guggenheim are modelled individually on their footprints, and the Statue of Liberty is a scan fitted to the Historic American Engineering Record's drawings (HAER NY-138).

Offline rendering

A recorded take can be exported to OpenUSD and rendered in Blender Cycles or Unreal Engine 5. client/tools/ar34/export/harvest.mjs boots the page as the film recorder does and writes the visible meshes, instance sets and camera samples of the take; usd_write.py turns this into USD layers. blender_take.py renders the frames in Cycles with the web client's materials rebuilt as node groups, baked facade windows with interiors, film-detail street trees and physical light; ue_take.py renders the same USD with Unreal's Lumen and Movie Render Queue, with master materials per family, CC0 layered materials, Nanite foliage and a cinematic preset. One city, three renderers describes the design, and the guides for Blender Cycles and Unreal Engine 5 take one shot through each renderer. For Unreal the city can also be built once, each 128 m cell as a table of kit instances and its own meshes in 1 km block packages over a shared material library, so that a shot is a cut of that build and needs only its take and its render (Building the city in Unreal).

Architecture

Public records are compiled into binary tiles; the client streams, simulates and renders them inside the simulation server, which the Python API drives over TCP

The compiler turns the public records into binary tiles. The client streams the tiles around the camera, dresses the facades, simulates traffic and pedestrians, and renders each frame with its ground truth. The same client runs in two hosts. In a browser, as on the Hugging Face Space, it is an interactive explorer. Inside the simulation server, an Electron application, it advances one fixed step per request and sends sensor data over TCP to the Python API (wire protocol).

The Unreal Engine 5 client, ValdradaUE, runs the simulation in a headless core and renders it in a packaged Unreal Engine 5 application connected to that core: the renderer streams the city's 128 m cells round the cameras the core names and returns the camera images, and the Python API and the wire protocol are the same (The Unreal Engine 5 client; Building the Unreal Engine 5 client).

Six frames from the simulator: Fifth Avenue, 125th Street, Times Square at night, Harlem brownstones, Williamsburg in the rain and Columbia's Low Library

Citation

Valdrada is developed and maintained by Mehmet Kerem Turkcan. If you use Valdrada, the compiled city or imagery rendered with it, please cite Valdrada itself:

@software{turkcan2026valdrada,
  author  = {Turkcan, Mehmet Kerem},
  title   = {{Valdrada}: a real-data, real-time digital twin of New York City},
  year    = {2026},
  version = {0.7.1},
  url     = {https://github.com/mkturkcan/valdrada}
}

  1. Z.-H. Huang, G. Lin, J. Lin, Y.-C. Huang, R. Yu, M. Niu, S. Yang, Y.-L. Liu, Y.-Y. Chuang, K. Zhang and Z. Wang. Programmable World Model. arXiv:2609.10540, 2026. ↩

  2. NVIDIA. Cosmos3-Nano-Sim-Transfer, model card, 2026. huggingface.co/nvidia/Cosmos3-Nano-Sim-Transfer. ↩

  3. NVIDIA. Cosmos-Transfer1: Conditional World Generation with Adaptive Multimodal Control. arXiv:2503.14492, 2025. ↩