Title: Developing an XNA Particle System
Slug: developing-an-xna-particle-system-speech-sources-soon
Date: 2007-05-11 16:56:00
Author: Kartones
Lang: en
Tags: Game Dev, XNA, .NET
Description: A presentation on developing an XNA particle system, showcasing GameComponents, custom content pipeline elements, and the fun of testing and tweaking particles. Source code and slides available.

<p align="justify">Today my friend <strong>Vicente</strong> and I gave a small speech at the <a href="https://upsam.academia.edu/">UPSAM</a> about <strong>XNA</strong>. Precisely, we presented a small <a href="http://en.wikipedia.org/wiki/Particle_system">particle engine</a> done into a GameComponent, to acomplish some goals:</p>
<ul>
<li>Showing how clean and easy is to use GameComponents (actually we use one Camera/Input GC  from <a href="http://www.fegelein.com">fegelein</a>) and register them as GameServices
</li><li>Showing how to create a custom content pipeline element (for loading our particle systems)
</li><li>Creating something different, not the typical 3D model with a light.
</li><li>Having fun (and we did a lot, testing particles and tweaking their parameters is quite fun!)</li></ul>
<p>The particle system uses emitters (we've implemented a sphereemitter, but it's very easy to create more), but we didn't have time to create a pool of particles to reuse them and optimise performance and memory consumption (maybe for a 2.0 version ;)</p>
<p><strike>I want to comment all the code (rushing is bad for comments :P), refactor one or two things, and Vicente wants to check something about the randomness of the particle creation, so </strike><strike>I've uploaded the slides</strike><strike> (both in english and spanish, it's a short slide-deck), and in few days I'll post the sources of the engine.</strike></p>
<p>You can find both the slides and the source code of the particle engine <a href="https://blog.kartones.net/page/my-source-codes-and-contributions/">here</a>.<br><br><br></p>
<p>Many thanks to the people of the dotNetClubs and <a href="https://geeks.ms/blogs/dsalgado/">David Salgado</a> (a pleasure seeing you, as always). Today I've remembered my good times at the university, when I was full of ideas and wanted to investigate, learn and code, code &amp; code!</p>
