- Home /
Question by
jacques_unity323 · Jan 14, 2020 at 03:05 PM ·
graphicsvisual-effectsvisual problems
VFX Graph particleId issue
So I am trying to create a uniform 2d grid of particles with VFX graph. I simply compute some X & Y coordinates based on the particleId attribute of each particle and the size of the grid :
int x = particleId % gridWidth;
int y = particleId / gridWidth;
Here is the graph I use to do so : It produces the expected result for grids of size less or equal than 64*64. However, as soon as the size of the grid exceeds 64, the grid is flickering and some points are randomly missing at each frame :
I have no clue of what's going on, can anyone help ? what am I doing wrong here?
capture.png
(111.4 kB)
capture.png
(59.3 kB)
Comment
Facing similar problems with particleId. Not sure how the different spawn options assign particleId.