{"id":108163,"date":"2020-01-27T19:06:39","date_gmt":"2020-01-27T19:06:39","guid":{"rendered":"http:\/\/gamefromscratch.com\/post.aspx?id=8af51cbb-99c5-4b35-96ef-c06c40ec7b2d"},"modified":"2020-01-27T19:06:39","modified_gmt":"2020-01-27T19:06:39","slug":"ursina-engine","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2020\/01\/27\/ursina-engine\/","title":{"rendered":"Ursina Engine"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.ursinaengine.org\/\">Ursina Engine<\/a> is a recently released open source Python based 3D game engine.&nbsp; The Ursina Engine is built on top of the well established Panda3D game engine (<a href=\"https:\/\/www.youtube.com\/watch?v=UKKoNZYFVt8\">learn more here<\/a>).&nbsp; Key features of the Ursina Engine include:<\/p>\n<blockquote>\n<p> * hotreload code\/textures\/models while in-game<br \/>* automatic import of .psd and .blend files<br \/>* play in fullscreen while developing<br \/>* easy to use mesh class for making procedural geometry<br \/>* lots of included procedural 3D primitives<\/p>\n<\/blockquote>\n<p>The Ursina Engine is available for Windows, Mac and Linux with the source code <a href=\"https:\/\/github.com\/pokepetter\/ursina\">available on GitHub<\/a> under the MIT license.&nbsp; To get started with the Ursina Engine you need to have Python 3.6 or later installed as well as the pip package manger and git.&nbsp;&nbsp; Once installed, simply run the command:<\/p>\n<blockquote>\n<p>pip install git+https:\/\/github.com\/pokepetter\/ursina.git<\/p>\n<\/blockquote>\n<p>If you encounter a permissions error, add the \u2013user parameter to the above line.&nbsp; From the examples, here is the code required to create an application and display a grid:<\/p>\n<pre><span>from<\/span> ursina <span>import<\/span> <span>*<\/span> app <span>=<\/span> <span>Ursina<\/span><span>()<\/span> r <span>=<\/span> <span>8<\/span> <span>for<\/span> i <span>in<\/span> <span>range<\/span><span>(<\/span><span>1<\/span><span>,<\/span> r<span>):<\/span> t <span>=<\/span> i<span>\/<\/span>r s <span>=<\/span> <span>4<\/span><span>*<\/span>i <span>print<\/span><span>(<\/span>s<span>)<\/span> grid <span>=<\/span> <span>Entity<\/span><span>(<\/span>model<span>=<\/span><span>Grid<\/span><span>(<\/span>s<span>,<\/span>s<span>),<\/span> scale<span>=<\/span>s<span>,<\/span> color<span>=<\/span>color<span>.<\/span><span>color<\/span><span>(<\/span><span>0<\/span><span>,<\/span><span>0<\/span><span>,<\/span><span>.8<\/span><span>,<\/span><span>lerp<\/span><span>(<\/span><span>.8<\/span><span>,<\/span><span>0<\/span><span>,<\/span>t<span>)),<\/span> rotation_x<span>=<\/span><span>90<\/span><span>,<\/span> position<span>=(-<\/span>s<span>\/<\/span><span>2<\/span><span>,<\/span> i<span>\/<\/span><span>1000<\/span><span>, -<\/span>s<span>\/<\/span><span>2<\/span><span>))<\/span> subgrid <span>=<\/span> <span>duplicate<\/span><span>(<\/span>grid<span>)<\/span> subgrid<span>.<\/span>model <span>=<\/span> <span>Grid<\/span><span>(<\/span>s<span>*<\/span><span>4<\/span><span>,<\/span> s<span>*<\/span><span>4<\/span><span>)<\/span> subgrid<span>.<\/span>color <span>=<\/span> color<span>.<\/span><span>color<\/span><span>(<\/span><span>0<\/span><span>,<\/span><span>0<\/span><span>,<\/span><span>.4<\/span><span>,<\/span><span>lerp<\/span><span>(<\/span><span>.8<\/span><span>,<\/span><span>0<\/span><span>,<\/span>t<span>))<\/span> <span>EditorCamera<\/span><span>()<\/span> app<span>.<\/span><span>run<\/span><span>()<\/span> <\/pre>\n<p>You can learn more about the Ursina Engine in the <a href=\"https:\/\/youtu.be\/aCpBzdciU0o\">video<\/a> below.<\/p>\n<p align=\"center\">[youtube https:\/\/www.youtube.com\/watch?v=aCpBzdciU0o&#038;w=853&#038;h=480]<\/p>\n<p class=\"under\"> <span class=\"categories\"><a href=\"https:\/\/www.gamefromscratch.com\/category\/GameDev-News.aspx\">GameDev News<\/a><\/span> <span class=\"tags\"><a href=\"https:\/\/www.gamefromscratch.com\/?tag=\/3D\" rel=\"tag\">3D<\/a> <a href=\"https:\/\/www.gamefromscratch.com\/?tag=\/Engine\" rel=\"tag\">Engine<\/a><\/span> <\/p>\n<hr>\n<p> &lt;!&#8211;<\/p>\n<p>&#8211;&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Ursina Engine is a recently released open source Python based 3D game engine.&nbsp; The Ursina Engine is built on top of the well established Panda3D game engine (learn more here).&nbsp; Key features of the Ursina Engine include: * hotreload code\/textures\/models while in-game* automatic import of .psd and .blend files* play in fullscreen while developing* [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[72],"class_list":["post-108163","post","type-post","status-publish","format-standard","hentry","category-game-development","tag-gamedev-news"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/108163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=108163"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/108163\/revisions"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=108163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=108163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=108163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}