top of page

Real-time particle iso-surface polygonisation

Nov 11
2 min read

Updated: Nov 12

Demo footage showing the blob carrying a cube and bringing it to the player.

I used the marching cubes algorithm (paulbourke.net, n.d.) to render simulated particles in a game environment for a blob-looking creature. After implementing the algorithm verbatim, I noticed some problems with my original approach.

I found there was a ceiling for the resolution that was achievable in order to balance gameplay flexibility and visual fidelity, as increasing the resolution of the blob can cause serious memory hits per frame. A resolution too high would cause the maximum size of the blob to be much smaller, meaning the particles wouldn't be able to travel far from each-other, which would diminish the value in having a truly 'blob-like' entity. A resolution too low allows the particles to separate far from each-other, but sacrifices mesh detail. Particle count also meant an entirely new pass each frame to update iso-surface values.


In order to tackle this problem for demonstration purposes, I limited level environments to be within a size that does not allow for the particles to be too far apart. I also moved the scalar field's (the 3D grid containing the particle data) position to be the mid point of all particles, allowing them to travel further too. I also limited particle counts to be within a range of 1-3, not allowing the player to create new ones.


Showcase of multiple particles interacting with each other

After experimenting with level-design, I realised that such limitations are not sufficient for a puzzle game that characteristically demands each gameplay feature to have multiplicative value. Valve's Marching Slices Algorithm (Rosenberg and Birdwell, 2008) is an interesting reference for how memory can be saved by subdividing a field into 'blocks' of identical size, and cycling through each block allowing real-time polygonisation across a large field in a significantly high resolution, while consuming the memory of a single block by using a cache. Next I am going to attempt to implement this system into Godot using C++.


A particle is assigned the role of 'leader' which pursues targets, while particles spawned thereafter follow the leader. The player was also given the ability to fire blobs which became impossible with the current optimisations, as more than 3 particles would lead to significant performance loss.

References


paulbourke.net. (n.d.). Polygonising a scalar field (marching cubes). [online] Available at: https://paulbourke.net/geometry/polygonise/ [Accessed 12 Nov. 2026].


Rosenberg, I.D. and Birdwell, K. (2008). Real-time particle isosurface extraction. Proceedings of the 2008 symposium on Interactive 3D graphics and games, pp.35–43. doi:10.1145/1342250.1342256.


 
 
 

Comments


  • GitHub
  • BlueSky
bottom of page