CPU vs GPU particles – from 20 to 200 FPS

Last week I showed how we can leverage the power of the GPU to render huge numbers of particles with great performance.

I stated that by using the GPU to simulate our particles we can get much better performance than if we were using the CPU only. However – and while you may believe me – I provided no evidence that this is in fact the case.

That is something I want to rectify today.

Continue reading →

Parametric GPU accelerated particles

Last week I wrote about how we can use parametric equations in particle systems.

Doing so allowed us to eliminate mutability from our particles. In that post I already hinted that this property allows us to easily move our particles to be simulated on the GPU.

That is what we will do today!

Continue reading →

Parametric Particles

Computer graphics has always been a major area of interest – and I would like to say expertise – for me.

Within graphics, particles and particle systems have played a big role since the days of the first video games.

It is not uncommon for games these days to often have thousands, if not tens or hundreds of thousands of particles on the screen at the same time. In fact, games without particles are a rare exception.

There are many topics that can be discussed when talking about particles, and I am sure I will cover many of them in the future.

Today I want to introduce the concept of parametric particles.

This is no grand effect, or even overly difficult, but it is a technique that every graphics programmer should be aware of. Even when not using it directly, I have found it useful when thinking about particle simulation.

Further, it provides a stepping stone for simple particle simulation on the GPU, which is a topic I want to cover in the near future.

Continue reading →

Post Processing: Pixelation

Today I want to delve a bit further into graphics programming and look into one specific effect we used in Roche Fusion: Pixelation.

We use the effect in the game as a visual queue for when the player takes damage and their health falls to dangerous levels.

Roche Fusion screenshot

Specifically, the post processing effect we apply pixelates the edges of the screen significantly, while leaving the center, and to some degree the bottom corners mostly untouched.

This allows the player to still continue playing, and to inspect their HUD, but it gives a clear and unmistakable indication of danger.

Of course, the effect could also be used for other purposes, such as transitions between levels, or even a major part of the art style.

Continue reading →

OpenGL in C# – an object oriented introduction to OpenTK

OpenGL and C# are two of my favourite technologies.

In this post I would like to give a small intro on how to develop games or other 3D accelerated applications using them together.

We will go over:

  • how to create a window with an OpenGL context that we can render to;
  • how to create vertex buffers, load shaders, and render vertices.

Continue reading →

Pages: 1 2 3 4