Forum

Particle Emitter in a Grid?

Hello

I would like to emit particles in a grid like fashion. I have come up with a solution that works halfway, but it doesn’t seem right to me. Have a look here:

I take the “ceiling” from a random array of points, that that gives me particle sources at [2,2], [2,1], [2,0], [2,-1] but logically not at [2,-2]. And I am not able the change the density if I wish to do so. Ideally I would like to be able to divide the domain, but I am entirely clueless how to do that. Does anybody has a tip to help me out?
Thanks a lot!

have a look at the “use static buffer for drawing” help patch.

basically, you generate your values, generate a buffer, and the second buffer node is used to make it compatible with either compute or vertex shader…

bufferemitter

of course you use cpu and upload it that way. but for a small amount of points this should be no bottleneck.

cool thanks a lot, that was really helpful. it works now with a slight change like below -

Capture