HI all and thanks to @tmp for the great contribution.
i am trying to readback the particle positions from a single Emitter but am a little lost on how to do this. Also i wanted to ask what the most effecient way would be if I only want to readback a single Position but from a certain emitter / group.
Attached is an example but which readbacks all positions. Can anyone point me in the right direction?
Readbacks are always slow. So you should avoid them, if possible. Fastest way is to use the attributebuffer coming from the AsAttributeBuffer node and use it in further shaders. I don’t know what are want to do?
If you want to get one position only I would recommend you to use the centroid node.
You could also write a custom selection node that selects only one particle and combine this custom selector with the emitter selector and the boolean AND selection node. But this doesn’t make anything faster (in comparison to the current patch) since you still do a readback.
Hi all, I’m trying to use a portion of particles from a System to be used as origin position for anther System, actually i’m reading back attributebuffers, but since Main system as a lot of particles ( at least 1M ), the whole toy became very slow.
I’ m using system in patch attached, any hints to achieve this result properly ?
Hi, yes I tried the RWStructuredBuffer as I’m using it with Kinect, the point is I suspect it would be better to “isolate” some particles from SystemA, and create them again in SystemB, in order to have full control over that selection, does it make sense ?