This is an example of OpenStreetMap data viewer implemented based on the OpenSceneGraph library.
Main idea of this small project is to visualize urban areas of large cities with a single instanced box.
As input data OpenStreetMap shapefiles and pbf were converted to tiled LODs with instanced textures attached to box geometry underneath.
Ground layer was also generated based on OpenStreetMap data with a separate off-screen tool.
Additionally two major effects were applied:
-PSSM shadowing which is an improved technique inherited from the OpenSceneGraph project. Instead of N-parallel split passes we can use a single Layered pass which is rendered through FBO into Texture2DArray.
-Ambient Occlusion adapted to OpenSceneGraph from this project: https://github.com/nvpro-samples/gl_ssao
Before first launch:
-As an addition to the project one city model is included. Unpack .zip file first.
-Set Command line: --city London
If you need more info feel free to contact me at marcin.hajder [at] gmail.com