scraping every room of rc3 world
- scrapes every room
- finds links to more rooms (function
scanForMapUrls
) - generates screenshots (function
generateScreenshot
)
- Uses force-directed graph layouting to arrange all rooms in one map.
- Starts with a rough layout and gradually increases the repulsion forces to prevent overlaps.
- The result is saved by
exportVRT()
as images/map.vrt in a VRT (GDAL Virtual) format
- Uses
gdal_translate
to merge all the room images described inmap.vrt
as a large GeoTIFF, since GeoTIFF can handle the size of 131'072 x 131'072.
- Uses
gdal2tiles.html
to split and merge the GeoTIFF into a tree of map tiles.
- Reduces the size of the tile tree down to 20% by:
- deleting all empty tiles (black tiles with the same md5 hash). Leaflet takes care of missing tiles by using the layer option
errorTileUrl
, - using
pngquant
to reduce the file size of the remaining tiles.
- deleting all empty tiles (black tiles with the same md5 hash). Leaflet takes care of missing tiles by using the layer option