Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting other particle's position #3

Open
gonzam88 opened this issue May 30, 2019 · 1 comment
Open

getting other particle's position #3

gonzam88 opened this issue May 30, 2019 · 1 comment

Comments

@gonzam88
Copy link

Hi, im relatively new to shaders, looking for a way so that each particle can loop other particle's position, as to perform simple collision detection. Not asking specifically for code but as a general idea or guide to read. Thanks, this addon is super helpful!

@micuat
Copy link

micuat commented Oct 20, 2020

(i know this is a year old comment)
it's hard because each vertex don't share attributes with other vertices unless you use cuda. one common approach (in 2D) is to first write a density map of particles and each vertex reads that map to avoid / prefer dense areas in the map, which ends up in a collision-like effect (sorry no time to look for an example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants