Project to create visual landmarks for x-plane, based on osm-data and custom models in blender
The process works in the good old way:
- The planet.osm.pbf (or rather the country extract) is downloaded then updated (osmconvert, osmupdate, osmfilter and osmosis are used for this purpose).
- Osm-xmls with buildings and parts are extracted, lists of the extracted osm-xml are created.
- Additionally, those buildings are checked for errors, error messages are saved into corresponding dat file.
- 3D models are created via Blender with Blender-OSM plugin, textures are baked.
- Experimental feature: 3D models are created also via osm2world (it seems that osm2world currently is much more buggy, but it supports windows:* tags)
- 3D models are exported from blender into x-plane format via xplane2blender plugin
- x-plane .obj files are converted to x3d files, since there is simple library to display them on web.
- x-plane scenery package is compliled.
- All that is copied to 3dcheck folder, where it can be displayed on web by Apache.
- Clone the git repostitory. Directory should be d:\_VFR_LANDMARKS_3D_RU
- Install dependencies (see below).
- Run run_validator.bat
- Enjoy.
You are free and open to do whatever you please. Most likely it is needed to change backslashes to slashes in paths, and rewrite bats to sh. Everything else should be cross platform. WINE may be an option too.
Known dependencies include:
- GNU Make
- touch utility
- aria2
- wget
- OsmTools (osmupdate, osmconvert, osmfilter)
- osmosis
- Python (currenty 3.12.7 is used)
- Some Python libraries are needed to be installed. requirements.txt could help.
- Blender 2.79b
- Blender-osm plugin (version 2.3.6 is used, compartible with Blender 2.79b )
- Patch for the Blender-osm plugin, to support additional roof shapes. Included into this repository.
- Blender Startup file (not sure where it is now)
- xplane2blender plugin (version 3.5.0 is used, compartible with Blender 2.79b)
- x-plane tools
- Osm2world
- Apache web server, for frontend.
- X-plane tools: https://developer.x-plane.com/tools/xptools/
- xplane2blender: https://xplane2blender.anzui.de/
- blender-osm plugin by vvoovv: https://gumroad.com/l/blender-osm