Point list to texture

Hi All,

With help from post in this great forum I managed to set up a GLSL particle system that takes a point cloud in form of a text file, creates a texture and then uses the texture to position pointsprites in a GLSL shader.

Currently I generate two textures, one containing point positions and one containing point colors. When I combine the two in the shader, they seem to get mixed up somehow and I suspect that this error is actually happening when the two textures are generated.

I’m using an atomic counter to loop through the DAT containing the point data (position and color), could it be that I have missed something here in relation to that?

If someone would take a quick look at the attatched files and point me in the right direction I would be very greatful.

cheers

Martin
test2 - Cloud.txt (16.4 KB)
GLSL pointCloud_texGenerator.9.toe (5.71 KB)