can you explain how did you o about doing the 3d rendering using OSM data..you said you ae using opengl but I would like to know where to start from. Thanks
@suissehop To do the 3d rendering I first generated a set of map tiles using mapnik. There are some good instructions on doing this part in the developers section of the OSM web site. Basically you need a database with all the data, a program is then used to render the images. This is most easily done in Linux. I did it in a virtual machine because I didn't have a Linux box. The images can be downloaded as is if you are happy with their tiles. It is pretty fiddly doing it yourself.
@suissehop The tiles are used as textures to render surfaces in an openGL scene. When moving around in the scene the tiles change so that there aren't too many in memory at a time. This is about 10000 lines of c++ code. Probably a bit bloated. There may be simpler ways in other languages..
@gptrebbin Thanks buddy for replying. Yes planet OSM tiles are around 11GB in size. So your application is running on linux using opengl. Can you reference some links to documentations on how to start coding such cool apps? I am using OSM for web app and I want to convert these tiles into 3d using php. So I need guidance to start in a right manner rather than going here and there. Thanks again
can you explain how did you o about doing the 3d rendering using OSM data..you said you ae using opengl but I would like to know where to start from. Thanks
suissehop 1 year ago
@suissehop To do the 3d rendering I first generated a set of map tiles using mapnik. There are some good instructions on doing this part in the developers section of the OSM web site. Basically you need a database with all the data, a program is then used to render the images. This is most easily done in Linux. I did it in a virtual machine because I didn't have a Linux box. The images can be downloaded as is if you are happy with their tiles. It is pretty fiddly doing it yourself.
gptrebbin 1 year ago
@suissehop The tiles are used as textures to render surfaces in an openGL scene. When moving around in the scene the tiles change so that there aren't too many in memory at a time. This is about 10000 lines of c++ code. Probably a bit bloated. There may be simpler ways in other languages..
gptrebbin 1 year ago
@gptrebbin Thanks buddy for replying. Yes planet OSM tiles are around 11GB in size. So your application is running on linux using opengl. Can you reference some links to documentations on how to start coding such cool apps? I am using OSM for web app and I want to convert these tiles into 3d using php. So I need guidance to start in a right manner rather than going here and there. Thanks again
suissehop 1 year ago
@suissehop sorry, can't help you with that one. I don't really know much about php.
gptrebbin 1 year ago