Game Design, Programming and running a one-man games business…

The Gratuitous Space Battles 2 Particle Editor (so far)

I recently got far enough in GSB2 to start fiddling with the particle effects for various things, and various low-level engine changes mean all of the particle configs for the original game are kind of screwed up and don’t really work right with this engine, so they all need re-doing, which is fine, as CPU/GPU horsepower has risen enormously since then, and it would be good to up the detail count on them anyway.

This reminds me that I never really had a decent particle editor when I started making Gratuitous Space Battles. it was all pretty poor. I had a MUCH better one for Gratuitous Tank Battles, (Which actually used two entirely separate rendering systems for different particle effects…) but ideally I wanted something I could have integrated into the game as an easy to use tool, maybe not for public consumption, but who knows?

Anyway it took me a day to knock this up: (click to enlarge)

editor

Which isn’t too bad given I use my own GUI code, and it gives me a very easy way to stay within one project and one app, and have the source code for the editor readily available, and using the same functions as the actual game, so if I update the particle engine, it’s updated everywhere. I now need to go and create some cool particle effects with it, but obviously that’s the fun part!

My approach to particle effects is pretty simple. I have discrete LODs for some of the more expensive effects, where if you zoom in, a more detailed effect with a lot more particles will appear. That certainly isn’t as smooth as it could be, and of course ideally it would all be procedural and algorithmic, but that sounds like a bit of a nightmare. Expect a smorgasbord of screenshots and videos eventually when I get the hang of using it properly :D

 


5 thoughts on The Gratuitous Space Battles 2 Particle Editor (so far)

  1. Are you going to make the explosions different colors? I mean this is art right?

  2. I have tried a few times to build a GUI for my particle system and failed. After a few failures I changed the way completely. Right now I am defining my particle systems in a JSON text file. In debug mode my engine just checks if a file has changed and reloads the settings. Now I use my favourite text editor and just save the file. The drawback is definitely watching the files which will take a little time specially if you are monitoring a lof of files. Right now this is not an issue for me actually.

  3. Have you seen that talk where the presenter had implemented a code editor in which you could make changes to the code and immediately see results, and when you clicked a variable/constant you made, there would be a slider that would change the value (of course figuring out what is the range and step size and stuff like that s bit of an issue he did not cover). That kind of tools would make the coding more accessible to people new to modding. I’m personally not that much into changing properties in visual studio’s properties dialogs.

  4. Oh right I remember the name now.. Bret Victor – Inventing on Principle
    http://vimeo.com/36579366

    It’s probably not all practical to do in most cases, but for game modding tools it seems that it could be workable.

Comments are currently closed.