GPU powered particles

Another update.

Now you can run the collision detection against a 3D texture/voxel. There’s a little tool called voxel.py in the repo, check that out on how to generate a 3d texture from your own scene (the tool can pack the txo into a multifile if you want it to, the txo can be really big -32mb for 128x128x128- but it compresses well).

There’s a new video here:
youtu.be/5DAO8La7MAY

I also tested it with a few more particles (just over 250 000):
s29.postimg.org/ugq4as2ef/512snow.png

I’m still thinking how to make a vector field, the problem is not storing or reading the data, the problem is making sensible vectors in the first place - manually writing the vectors one at a time to the voxel grid is out of the question, I’ll probably need to write another tool for that.

All the source is still at the same location as before: github.com/wezu/p3d_gpu_particle