Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!






Particle Systems using Stream-Out in DirectX 11 and SlimDX

Posted by ericrrichards22, 21 October 2013 · 685 views

C#SlimDX DirectX 11 particle effects stream-out geometry shader

Particle systems are a technique commonly used to simulate chaotic phenomena, which are not easy to render using normal polygons. Some common examples include fire, smoke, rain, snow, or sparks. The particle system implementation that we are going to develop will be general enough to support many different effects; we will be using the GPU’s StreamOut stage to update our particle systems, which means that all of the physics calculations and logic to update the particles will reside in our shader code, so that by substituting different shaders, we can achieve different effects using our base particle system implementation.


The code for this example was adapted from Chapter 20 of Frank Luna’s Introduction to 3D Game Programming with Direct3D 11.0, ported to C# and SlimDX. The full source for the example can be found at my GitHub repository, at https://github.com/ericrrichards/dx11.git, under the ParticlesDemo project.


Below, you can see the results of adding two particles systems to our terrain demo. At the center of the screen, we have a flame particle effect, along with a rain particle effect.

Posted Image


Read More...





You should play with BEPU and see if you can get some crazy stuff going with that particle system.

Sounds interesting.  At some point in the future, I'm going to work on adding a home-brew physics engine, since I just got this book.

September 2015 »

S M T W T F S
   1 2345
6789101112
13141516171819
20212223242526
27282930   

Latest Visitors

PARTNERS