[ofxGpuParticles]Why does the drawn particles dissapear? [Solved it]

Hello fellow OF users. I started out a project to get better att coding some visual effects. I am
quite the noob when it comes to handling OpenGL and hope someone can help me out here.

The code is based on the ofxGpuParticles example and I added some of the nice addons I later found
to get the effect I was after.

The code is here: http://pastebin.com/ZPpTY86w

It starts up just fine, and my visual effect boots. However all of a sudden everything just dissapears at random.
At first I thought it might be a clipping problem. Tried out changing near and far, but no luck.

My current idea is that my xyz coordinates that I use random to set somehow makes the shader explode, but I also tried to limit the numbers here but still no luck. Would be happy if someone could help me out :slight_smile:

Here is a screenshot of the effect when it has not disappeared :wink:


Solved it, y-position generated got more decimals than the uniform could hold. Changed how y got its value and it fixed the problem :slight_smile: