Hi, I wanted to fly through the world in Virtual Reality and would like to share the result: osm4vr demo - Fly through the world in VR with OSM map data
The project consists of a few components to show OpenStreetMap’s 3d buildings and map tiles inside the browser, especially browsers of VR headsets supporting the A-Frame Javascript library. It ended up very similar to KaiRo’s vrmap from which I’ve taken a lot of inspiration: GitHub - KaiRo-at/vrmap: Virtual Reality Map (WebVR experiment)
A few major differences compared to vrmap:
- Supports both static geojson assets (e.g. downloads from Overpass API) and loading data dynamically while moving around
- Components are easy to configure and can be used independently, e.g. to embed just a map or just buildings
- A search box allows to find a place by name (using nominatim)
- Handles OSM simple 3d buildings (mostly), so e.g. the Berlin TV tower is more than just a column
- You can use hand controllers to flap your wings in VR
- However, some features are currently missing, e.g. trees are not supported and movement controls are more limited
It’s still quite rough around the edges but may already be interesting for others, so would love your feedback, suggestions or concerns, e.g. regarding its use of OSM services.
The code is at GitHub - ctrlw/osm4vr
I also plan to add links to the OSM wiki pages “3D” and “A-Frame”