So I wanted to an animation where the geometry is being deleted based on a distance field.
BUT I have a problem with motion blur.
It’s because the indices get mixed up every time one object gets deleted and it looks like they are jumping all over the scene.
You use the “set ID” node to give each instance a unique ID. In the first image you can see that the index values of the instances correspond with the IDs.
But when I delete a couple of the instances the index numbers of the objects change because index numbers allways simply count up from 0 to the max number of instances available.
So if you delete instance 2 then instance 3 will become instance 2.
Blenders motion blur will then think that instance 2 has changed position.
To avoid this you can assign an ID. This number is consistent, as can be seen in the second image. Blenders motion blur will us the ID instead of the index if an ID is present: