{"id":1499,"date":"2020-09-11T17:07:00","date_gmt":"2020-09-11T17:07:00","guid":{"rendered":"https:\/\/xplicity.com\/?p=1499"},"modified":"2025-01-03T14:44:20","modified_gmt":"2025-01-03T11:44:20","slug":"a-long-rant-on-game-engines-part-1","status":"publish","type":"post","link":"https:\/\/xplicity.com\/a-long-rant-on-game-engines-part-1\/","title":{"rendered":"A long rant on Game Engines (Part 1)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In the past, when having discussions with friends or relatives over dinner about what games they play, a certain keyword often pops up. Especially so, if one socializes in IT circles. A Game Engine. Most people are familiar with the term and often carelessly throw it around. However, it seems there is a bit of a misnomer going on, as it appears that people are not always aware of what a game engine actually is and what is it\u2019s purpose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;So, what is a game engine and when should you use one? I will try to answer you below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Disclaimer: I will deliberately avoid using any reference material, like Wikipedia or game engines\u2019 own marketing material when describing terms and keywords. This article is my own take on what I know and understand of the concepts. Hopefully, this gives you a fresh, different perspective into the world of game engines. I firmly believe these different angles give readers a broader view of the complex topics (whatever they might be) and allow them to grasp the concepts easier. And I am absolutely sure that anyone reading this is more than capable of finding the \u201cproper\u201d definitions on their own anyway. I\u2019m also very skeptical of this \u201creference culture\u201d that seems to be deeply rooted in technical papers and scientific field, but let\u2019s leave this discussion for another time.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"581\" src=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Engine-5-Tech-Demo-1875x1064-1-1024x581.jpg\" alt=\"\" class=\"wp-image-1501\" srcset=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Engine-5-Tech-Demo-1875x1064-1-1024x581.jpg 1024w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Engine-5-Tech-Demo-1875x1064-1-300x170.jpg 300w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Engine-5-Tech-Demo-1875x1064-1-768x436.jpg 768w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Engine-5-Tech-Demo-1875x1064-1-1536x872.jpg 1536w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Engine-5-Tech-Demo-1875x1064-1.jpg 1875w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">[Unreal Engine 5 Tech Demo]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Game Engine?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A Game Engine in its essence is a set of functionality (or in some cases even a whole development environment) that allows users to rapidly access and create solutions to common scenarios.&nbsp; These scenarios are related to an interactive media that would be using the said engine \u2013 games, virtual \/ augmented reality applications, architectural demonstrations, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ok, let\u2019s unpack this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, game engine is a framework. Most, if not all of them are libraries that ease the way developers deal with 2D\/3D graphics by hiding the nitty-gritty innards. It builds on top of lower level APIs like DirectX, OpenGL, Vulkan which are&nbsp;<strong>VERY<\/strong>&nbsp;complex and laborious to work with. Engines also often add additional bonuses like running physics simulations for you, dealing with spatial audio, managing content and assets, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some of them, like for example&nbsp;<em>Unreal Engine<\/em>&nbsp;and&nbsp;<em>Unity Engine<\/em>&nbsp;are so huge and mature, that they are pretty much their own development environments. You could create a whole functioning game without writing a single code line (and I am not exaggerating here). These engines provide you with tools and workflows, where you create mechanics and rules via state machines and event-based relations; all visually, inside their specially crafted powerful game creation suites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apart from many commercially available game engines, there is nothing to stop a developer creating his own custom engine. With a bit of elbow grease and a lot of patience, one can craft something that is tailored to the particular needs of the idea or a quirky working process.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-1897x1021-1-1024x551.jpg\" alt=\"\" class=\"wp-image-1502\" srcset=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-1897x1021-1-1024x551.jpg 1024w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-1897x1021-1-300x161.jpg 300w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-1897x1021-1-768x413.jpg 768w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-1897x1021-1-1536x827.jpg 1536w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-1897x1021-1.jpg 1897w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">[Unreal Editor, 1st Example]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When would you use a game engine?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many people start out with a vision of a game. That vision is often a&nbsp;<strong>visual<\/strong>&nbsp;idea of what the game would look and play like. If you start from a scratch (what in fact many aspiring developers do, because they want to \u201cforge their own destiny\u201d), there is a really long road ahead, before you see anything even remotely resembling the vivid picture in your head. Heck, it will be ages until you manage to display a single colored square on the screen if you are new in this. Also, you will have to comply to certain patterns and data blocks, figure out effective workflows and procedures to be able to create and manipulate entities within your virtual world with relative ease. After all this foundational work is done the initial vision might be blurred or even lost entirely. And, sadly, the creative spark could have already died out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A game engine aims to be the solution exactly for this case \u2013 you can start implementing your idea really easily. You don\u2019t need specific knowledge about graphics architecture. You don\u2019t need to know about the data structures, pipelines and game loops. You don\u2019t even need to know how to code. And the best part \u2013 you immediately get something displayed on your screen, which you can start shaping into the approximation of the vision of\u00a0<strong>YOUR<\/strong>\u00a0game. This is the area where the game engine excels at \u2013 it enables users to rapidly create a visual content that shows exactly what the final result will be. This allows you to quickly create demos (or a proof of concept), start player testing early and iterate through the project changes with ease. Some engines even go as far as allowing you to change code as the game is running in the background.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unity-Editor-1906x1033-1-1024x555.jpg\" alt=\"\" class=\"wp-image-1503\" srcset=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unity-Editor-1906x1033-1-1024x555.jpg 1024w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unity-Editor-1906x1033-1-300x163.jpg 300w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unity-Editor-1906x1033-1-768x416.jpg 768w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unity-Editor-1906x1033-1-1536x832.jpg 1536w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unity-Editor-1906x1033-1.jpg 1906w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">[Unity Editor]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are the strengths and weaknesses of a game engine?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">So, what a game engine is and what it isn\u2019t?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advantages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">What a game engine does really well is allowing users to quickly import content and assets. These are 3D models, meshes, animations, effects, sounds, music, etc. Moreover, it gets them rendered \u2013 displayed (or played through speakers) in just a matter of a few quick mouse clicks. Additionally, it often supports most of the popular export formats of 3rd party tools either it is something as simple as Audacity for sound effects, or monstrosities like 3ds Max and PhotoShop for some art assets.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another great feature that often fascinates game developers is the ability to target multiple platforms with the same project code base. Most of the famous names in the game engine world support all the main platforms (PC, Xbox, PlayStation, Switch, even iOS and Android) out of the box. This saves creators a great deal of headache and allows them to change the target platform on the fly if needed. And, not to shy away \u2013 covers a much broader userbase with minimal changes to the project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, if you want to start quick, and you have no previous software development experience, the most popular engines in the field have whole free (!) development suites. With them you can create game logic and build it almost as if you were building it with Lego bricks &#8211;\u00a0 all visual. Moreover, you could probably even create it all using only the mouse (though learning a few keyboard shortcuts on the way definitely wouldn\u2019t hurt).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-2-1892x1026-1-1024x555.jpg\" alt=\"\" class=\"wp-image-1504\" srcset=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-2-1892x1026-1-1024x555.jpg 1024w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-2-1892x1026-1-300x163.jpg 300w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-2-1892x1026-1-768x416.jpg 768w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-2-1892x1026-1-1536x833.jpg 1536w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Unreal-Editor-2-1892x1026-1.jpg 1892w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">[Unreal Editor, 2nd example]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another awesome thing is that since working with game engines is relatively easy, there is a heap of tutorials and resources online. The more popular the engine is, the more info you can find on each specific little detail and quirk you encounter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, there\u2019s one important thing to mention: if you are serious about this, you\u2019d probably still write quite a bit of code. Engines sometimes are even language agnostic, or, sometimes, they let you pick from a certain set of supported languages (most popular being C# and C++ or their close derivatives). This heavily depends on the engine itself, as they might even have their own proprietary language, which you will need to learn. Although to me this doesn\u2019t sound like a lot of fun, because you\u2019d be learning a skill that can only be applied in a very narrow field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To sum up, this brings us to the next topic: what you should not expect of a game engine?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disadvantages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">One of the main drawbacks is the flexibility of the engine. Game engine inevitably puts you into certain constraints \u2013 well as all frameworks do. They have their own specific workflow and data protocols that you must follow. Keep in mind that those are mostly industry standards and best practices. But, if your game is really implementation specific or if you already have a particular way of going about, it might not work for you. Even more, further further down the road it may become a huge hindrance in that case. Of course, you can always recode the engine or wrap it in certain abstraction layers, but then you will be creating your own engine on the top of another engine. And all that just doesn\u2019t sound right, does it?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Following this train of thought, some bigger companies, in their need of game defining features, start rewriting and rewiring the game engine itself. Not just building on top of it but rewriting the internals. While this is totally reasonable, sometimes it gets so out of hand, the final engine is pretty much a new entity in on itself. As a result, we raise a natural question \u2013 wasn\u2019t it easier to build your own engine instead?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another thing is that you\u2019d never create a lean game if you use a 3rd party engine. Those easy asset importers? Those cool out of the box functions and multi-platform capabilities? They don\u2019t come free and they don\u2019t come cheap. A game built on an engine will always have a bigger footprint than a game built from the ground up on the specific API. Sure, engines try and optimize a whole lot during their final builds, but still, there are things that just have to be in the right place for it to function. So, don\u2019t be too surprised when even a simple inception of a game starts off within hundreds of MBs in size.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The last, but not least thing to mention, is that a game engine often brings with it a certain visual feel. This is especially true for 3D rendered games and is even more noticeable, if you, as a developer, do not have a particularly good sense of art direction and do not dig deeper into the render procedures and shaders. In other words, the games built on the same engine might feel a bit the same(-ish).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Game engine Examples<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We have quite a selection when it comes to game engines.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are free options like&nbsp;<strong><a href=\"https:\/\/unity.com\/\">Unity<\/a><\/strong>,&nbsp;<strong><a href=\"https:\/\/www.unrealengine.com\/en-US\/\">Unreal Engine<\/a><\/strong>,&nbsp;<strong><a href=\"https:\/\/www.cryengine.com\/\">Cry Engine<\/a><\/strong>,&nbsp;<strong><a href=\"https:\/\/aws.amazon.com\/lumberyard\/\">Lumberyard<\/a><\/strong>, etc. Anyone can use them, or at least \u2013 start using for free and later on there are tiered licenses after you start monetizing your game. Out of these I would highlight Unity and Unreal Engine as a really good starting spots for the new game creators.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also choose from the paid options like&nbsp;<strong><a href=\"https:\/\/www.yoyogames.com\/gamemaker\">GameMaker<\/a><\/strong>,&nbsp;<strong><a href=\"http:\/\/www.croteam.com\/technology\/\">Serious Engine<\/a><\/strong>&nbsp;or&nbsp;<strong><a href=\"https:\/\/www.rpgmakerweb.com\/\">RPG maker<\/a><\/strong>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Eventually, there are engines that are only available if you work with certain publishers or are their subsidiaries, such as Frostbite or id-Tech.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And then, of course there are the mysterious, shadow covered, strictly in-house engines like the Fox Engine or the Decima.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Horizon-Zero-Dawn-\u2013-Guerilla-Games-Decima-Engine-2060x1159-1-1024x576.jpg\" alt=\"\" class=\"wp-image-1505\" srcset=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Horizon-Zero-Dawn-\u2013-Guerilla-Games-Decima-Engine-2060x1159-1-1024x576.jpg 1024w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Horizon-Zero-Dawn-\u2013-Guerilla-Games-Decima-Engine-2060x1159-1-300x169.jpg 300w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Horizon-Zero-Dawn-\u2013-Guerilla-Games-Decima-Engine-2060x1159-1-768x432.jpg 768w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Horizon-Zero-Dawn-\u2013-Guerilla-Games-Decima-Engine-2060x1159-1-1536x864.jpg 1536w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Horizon-Zero-Dawn-\u2013-Guerilla-Games-Decima-Engine-2060x1159-1-2048x1152.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">[Horizon Zero Dawn \u2013 Guerilla Games, Decima Engine]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Another way (or the original way)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There is the alternative to using a 3rd party engine \u2013 you can always write your own.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On every platform you can find the underlying graphics APIs. You have your DirectX, OpenGL, Mantle, Vulkan, Metal, Gnm. Then there are higher level frameworks which I would not consider as engines, such as XNA and\u00a0<strong><a href=\"https:\/\/www.monogame.net\/\">MonoGame<\/a><\/strong>. They only provide the APIs and are not that comprehensive in terms of prefabricated functionality \u2013 you still have to build that yourself.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Owlboy-D-Pad-Studio-XNA-1280x720-1-1024x576.jpg\" alt=\"\" class=\"wp-image-1506\" srcset=\"https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Owlboy-D-Pad-Studio-XNA-1280x720-1-1024x576.jpg 1024w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Owlboy-D-Pad-Studio-XNA-1280x720-1-300x169.jpg 300w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Owlboy-D-Pad-Studio-XNA-1280x720-1-768x432.jpg 768w, https:\/\/xplicity.com\/wp-content\/uploads\/2023\/07\/Owlboy-D-Pad-Studio-XNA-1280x720-1.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">[Owlboy &#8211; D-Pad Studio, XNA]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SNEAK-PEEK INTO THE PART 2:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the second part you will find out:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>What are the advantages of writing a custom game engine?<\/li>\n\n\n\n<li>Why sometimes it&#8217;s inefficiend or too complicated choice?<\/li>\n\n\n\n<li>Advice for beginners.<\/li>\n\n\n\n<li>What mistakes should you avoid?<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In the past, when having discussions with friends or relatives over dinner about what games they play, a certain keyword often pops up. Especially so, if one socializes in IT circles. A Game Engine. Most people are familiar with the term and often carelessly throw it around. However, it seems there is a bit of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1500,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/posts\/1499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/comments?post=1499"}],"version-history":[{"count":1,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/posts\/1499\/revisions"}],"predecessor-version":[{"id":1507,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/posts\/1499\/revisions\/1507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/media\/1500"}],"wp:attachment":[{"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/media?parent=1499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/categories?post=1499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xplicity.com\/wp-json\/wp\/v2\/tags?post=1499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}