Is it possible to visualize in VFX Graph something like the following link?
I would like to position my particles in a specific location within the space.
Any ideas are welcome.
Is it possible to visualize in VFX Graph something like the following link?
I would like to position my particles in a specific location within the space.
Any ideas are welcome.
Most likely you want point cache, but it could also be done with mesh sampling (there is node for that too) or buffer of points.
Morning.
As @Qriva suggested, point caches or Mesh sampling are good options. If your positions are in 2D spaces, like what we can see on your link, 2D texture sampling might be a viable alternative. You can spawn your particles on a 2D grid and sample a Texture to do what we call “rejection sampling”. You spawn particles everywhere and “kill” particles based on the values of your texture.
Don’t hesitate to share your results
Altough both previous answers are feasable a much cleaner way to do this is to just throw all your points into a Graphics Buffer and bind that to your VFX Graph. Your graph also needs to know how many data points you have so store that into an exposed int. You can then sample your buffer with ParticleID % DataPointCount and it will output the corresponding position.