This demo shows how I use GPU compute shaders to make particles collide with 2D geometry.
Stars
1
Forks
0
Watchers
1
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
76
commits
Renamed a few project files to match the repository name. I don't know why I missed that they were named differently.
7338d2bView on GitHubCleanup, and bumping up the "particles emitted per second" counter from 2->4. Now rocking ~4k particles colliding at 59fps. It is lovely!
60bfb01View on GitHubFixed collision resolution. Particles are now bouncing properly.
c9bde68View on GitHubMaking progress. My collision detection end condition was ">" instead of "<". Whoops.
22b7e9aView on GitHubCollision resolution and particle velocity vector geometry generation are building and running, but not working right.
fdc46cfView on GitHubTried to make some modifications to get PrepareForPrefixScan to run faster, but to no avail.
31ec460View on GitHubCraploads of commenting and putting each step into its own function.
087a9beView on GitHubBounding box merging is working, and I modified DetectCollisions.comp to use the ParticlePotentialCollisionsBuffer.
8a1982bView on GitHubSweet! Tree generation seems...perfect. I don't want to jinx it, but it appears to work flawlesslessly.
9a2eacaView on GitHub