{"id":588,"date":"2014-04-12T12:27:01","date_gmt":"2014-04-12T04:27:01","guid":{"rendered":"http:\/\/www.gridsagegames.com\/blog\/?p=588"},"modified":"2014-08-26T19:57:45","modified_gmt":"2014-08-26T11:57:45","slug":"making-particles","status":"publish","type":"post","link":"https:\/\/www.gridsagegames.com\/blog\/2014\/04\/making-particles\/","title":{"rendered":"Making Particles"},"content":{"rendered":"<p>I&#8217;ve already written about weapon particle effects, but previous posts have only focused on the results rather than the process behind their creation. Some readers would likely enjoy some elaboration on what went into that whole &#8220;week I buried myself in Cogmind scripts.&#8221; For everyone else, it&#8217;s also a thinly veiled excuse to show some more effects ;)<\/p>\n<div id=\"attachment_615\" style=\"width: 482px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_particle_effects_03.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-615\" class=\"size-full wp-image-615 \" title=\"Cogmind Weapon Particle Effects\" alt=\"cogmind_particle_effects_03\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_particle_effects_03.png\" width=\"472\" height=\"290\" \/><\/a><p id=\"caption-attachment-615\" class=\"wp-caption-text\">An Ion Burst Cannon, Scatter Rockets, Ragnarok Missile, and Proton Missile to whet your appetite.<\/p><\/div>\n<h2>Styles<\/h1>\n<p>The most annoying part of working with large data sets, but an absolutely essential one, is the need to ensure consistency in presentation. Weapons that are similar in some way should also share some qualities in their particle effects.<\/p>\n<p>At the simplest and most obvious level, this is achieved by adhering to logical designs when choosing a style for each weapon&#8217;s particle effect. Before assigning any particle effects at all, a long list of major weapon types was subdivided by their respective styles.<\/p>\n<div id=\"attachment_598\" style=\"width: 123px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_particle_styles_gun_ki.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-598\" class=\"size-full wp-image-598 \" title=\"Cogmind Weapon Particle Styles: Ballistic\" alt=\"cogmind_particle_styles_gun_ki\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_particle_styles_gun_ki.png\" width=\"113\" height=\"276\" \/><\/a><p id=\"caption-attachment-598\" class=\"wp-caption-text\">Ballistic guns, grouped by general particle styles.<\/p><\/div>\n<p>The above list could be renamed &#8220;the duh category&#8221; because it&#8217;s comprised of mostly familiar weapons that players expect to look a certain way. (In fact, I made that part of the list after the fact just to have a record of it, since it was so obvious it wasn&#8217;t really necessary to write down before working on ballistic gun particles.)<\/p>\n<div id=\"attachment_599\" style=\"width: 324px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_particle_styles_gun_th.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-599\" class=\"wp-image-599 \" title=\"Cogmind Weapon Particle Styles: Thermal\" alt=\"cogmind_particle_styles_gun_th\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_particle_styles_gun_th.png\" width=\"314\" height=\"541\" \/><\/a><p id=\"caption-attachment-599\" class=\"wp-caption-text\">Thermal guns, grouped by general particle styles.<\/p><\/div>\n<p>At the other end of the spectrum thermal guns can and tend to be more distinct since there&#8217;s more room for innovation, thus there&#8217;s almost a different style assigned to every type.<\/p>\n<p>Having a list like this is useful as a centralized reference rather than having to search through the entire item data to make sure same-technology weapons are using the same style. Some guns also have &#8220;cannon&#8221; versions, i.e. same technology but bigger\/cooler, and those should have similar styles as well. The cannon lists reuse many of the same styles, though with modifications to the particle effect to reflect their greater power.<\/p>\n<h2>Themes<\/h1>\n<p>Cross-style themes are used to convey other information about a weapon via color or other attributes (but mostly color). The color of an effect almost always reflects the weapon&#8217;s strength. Weaker ballistic weapons fire gray or light brown projectiles, while more powerful versions are orange\/red.<\/p>\n<div id=\"attachment_600\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weaopn_particles_shotgun+hpw.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-600\" class=\"size-full wp-image-600 \" title=\"Cogmind Weapon Particle Effects: Ballistic\" alt=\"cogmind_weaopn_particles_shotgun+hpw\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weaopn_particles_shotgun+hpw.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-600\" class=\"wp-caption-text\">Shotgun vs. High-powered Shotgun<\/p><\/div>\n<p>Stronger ballistic weapons also tend to have more smoke\/flash to their effect:<\/p>\n<div id=\"attachment_601\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_assaultrifle+HMG+gauss+massdriver.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-601\" class=\"size-full wp-image-601 \" title=\"Cogmind Weapon Particle Effects: Ballistic\" alt=\"cogmind_weapon_particles_assaultrifle+HMG+gauss+massdriver\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_assaultrifle+HMG+gauss+massdriver.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-601\" class=\"wp-caption-text\">Improved Assault Rifle vs. Improved Heavy Machine Gun; Gauss Cannon vs. Mass Driver<\/p><\/div>\n<p>Weaker versions of laser weapons are yellow, stronger ones are green.<\/p>\n<div id=\"attachment_602\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_pulserifles.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-602\" class=\"wp-image-602 \" title=\"Cogmind Weapon Particle Themes: Lasers\" alt=\"cogmind_weapon_particles_pulserifles\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_pulserifles.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-602\" class=\"wp-caption-text\">Normal vs. Cooled Pulse Rifle<\/p><\/div>\n<p>Non-laser thermal weapons, which also tend to be more powerful than normal lasers, range from orange to red.<\/p>\n<div id=\"attachment_603\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_hvyphasecannon.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-603\" class=\"size-full wp-image-603 \" title=\"Cogmind Weapon Particle Themes: Thermal (non-laser)\" alt=\"cogmind_weapon_particles_hvyphasecannon\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_hvyphasecannon.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-603\" class=\"wp-caption-text\">Heavy Phase Cannon<\/p><\/div>\n<p>Plasma weapons all use similar colors, but grow larger and slower as they increase in power.<\/p>\n<div id=\"attachment_604\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_plasma.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-604\" class=\"size-full wp-image-604 \" title=\"Cogmind Weapon Particle Themes: Plasma\" alt=\"cogmind_weapon_particles_plasma\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_particles_plasma.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-604\" class=\"wp-caption-text\">Plasma Rifle, Variable Charge Gun, and Plasma Cannon<\/p><\/div>\n<p>Thermal weapons may also use randomized ASCII in their animation, but only punctuation marks--full ASCII is reserved for electromagnetic weapons. EMP weapons are especially dangerous to Cogmind, so it&#8217;s nice that they look (and sound!) very different. Almost all of them use ASCII glyphs; they&#8217;re also the only weapons to use blue.<\/p>\n<div id=\"attachment_605\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_lightninggun+teslarifle.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-605\" class=\"size-full wp-image-605 \" title=\"Cogmind Weapon Particle Themes: EMP\" alt=\"cogmind_weapon_paritcles_lightninggun+teslarifle\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_lightninggun+teslarifle.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-605\" class=\"wp-caption-text\">Improved Lightning Gun and Tesla Rifle<\/p><\/div>\n<p>Electromagnetic explosions follow the same pattern of full ASCII use.<\/p>\n<div id=\"attachment_606\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_tesla+gammabomb.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-606\" class=\"size-full wp-image-606 \" title=\"Cogmind Weapon Particle Themes: EMP Explosions\" alt=\"cogmind_weapon_paritcles_tesla+gammabomb\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_tesla+gammabomb.gif\" width=\"208\" height=\"110\" \/><\/a><p id=\"caption-attachment-606\" class=\"wp-caption-text\">Tesla Bomb Launcher and Gamma Bomb Array<\/p><\/div>\n<p>As you would expect, normal explosions are generally yellow\/orange\/red.<\/p>\n<div id=\"attachment_607\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_grenade+rocket+missile.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-607\" class=\"size-full wp-image-607 \" title=\"Cogmind Weapon Particle Themes: Explosives\" alt=\"cogmind_weapon_paritcles_grenade+rocket+missile\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_grenade+rocket+missile.gif\" width=\"208\" height=\"208\" \/><\/a><p id=\"caption-attachment-607\" class=\"wp-caption-text\">Entry-level grenade, rocket, and missile.<\/p><\/div>\n<p>Some AOE weapons don&#8217;t fit into either of these categories and have unique effects.<\/p>\n<div id=\"attachment_608\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_neutronmissile_pointsingulairty.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-608\" class=\"size-full wp-image-608 \" title=\"Cogmind Weapon Particle Themes: NA\" alt=\"cogmind_weapon_paritcles_neutronmissile_pointsingulairty\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_neutronmissile_pointsingulairty.gif\" width=\"208\" height=\"208\" \/><\/a><p id=\"caption-attachment-608\" class=\"wp-caption-text\">Neutron Missile and Point Singularity Launcher<\/p><\/div>\n<p>Another general theme among more powerful weapons is a &#8220;charging&#8221; animation before firing. The longer the charge the more powerful the weapon. Duh. Some &#8220;charges&#8221; may only be reflected in the sound effects, like the cycling up of a minigun, but most are visible in some way.<\/p>\n<div id=\"attachment_609\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_HERF.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-609\" class=\"size-full wp-image-609 \" title=\"Cogmind Weapon Particle Themes: Charge\" alt=\"cogmind_weapon_paritcles_HERF\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_HERF.gif\" width=\"208\" height=\"103\" \/><\/a><p id=\"caption-attachment-609\" class=\"wp-caption-text\">HERF Cannon, for when your target needs a really good dose of EMP.<\/p><\/div>\n<p>I haven&#8217;t shown any melee animations yet, mostly because they&#8217;re more functional than impressive. There&#8217;s only so much you can do within a mere handful of cells around a point-bank melee attack! Basic attacks simply flash a directional &#8216;\/&#8217; over the adjacent target. I&#8217;m sure you can imagine the animation without a gif&#8230; Better melee weapons are expected to look better, so there are a few styles that do what they can with the small space available.<\/p>\n<div id=\"attachment_610\" style=\"width: 218px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_melee.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-610\" class=\"size-full wp-image-610 \" title=\"Cogmind Weapon Particle Effects: Melee\" alt=\"cogmind_weapon_paritcles_melee\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_weapon_paritcles_melee.gif\" width=\"208\" height=\"103\" \/><\/a><p id=\"caption-attachment-610\" class=\"wp-caption-text\">Melee rampage with a Shock Maul, Impact Mace, Gravity Flail, Plasma Sword, then Kinetic Spear.<\/p><\/div>\n<h2>The Sandbox<\/h1>\n<p>All my games have them. A hard-coded map that can be modified in any way necessary to suit a specific test (as opposed to game maps which would be loaded from external files and are not otherwise easily tweaked in code). Certainly not a replacement for in-game testing, but good for quick and dirty tests of specific features without all the other parts of the game getting in the way.<\/p>\n<p>This is where all particle effects are designed, since combined with cheat mode it&#8217;s an easy matter to just pick up and fire any weapon in the game.<\/p>\n<div id=\"attachment_611\" style=\"width: 303px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_sandbox.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-611\" class=\"size-full wp-image-611 \" title=\"Cogmind Testing Sandbox\" alt=\"cogmind_sandbox\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_sandbox.png\" width=\"293\" height=\"494\" \/><\/a><p id=\"caption-attachment-611\" class=\"wp-caption-text\">Cogmind&#8217;s playground, by default featuring one of every item in the game.<\/p><\/div>\n<p>For testing other objects, the default sandbox also contains all possible kinds of different terrain, and one of every robot in the game.<\/p>\n<div id=\"attachment_613\" style=\"width: 290px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_sandbox_robots.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-613\" class=\"wp-image-613 \" title=\"Cogmind Testing Sandbox: Robots\" alt=\"cogmind_sandbox_robots\" src=\"https:\/\/www.gridsagegames.com\/blog\/gsg-content\/uploads\/2014\/04\/cogmind_sandbox_robots.png\" width=\"280\" height=\"124\" \/><\/a><p id=\"caption-attachment-613\" class=\"wp-caption-text\">The original prototype menagerie, soon to grow exponentially with the advent of new robot classes.<\/p><\/div>\n<p>More about robots in future posts, but before that I still have to finish off the last bit of weapon sound effects to go along with all these particles, so that will be the subject of the next few posts.<\/p>\n<p><em>Update: On multiple occasions I&#8217;ve been contacted by colorblind players hoping Cogmind will have accessibility options for them. There will be solutions, and rather than tack on related comments here, I&#8217;ve decided to write a dedicated post on that subject. (See next post: <a title=\"Accommodating Color Blindness\" href=\"http:\/\/www.gridsagegames.com\/blog\/2014\/04\/accommodating-colorblindness\/\">Accommodating Color Blindness<\/a>.)<br \/>\n<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve already written about weapon particle effects, but previous posts have only focused on the results rather than the process behind their creation. Some readers would likely enjoy some elaboration on what went into that whole &#8220;week I buried myself in Cogmind scripts.&#8221; For everyone else, it&#8217;s also a thinly veiled excuse to show some [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":615,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[28,171,62,4,61,12],"class_list":["post-588","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-design","tag-animation","tag-art","tag-ascii","tag-cogmind","tag-particle-effects","tag-weapons"],"_links":{"self":[{"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/comments?post=588"}],"version-history":[{"count":14,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":970,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/posts\/588\/revisions\/970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/media\/615"}],"wp:attachment":[{"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/media?parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/categories?post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gridsagegames.com\/blog\/wp-json\/wp\/v2\/tags?post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}