{"id":426,"date":"2019-05-01T06:17:45","date_gmt":"2019-05-01T06:17:45","guid":{"rendered":"https:\/\/rossedwards.co.uk\/blog\/?p=426"},"modified":"2019-11-18T09:08:50","modified_gmt":"2019-11-18T09:08:50","slug":"armory-blender-game-engine","status":"publish","type":"post","link":"https:\/\/rossedwards.co.uk\/blog\/2019\/05\/01\/armory-blender-game-engine\/","title":{"rendered":"Creating Virtual Terrains with &#8216;Armory&#8217; Blender plugin"},"content":{"rendered":"\n<p><a href=\"https:\/\/armory3d.org\/\">Armory3d<\/a> is a completely open source game engine that is fully integrated into Blender. Below is my first attempt at stitching a terrain mesh, layered with satellite\/flown imagery, making use of the excellent <a href=\"https:\/\/github.com\/domlysz\/BlenderGIS\">BlenderGIS<\/a> plugin. You can then simply export the project to an HTML5 application which can run on any browser.<\/p>\n\n\n<p><iframe loading=\"lazy\" src=\"https:\/\/itch.io\/embed\/418242\" height=\"167\" width=\"552\" frameborder=\"0\"><\/iframe><\/p>\n\n\n\n<p>See below a second attempt with some slightly higher resolution sat data, with some  improvements to control methods (detailed below). Use WASD keys &amp; left mouse button for controlling camera, sun direction and shadows can also be adjusted with keys &#8211; T,Y,G,H,B,N:<\/p>\n\n\n<p><iframe loading=\"lazy\" frameborder=\"0\" src=\"https:\/\/itch.io\/embed\/451209\" width=\"552\" height=\"167\"><\/iframe><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Another example including some building OSM data overlayed across the terrain:<\/p>\n\n\n<p><iframe loading=\"lazy\" frameborder=\"0\" src=\"https:\/\/itch.io\/embed\/415997\" width=\"552\" height=\"167\"><\/iframe><\/p>\n\n\n\n<p>I&#8217;m still working on perfecting the movement controls within these terrains, but using elements from the handy <a href=\"https:\/\/github.com\/armory3d\/logic_pack\">Logic packs<\/a> created by the community, I was able to form the following controller setup within Blender:<\/p>\n\n\n\n<div class=\"wp-block-envira-envira-gallery\"><div id=\"envira-gallery-wrap-1067\" class=\"envira-gallery-wrap envira-gallery-theme-base envira-lightbox-theme-base_dark\" itemscope itemtype=\"https:\/\/schema.org\/ImageGallery\"><div style=\"opacity: 0.0\"  data-row-height=\"150\" data-gallery-theme=\"normal\" id=\"envira-gallery-1067\" class=\"envira-gallery-public envira-gallery-justified-public envira-gallery-0-columns envira-clear enviratope envira-gallery-css-animations\" data-envira-columns=\"0\"><div id=\"envira-gallery-item-1094\" class=\"envira-gallery-item enviratope-item envira-gallery-item-1 envira-lazy-load\" style=\"padding-left: 1px; padding-bottom: 1px; padding-right: 1px;\"  itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><div class=\"envira-gallery-item-inner\"><div class=\"envira-gallery-position-overlay  envira-gallery-top-left\"><\/div><div class=\"envira-gallery-position-overlay  envira-gallery-top-right\"><\/div><div class=\"envira-gallery-position-overlay  envira-gallery-bottom-left\"><\/div><div class=\"envira-gallery-position-overlay  envira-gallery-bottom-right\"><\/div><a href=\"https:\/\/rossedwards.co.uk\/blog\/wp-content\/uploads\/2019\/05\/control.jpg\" class=\"envira-gallery-1067 envira-gallery-link\" rel=\"enviragallery1067\" title=\"controller nodes\" data-envira-caption=\"controller nodes\" data-envira-retina=\"\" data-thumbnail=\"\"  itemprop=\"contentUrl\"><img id=\"envira-gallery-image-1094\" class=\"envira-gallery-image envira-gallery-image-1 envira-normal envira-lazy\" data-envira-index=\"1\" src=\"https:\/\/rossedwards.co.uk\/blog\/wp-content\/uploads\/2019\/05\/control-1024x494-640x480.jpg\" data-envira-src=\"https:\/\/rossedwards.co.uk\/blog\/wp-content\/uploads\/2019\/05\/control-1024x494-640x480.jpg\" data-envira-gallery-id=\"1067\" data-envira-item-id=\"1094\" data-envira-caption=\"controller nodes\" alt=\"\" title=\"controller nodes\"  itemprop=\"thumbnailUrl\" data-envira-srcset=\"https:\/\/rossedwards.co.uk\/blog\/wp-content\/uploads\/2019\/05\/control-1024x494-640x480.jpg 400w,https:\/\/rossedwards.co.uk\/blog\/wp-content\/uploads\/2019\/05\/control-1024x494-640x480.jpg 2x\" data-envira-width=\"300\" data-envira-height=\"145\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAP\/\/\/\/\/\/\/yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-safe-src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAP\/\/\/\/\/\/\/yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" \/><\/a><\/div><\/div><\/div><\/div><noscript><img src=\"https:\/\/rossedwards.co.uk\/blog\/wp-content\/uploads\/2019\/05\/control.jpg\" alt=\"\" \/><\/noscript><\/div>\n\n\n\n<p>This allows for smooth <strong>WASD<\/strong> keyboard movement, combined with mouse middle button\/left click for free look &amp; rotation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Armory3d is a completely open source game engine that is fully integrated into Blender. Below is my first attempt at stitching a terrain mesh, layered with satellite\/flown imagery, making use of the excellent BlenderGIS plugin. You can then simply export the project to an HTML5 application which can run on any browser. See below a &hellip; <span class=\"read-more\"><a href=\"https:\/\/rossedwards.co.uk\/blog\/2019\/05\/01\/armory-blender-game-engine\/\" class=\"more-link\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":1066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,2],"tags":[],"_links":{"self":[{"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/posts\/426"}],"collection":[{"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":31,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"predecessor-version":[{"id":1159,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/posts\/426\/revisions\/1159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/media\/1066"}],"wp:attachment":[{"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rossedwards.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}