Overview of the Scene Generation Pipeline stages
masterThe pipeline consists of 8 distinct stages (0 through 7) that transform raw 3D tiles and OSM data into exported .glb models:
- Stage 0 (Preprocessing): Fetches, merges, and aligns Google 3D tiles, street view metadata, and OSM data.
- Stage 1 (Preliminary Steps): Fetches OSM geometry via the Blosm plugin (Overpass API) and constructs terrain geometry.
- Stage 2 (Texture Transfer): Transfers textures from masked 3D tiles to the constructed terrain and OSM geometry.
- Stage 3 (Texture Enhancement): Uses street view images to enhance building textures. This includes solving mappings, fetching images, and performing inpainting (using Lang_SAM to remove trees/pedestrians/vehicles) before projecting images onto buildings.
- Stage 4 (Combine Building and Terrain): Merges buildings, roofs, and terrain into a single Blender file.
- Stage 5 (Upscale the scene): Applies super-resolution to building and terrain textures.
- Stage 6 (Retrieve Map Annotations): Extracts building names and 3D AABB (Axis-Aligned Bounding Box) JSON annotations from OSM.
- Stage 7 (Postprocess and Export): Converts emissive textures to basic textures and exports the final models as
building.glb,terrain.glb, androofs.glb.